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 it 
is attached to and do something appropriate. But that would blow up the 
implementation of Link which is probably not a good thing.

Regards,
     Erik.

Paolo Di Tommaso schreef:
>
> 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 would be simpler if it will be rendered disabled in both 
> cases. Won't be?
>
>
>
> - Paolo

-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to