This would be fine to add to the extended components set.
I would personally prefer rendering
 
false;"
 
rather than rendering plain text.  That way, the link looks the same, but just doesn't do anything.

 
On Apr 8, 2005 2:33 PM, Jonathan Eric Miller <[EMAIL PROTECTED]> wrote:
If I remember correctly, I think they are going to add a "disabled"
attribute to h:commandLink and h:outputLink in JSF 1.2. I too think this
would be a good thing. I think I remember reading this somewhere, but, you
might want to double check me on that... It might not hurt sending a message
to the JSF 1.2 list to see if this is indeed the case.

Jon

----- Original Message -----
From: "Korhonen, Kalle" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Friday, April 08, 2005 2:18 PM
Subject: RE: Disabling a Commandlink

> 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="" /> <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
>>
>




--
-Heath Borders-Wing
[EMAIL PROTECTED]

Reply via email to