I know how to add the attribute, I just don't know how to later remove it once added. - JA
Eelco Hillenius wrote: > >> So it sounds like I would use something like: >> >> final AttributeModifier ro = new AttributeModifier("readonly", true, new >> Model("readonly")); >> if (email.getType() != EmailAddress.Type.OTHER) >> emailLabel.add(ro); >> >> If so, then the question becomes, how would I remove that attribute or >> reset >> emailLabel to editable? > > Always add the attribute modifier, override isEnabled and let that > return true if you want to add the attribute, and false if you don't. > > Eelco > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/setEnabled%28false%29-on-FocusableTextField-breaks-persistence-tf4351731.html#a12400705 Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]