<h:form id="form"> <a4j:commandLink disabled="true" value="disabled"/>
this code renders link which isn't send any requests? Whats wrong?
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
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.
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 a
org.apache.jasper.JasperException: /masterdata/menu/treeitemattributes.jsp(48,122) Attribute disabled invalid for tag commandLink according to TLDexception at me!
So I'm wondering how the example you gave could possibly work!
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. :)
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.
<a4j:commandLink disabled="true" value="sdfsdfsdf"></a4j:commandLink>
doen't send a request after click in my sample.