Author: nbelaevski
Date: 2010-05-10 15:40:53 -0400 (Mon, 10 May 2010)
New Revision: 16979
Modified:
root/ui/core/trunk/api/src/main/templates/org/ajax4jsf/renderkit/html/link.template.xml
Log:
https://jira.jboss.org/jira/browse/RF-7624
Modified:
root/ui/core/trunk/api/src/main/templates/org/ajax4jsf/renderkit/html/link.template.xml
===================================================================
---
root/ui/core/trunk/api/src/main/templates/org/ajax4jsf/renderkit/html/link.template.xml 2010-05-10
19:29:51 UTC (rev 16978)
+++
root/ui/core/trunk/api/src/main/templates/org/ajax4jsf/renderkit/html/link.template.xml 2010-05-10
19:40:53 UTC (rev 16979)
@@ -9,18 +9,27 @@
<cdk:superclass>org.richfaces.renderkit.AjaxCommandRendererBase</cdk:superclass>
<cdk:component-family>javax.faces.Command</cdk:component-family>
<cdk:renderer-type>org.richfaces.CommandLinkRenderer</cdk:renderer-type>
+ <cdk:renders-children>true</cdk:renders-children>
</cc:interface>
<cc:implementation>
- <a id="#{clientId}" name="#{clientId}"
- cdk:passThroughWithExclusions="value"
onclick="#{this.getOnClick(facesContext, component)}"
- href="#">
- #{component.attributes['value']}
- <cdk:body>
- <cdk:call expression="renderChildren(facesContext, component);" />
- </cdk:body>
- </a>
- <div></div>
+ <c:choose>
+ <c:when test="#{not component.attributes['disabled']}">
+ <a id="#{clientId}" name="#{clientId}"
+ cdk:passThroughWithExclusions="value"
onclick="#{this.getOnClick(facesContext, component)}"
+ href="#">
+ #{component.attributes['value']}
+ <cdk:call expression="renderChildren(facesContext, component)" />
+ </a>
+ </c:when>
+ <c:otherwise>
+ <span id="#{clientId}"
cdk:passThroughWithExclusions="value">
+ #{component.attributes['value']}
+ <cdk:call expression="renderChildren(facesContext, component)" />
+ </span>
+ </c:otherwise>
+ </c:choose>
+
</cc:implementation>
</cdk:root>