Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi, as shown in https://github.com/cat1000/StarRating , Ajax works but there is still a problem with the callback function: The callback function offered by the Rating plugin causes an infinite loop. $('.auto-submit-star').rating({ callback: function () {…} } br, Chris > Am 1

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven & all, when using the JS Star Rating plugin (https://www.fyneworks.com/jquery/star-rating , star images instead of radio boxes), the #AjaxFormChoicecomponentUpdatingBehaviour does not work anymore. I have created a sample project based on t

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven, have you added the AjaxFormChoicecomponentUpdatingBehaviour in this example to the group? group.add(new AjaxFormChoiceComponentUpdatingBehavior() { protected void onUpdate(AjaxRequestTarget target) { // Ajax actions here System.out.println("The selected value

Re: Radio group add ajax behavior

2015-04-18 Thread Sebastien
Hi Chris, what is load(); ? isn't it a scope issue again ? On Apr 18, 2015 9:48 PM, "Chris" wrote: > Hi Sven, > > there is a JS function provided by the Star Rating plugin which provides > the callback function: > $('.auto-submit-star').rating({ > callback: function(value, li

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven, there is a JS function provided by the Star Rating plugin which provides the callback function: $('.auto-submit-star').rating({ callback: function(value, link){ alert(value); } }); What I do not quite u

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven, I think that the solution (star-rating as ajax) might be something like that in Javascript: var $attrchange = $('div', '.star-rating-control'); $attrchange.attrchange({ trackValues: true, callback: function (e) {

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven, here is the URL: http://meetselva.github.io/attrchange/ the attrchange plugin now basically works but I am still figuring out if it is possible to use this to detect changes in the star rating: The star rating plugin renders for each input field

Re: Radio group add ajax behavior

2015-04-18 Thread Sven Meier
Hi, please give us the url of the plugin you're trying to use. Sven On 18.04.2015 16:44, Chris wrote: Hi Sven, there is the JS plugin to detect changes in attributes (this might help to detect changes in the star-rating. http://meetselva.github.io/attrchange/

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven, there is the JS plugin to detect changes in attributes (this might help to detect changes in the star-rating. http://meetselva.github.io/attrchange/ This works fine in a pure html-file, but in Wicket the JS function is not called (see below). I h

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven, I tried following function but that still does only work with JQuery Rating JS disabled. With JQuery Rating, the function is not called. $('input[name=field1_type]').change(function() { trigger('click'); }); Below is the HTML code when Rating JS is enabled:

Re: ClientProperties.getBrowserWidth() always returns -1

2015-04-18 Thread Martin Grigorov
Hi, Check wicket-examples. There are demos of (Ajax)BrowserInfo On Apr 17, 2015 10:56 PM, "smallufo" wrote: > 2015-04-18 9:53 GMT+08:00 smallufo : > > > getApplicationSettings().setUploadProgressUpdatesEnabled(true); > > > > typo > It is > *getRequestCycleSettings().setGatherExtendedBrowserInfo(

Re: Radio group add ajax behavior

2015-04-18 Thread Sven Meier
Hi Chris, does the JS trigger click() on the radio when the user selects a rating? When not, check for a callback to trigger click() by yourself. Regards Sven On 18.04.2015 13:34, Chris wrote: Hi Sven, thanks a lot for your help! I am using the jquery star rating JS to replace the radio bo

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven, thanks a lot for your help! I am using the jquery star rating JS to replace the radio boxes through stars - with that it does not work. Without it I just tried it and AJAX works (thanks for your feedback!) Why might there be a problem with the jQuery JS? br, Chris > Am 18.04.2015 um

Re: Radio group add ajax behavior

2015-04-18 Thread Sven Meier
Looks good. I've just added an AjaxFormChoiceComponentUpdatingBehavior to wicket-examples' RadioGroupPage and it worked as expected. Which Wicket version? Can you create a quickstart? Have fun Sven On 18.04.2015 13:19, Chris wrote: The html is as follows:

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
The html is as follows: ... best regards, Chris > Am 18.04.2015 um 13:14 schrieb Chris : > > Hi Sven, > > the form is added to a panel. > > Chris > > >> Am 18.04.2015 um 11:26 schrieb Sven Meier : >> >> Hi, >> >> is

Re: Radio group add ajax behavior

2015-04-18 Thread Chris
Hi Sven, the form is added to a panel. Chris > Am 18.04.2015 um 11:26 schrieb Sven Meier : > > Hi, > > is your RadioGroup is bound to in your markup? > > Sven > > On 18.04.2015 07:00, Chris wrote: >> Hi all, >> >> I have a radio group with different radio choices and I would like to add

Re: Radio group add ajax behavior

2015-04-18 Thread Sven Meier
Hi, is your RadioGroup is bound to in your markup? Sven On 18.04.2015 07:00, Chris wrote: Hi all, I have a radio group with different radio choices and I would like to add ajax behavior to the group. With the method #AjaxFormChoiceComponentUpdatingBehavior, the #onUpdate is never called cu