Maybe split this one form in two, one with these 2 fields and one with the rest. Depending on the state, you enable either all, just the one with the 2 fields or none.
Best, Marvin Richter -----Original Message----- From: Entropy [mailto:blmulholl...@gmail.com] Sent: Thursday, March 27, 2014 4:38 PM To: users@wicket.apache.org Subject: One field enabled in a disabled container A wierd requirement was just handed to me. We have a form that gets enabled/disabled depending on business rules as normal. However, now I am being told to disable ALL BUT TWO fields in a particular state. Is my only option here to leave the form enabled and then disable EVERY other control explicitly like: form.get("A").setEnabled(true); form.get("B").setEnabled(true); form.get("C").setEnabled(true); form.get("D").setEnabled(true); [...etc] Or is there a way to disable the container, and spare specific fields? I suspect I'll have to do the former, but there's quite a few fields and I am hoping there's some wicket trick. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/One-field-enabled-in-a-disabled-container-tp4665156.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 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org