Excellent!  That was the solution I was hoping for!

You mentioned that you committed this change, to where?  1.2-SNAPSHOT?  If
so, are there any other maven2 repos that host the SNAPSHOT builds?  This
repo "http://maven.sateh.com/repository"; is giving me grief.  Otherwise, I
suppose that I could grab the sources myself...


Eelco Hillenius wrote:
> 
> Yeah, sorry about that. I committed a fix for this. Added method
> protected void onDisabled(final ComponentTag tag) to FormComponent,
> which is called during rendering when the component is disabled. By
> default, an disabled="disabled" attribute is added, but clients may
> override this method. In your case, you would do something like:
> 
> new TextField("myid", myModel) {
>   protected void onDisabled(ComponentTag tag) {
>     tag.put("read-only", "true");
>   }
> }
> 

-- 
View this message in context: 
http://www.nabble.com/enable-remove-added-behaviors-tf2479810.html#a6915797
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to