Hi,
Just for the archives the following do the trick.
----------------
helyseg.add(new AjaxFormComponentUpdatingBehavior("onchange") {
@Override
protected void onUpdate(AjaxRequestTarget art) {
try {
int irszam =
TelepulesIrszam.get(helyseg.getDefaultModelObjectAsString());
bbsir_irszam_output.setDefaultModelObject(irszam);
bbsir_irszam.setDefaultModelObject(irszam);
* art.add(bbsir_irszam);*
art.add(bbsir_irszam_output);
} catch (NullPointerException e) {
error("Hibás helységnév!");
art.add(container);
}
}
});
----------------
Regards, Sandor
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Update-two-fields-with-AjaxFormComponentUpdatingBehavior-tp4650954p4651008.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]