to the group itself.
The problem, as with RadioChoice, is that it will not update the checked radio.
I've posted a possible solution here:
http://sourceforge.net/tracker/index.php?func=detail&aid=1501513&group_id=119783&atid=684975
Thansk,
-- Paolo
On 6/28/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
the problem is that radiogroup is not a component on its own, neither is radio, instead you have to think of them as a composite component - both parts working together. you add a behavior to the radiogroup, but a radiogroup is nothing more then a wicket proxy for the radio components. in fact if you look at the output html the radiogroup doesnt even output its tags, so ajax behavior is not written out.
so what you need to do is attach the behavior to Radio - but the problem is radio is not a form component so you cannot add a formcomponentupdating behavior to it.
what i would try is to do this
radio.add (new AjaxFormSubmitBehavior(form, "onclick")) that way the behavior is attached to the proper <input html component
let me know if it works
-IgorOn 6/28/06, Paolo Di Tommaso <[EMAIL PROTECTED]> wrote:I have a RadioGroup with some radio buttons inside. Is ti possibile intercept radio selection change via ajax??
I've tried something like this, but nothing happens.
:
RadioGroup theGroup = new RadioGroup( "group-request-type", new PropertyModel(myBean,"requestType") );
theGroup.add( new Radio("radio-equipment",new Model("E")) );
theGroup.add( new Radio("radio-not-equipment",new Model("N")) );
add( theGroup );
theGroup.add(new AjaxFormComponentUpdatingBehavior("onchange")
{
protected void onUpdate(AjaxRequestTarget target)
{
target.addComponent( componentToUpdate );
}
});
Any idea to make it to work?
Thanks, Paolo
Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user