We have a DropDown whose selection affects the 2nd DropDown (hide+disable).
This is done in Ajax "onchange" on the 1st DropDown, very simple. In the Ajax behavior, we specify if (condition) { choice2.setEnabled(false); choice2.setEnabled(false); target.addComponent(choice2); } else { choice2.setEnabled(true); choice2.setEnabled(true); target.addComponent(choice2); } We verified that our condition works, and Ajax kicks in correctly on every change in DropDown #1, and the hide/show works the *first* time. Afterwards, after switching back and trying again, we are no longer able to show Choice2. It always stays hidden, and the correct condition is activated, but the dropdown isn't updated for some reason. Any ideas? We're doing target.addComponent() in both cases. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Ajax-Behavior-not-working-after-1-time-tp4657254.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org