[Wicket-user] Link#setEnabled( false ) does not disable button element

2006-12-12 Thread Paolo Di Tommaso
Invoking the Link#setEnabled( false ) on a input type=button / element will not disable the component. The onclick handler will not be invoked (disabled) but it does not apper as a disabled component. Instead invoking Button#setEnabled( false ) will render the button disabled. I think it

Re: [Wicket-user] Link#setEnabled( false ) does not disable button element

2006-12-12 Thread Erik van Oosten
Well, a Link can be attached to any HTML element so I think it can not know (in general) how to render the element disabled. A Button component can only be attached to an html button; for an html button it is known what to do. One could argue that the Link component can see what type of element