Re: Radio group add ajax behavior

2015-04-19 Thread Sven Meier
Hi Chris, I've opened a pull request. Hope this helps Sven On 19.04.2015 02:43, Chris wrote: Hi Sven & all, when using the JS Star Rating plugin (https://www.fyneworks.com/jquery/star-rating , star images instead of radio boxes), the #AjaxFormC

Re: Radio group add ajax behavior

2015-04-19 Thread Chris
Sven, you are great! Your solution works perfect. Thanks a lot for your help!! Chris > Am 19.04.2015 um 11:55 schrieb Sven Meier : > > Hi Chris, > > I've opened a pull request. > > Hope this helps > Sven > > > On 19.04.2015 02:43, Chris wrote: >> Hi Sven & all, >> >> when using the JS Star

Modal panel reloaded when selecting from DropDownChoice

2015-04-19 Thread Ulrich
When trying to build a quickstart for another problem I'm stumbling about this: When selecting from a DropDownChoice within a modal panel the underlying page becomes reloaded and I'm asked whether I want to leave the page. The message is "Reloading this page will cause the modal window to disappear

Re: Modal panel reloaded when selecting from DropDownChoice

2015-04-19 Thread Martin Grigorov
Hi, ModalWindow could be used only in Ajax. DropDownChoice#wantOnSelectionChanged() doesn't use Ajax but reloads the page. On Apr 19, 2015 5:56 PM, "Ulrich" wrote: > When trying to build a quickstart for another problem I'm stumbling about > this: > When selecting from a DropDownChoice within a

Re: Modal panel reloaded when selecting from DropDownChoice

2015-04-19 Thread Ulrich
Ok, thank you - makes sense. The idea was to have several choices on the modal window and provide a button (AjaxSubmitButton) to store the results. Before storing I need to validate the entered values and maybe issuing a message - still within the modal window. Therefore I provided a Label (*new L

Re: Radio group add ajax behavior

2015-04-19 Thread Chris
Hi Sven & all, I would also like to get a callback for the cancel button. I tried following adjustment, but in this case the #onUpdate(AjaxRequestTarget target) method is called multiple times and in the end, all stars are colored/enabled (instead of all stars greyed out). response.render(OnD

Re: Modal panel reloaded when selecting from DropDownChoice

2015-04-19 Thread Ulrich
back to ModalWindow extended from WebPage all works fine (I see my message when ). But now I don't see how to close the Window programmatically. It's all about Ajax: When using "Link#OnClick" the message is fine - but there is no way to close the window; with "AjaxSubmitLink#onSubmit" I can close t

Re: Radio group add ajax behavior

2015-04-19 Thread Sven Meier
Hi Christ, for AjaxFormChoiceComponentUpdatingBehavior it is important that the click happens on one of the "radio" elements. If the selection is cancalled, we can just use the first radio: String name = formComponent.getInputName(); response.render(OnDomReadyHeaderItem.forScript(Stri

Re: Radio group add ajax behavior

2015-04-19 Thread Chris
Perfect - thanks a lot for the hint! best regards, Chris > Am 19.04.2015 um 22:43 schrieb Sven Meier : > > Hi Christ, > > for AjaxFormChoiceComponentUpdatingBehavior it is important that the click > happens on one of the "radio" elements. > If the selection is cancalled, we can just use the fi