I agree, this would be would be a time saver and it would also make this functionality more encapsulated.
--- "Korhonen, Kalle" <[EMAIL PROTECTED]> wrote: > What Heath suggested, definitely works well, but I > can see value in > supporting disabled attribute. It shouldn't be hard > to implement at all, > in fact, you just have to do the same exact thing as > below in the > commandlink renderer rather than explicitly on page. > Try it - I > definitely would if I had a whole page worth of > commandlinks to change. > > Kalle > > > -----Original Message----- > > From: Robert Breidecker > [mailto:[EMAIL PROTECTED] > > Sent: Friday, April 08, 2005 9:17 AM > > To: MyFaces Discussion; [EMAIL PROTECTED] > > Subject: Re: Disabling a Commandlink > > > > Excellent. I didn't follow your completely. > Sorry. > > :) > > > > --- Heath Borders <[EMAIL PROTECTED]> wrote: > > > Yes, that's why I included the <h:outputText /> > that has the exact > > > same text but is only rendered when the link is > not. > > > > > > On Apr 8, 2005 11:04 AM, Robert Breidecker > <[EMAIL PROTECTED]> > > > wrote: > > > > > > > > I would still like to see the link (text only) > on > > > the > > > > page. Woudln't using the rendered property > hide > > > the > > > > link completely? > > > > > > > > --- Heath Borders <[EMAIL PROTECTED]> > wrote: > > > > > If you want that functionality why don't you > > > just > > > > > have the following? > > > > > <h:commandLink value="#{myBean.myLinkText}" > > > > > rendered="#{not > > > > > myBean.linkDisabled}" action="Foo" /> > <h:outputText > > > > > value="#{myBean.myLinkText}" > > > > > rendered="#{myBean.linkDisabled}" > > > > > /> > > > > > > > > > > On Apr 8, 2005 10:46 AM, Robert Breidecker > > <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > > > > > > > Does anyone besides me see value in having > a > > > > > disabled > > > > > > attribute on commandlink and outputlink? > When > > disabled, the link > > > > > > component will generate > > > plain > > > > > text > > > > > > instead of an anchor tag. > > > > > > > > > > > > > > > > > > __________________________________ > > > > > > Do you Yahoo!? > > > > > > Yahoo! Small Business - Try our new > resources > > > > > site! > > > > > > http://smallbusiness.yahoo.com/resources/ > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > -Heath Borders-Wing > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Tired of spam? Yahoo! Mail has the best spam > > > protection around > > > > http://mail.yahoo.com > > > > > > > > > > > > > > > > -- > > > -Heath Borders-Wing > > > [EMAIL PROTECTED] > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Yahoo! Personals - Better first dates. More second > dates. > > http://personals.yahoo.com > > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

