Yes that should be possible. Please take a look at org.apache.wicket.markup.html.link.AbstractLink#disableLink and org.apache.wicket.markup.html.link.Link#onComponentTag for some ideas. Basically you need to override onComponentTag and change the tag to a span there if the textfield is disabled.
If you have the wicket-security-examples you can also take a look at org.apache.wicket.security.examples.components.navigation.ButtonContainer which does something similar only for a link. In a link it is easier because they have build in support for custom disabled behavior/markup but it is nothing you can not do in any component yourself by overriding onComponentTag. Maurice On 7/16/07, Árni Hermann Reynisson <[EMAIL PROTECTED]> wrote: > Hi > > Would it be possible to render an instance of SecureTextField as <span> > instead of disabled input if the action isn't authorized? > > Regards, > Arni Hermann > ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user