-
1. Re: disable an a4j:commandLink
ilya_shaikovsky Feb 29, 2008 7:59 AM (in response to martin.ahrer)<h:form id="form"> <a4j:commandLink disabled="true" value="disabled"/>
this code renders link which isn't send any requests? Whats wrong? -
2. Re: disable an a4j:commandLink
martin.ahrer Feb 29, 2008 8:32 AM (in response to martin.ahrer)ok I should have looked into the TLD. Seems to be a problem with my eclipse IDE which is showing it as a non existent attribute and not showing it with code complete
-
3. Re: disable an a4j:commandLink
daniel.soneira Mar 3, 2008 4:15 AM (in response to martin.ahrer)It's not a problem of your Eclipse IDE. The attribute is missing in the file a4j.tld.
Here is a bug report: http://jira.jboss.com/jira/browse/AJSF-128
Looks like the bug got lost along the way when A4J and RichFaces merged together. -
4. Re: disable an a4j:commandLink
martin.ahrer Mar 3, 2008 4:16 AM (in response to martin.ahrer)Ilya, today I had a look at the TLD to check if commandLink supports the disabled attribute. I'm using richfaces-ui-3.1.4.GA.jar which has a ajax4jsf.tld embedded. Looking at the commandLink supported tag attributes there is definitely NO disabled attribute.
I compared with htmlCommandLink which supports the disabled attribute.
I also tried the disabled attribute in my Tomcat 6.x container ignoring the IDE warning about using a non-existent attribute and as you see the container throws aorg.apache.jasper.JasperException: /masterdata/menu/treeitemattributes.jsp(48,122) Attribute disabled invalid for tag commandLink according to TLD
exception at me!
So I'm wondering how the example you gave could possibly work! -
5. Re: disable an a4j:commandLink
ilya_shaikovsky Mar 3, 2008 5:43 AM (in response to martin.ahrer)Sorry, letter about a4j bugs was send to our dev lead.
My example works fine because I've tested it in facelets environment and facelets didn't care about tld file. :) -
6. Re: disable an a4j:commandLink
jeronimo.azevedo Nov 19, 2008 5:32 AM (in response to martin.ahrer)Hi,
I am using richfaces 3.2.2SR1 and when i set the disabled tag to true, the link is not disabled on the page. I wonder if this bug is still not solved.
Thanks,
azevedo -
7. Re: disable an a4j:commandLink
ilya_shaikovsky Nov 19, 2008 6:29 AM (in response to martin.ahrer)<a4j:commandLink disabled="true" value="sdfsdfsdf"></a4j:commandLink>
doen't send a request after click in my sample.