Hmmm.. seems im outdated here.

Thanks for the info,

Regards
 

> -----Ursprüngliche Nachricht-----
> Von: Erik van Oosten [mailto:[EMAIL PROTECTED] 
> Gesendet: Mittwoch, 13. Dezember 2006 11:26
> An: wicket-dev@incubator.apache.org
> Betreff: Re: AW: [Wicket-user] Link#setEnabled( false ) does 
> not disable button element
> 
> Actually you can disable a button (I believe starting with HTML 4.0). 
> For example:
>     <input type="submit" disabled="disabled" />
> 
> This even works well for a css styled button.
> 
> Regards,
>      Erik.
> 
> Korbinian Bachl schreef:
> > You know that HTML does not provide a "disabled" button?- 
> so what do 
> > you expect? in case of link its easy as its just underlined 
> text, but 
> > what do you want in case of button? - img wont work, as usually CSS 
> > styles it, text isnt a button.... so the options are gone
> >
> > Regards
> >  
> >
> >   
> >> -----Ursprüngliche Nachricht-----
> >> Von: Paolo Di Tommaso [mailto:[EMAIL PROTECTED]
> >> Gesendet: Mittwoch, 13. Dezember 2006 08:33
> >> An: wicket-dev@incubator.apache.org
> >> Betreff: Re: [Wicket-user] Link#setEnabled( false ) does 
> not disable 
> >> button element
> >>
> >> I disagree about that.
> >>
> >> Methods semantics for components should be uniform, this 
> is the most 
> >> important rule for API simplicity and coherence.
> >>
> >> If Button#setEnabled( false ) is rendering a  button in disabled 
> >> state, I will expect that Link#setEnabled( false ) attached to a 
> >> <input type="button"
> >> />  tag will do the same.
> >>
> >> I know that this is a very little thing, but great stuff 
> are made of 
> >> little things also.
> >>
> >> Thanks,
> >>
> >> - Paolo
> >>
> >>
> >>
> >> On 12/12/06, Erik van Oosten <[EMAIL PROTECTED]> wrote:
> >>     
> >>> 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/
> >>>
> >>>
> >>>
> >>>       
> >
> >   
> 
> --
> Erik van Oosten
> http://www.day-to-day-stuff.blogspot.com/
> 
> 

Reply via email to