Ok, I have fixed it by setting the id for the list items and adapting the
callback function to select by id and then by name.
Chris
Am 20.04.2015 um 21:53 schrieb Chris chris...@gmx.at:
Hi Sven,
I have put the radio group in a list of items. Basically it works so when I
click on a
Hi Sven,
I have put the radio group in a list of items. Basically it works so when I
click on a radio button the corresponding item is called.
However, when clicking the cancel button, always the radio group of the first
item in the list is called. How can the callback function
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
https://www.fyneworks.com/jquery/star-rating, star images instead of radio
boxes), the
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 s...@meiers.net:
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
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).
Perfect - thanks a lot for the hint!
best regards, Chris
Am 19.04.2015 um 22:43 schrieb Sven Meier s...@meiers.net:
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
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:
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
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
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/ 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
Hi Sven,
the form is added to a panel.
Chris
Am 18.04.2015 um 11:26 schrieb Sven Meier s...@meiers.net:
Hi,
is your RadioGroup is bound to wicket:container 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
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:
wicket:panel
form
The html is as follows:
wicket:panel
form wicket:id=form class=form
div class=rating wicket:id=group
input wicket:id=radio1 type=radio/
input wicket:id=radio2 type=radio/
...
/div
/form
/wicket:panel
best regards, Chris
Am
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/
Hi Sven,
here is the URL: http://meetselva.github.io/attrchange/
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
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) {
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
Hi Chris, what is load(); ? isn't it a scope issue again ?
On Apr 18, 2015 9:48 PM, Chris chris...@gmx.at wrote:
Hi Sven,
there is a JS function provided by the Star Rating plugin which provides
the callback function:
$('.auto-submit-star').rating({
callback:
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
Hi Sven all,
when using the JS Star Rating plugin
(https://www.fyneworks.com/jquery/star-rating
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 the
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
Hi,
is your RadioGroup is bound to wicket:container 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
22 matches
Mail list logo