I don't understand.  Are you saying that I should use setEnabled(false) or
are you saying that I should use:

  final AttributeModifier rof = new AttributeModifier("readonly", false, new
Model("readonly"));

Either way this doesn't seem to work.

- JA



Eelco Hillenius wrote:
> 
>> I know how to add the attribute, I just don't know how to later remove it
>> once added.
> 
> Like I said, override isEnabled in your attribute modifier. When that
> returns false, the attribute won't be added. For normal requests,
> where a page is rendered everytime again, it simply doesn't show up.
> For ajax request, you'll have to add to the ajaxrequest for
> re-rendering and the attribute should disappear as well.
> 
> 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#a12400938
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to