A selection in one of my Ajax dropdowns controls the visibility of another
dropdown. The code is very simple, and there are no other changes.
choiceVerType.add(new AjaxFormComponentUpdatingBehavior("onchange")
{
protected void onUpdate(AjaxRequestTarget target) {
if
(choiceVerType.getValue().equals(UMCConstants.VERIFICATION_APPLICATION)) {
choiceVerPeriod.setVisible(false);
}
else {
choiceVerPeriod.setVisible(true);
}
target.addComponent(choiceVerPeriod);
}
Once I hit the setVisible(false) condition once, any further changes in the
1st dropdown don't take effect and the 2nd dropdown remains invisible. Any
thoughts? Thanks.
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Ajax-setVisible-true-Action-not-Working-after-a-single-setVisible-false-tp4661281.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]