Hi,
I have a dropdown box and a text field as below
//dropdownbox
final DropDownChoice typeOption=new DropDownChoice("type",
dataList){
protected boolean
wantOnSelectionChangedNotifications() {
return true;
}
};
form.add(typeOption.setRequired(true).setOutputMarkupId(true));
//textfield
TextField nameTf = new TextField("name");
form.add(nameTf .setOutputMarkupId(true));
name.add(new AjaxFormComponentUpdatingBehavior("onBlur") {
@Override
protected void onUpdate(AjaxRequestTarget
target) {
name.modelChanged();
target.addComponent(name);
target.addComponent(feedbackPanel);
}
});
How to submit a selected value from the drop down box to the ajax behavior
of text component because the fields need to be updated based the selected
value from the dropdown.
Please suggest.
Thanks for your time.
J
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Submitting-a-component-value-on-a-ajax-call-of-a-different-component-tp2264940p2264940.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]