command link encodes incorrectly with disabled behaviors
--------------------------------------------------------
Key: MYFACES-3068
URL: https://issues.apache.org/jira/browse/MYFACES-3068
Project: MyFaces Core
Issue Type: Bug
Reporter: Anton Beleivch
1. create page
<h:form>
<h:panelGrid columns="2">
f:ajax with h:commandLink
<h:commandLink value="commandLink">
<f:ajax disabled="false"/>
</h:commandLink>
disabled f:ajax with h:commandLink
<h:commandLink value="commandLink">
<f:ajax disabled="true"/>
</h:commandLink>
</h:panelGrid>
</h:form>
Result: the first command link work fine, second one is not working at all
May be because in myfaces in /impl/renderkit/html/HtmlLinkRendererBase.java the
encodeBegin method in line 125
behaviors = ((ClientBehaviorHolder) component).getClientBehaviors();
if (!behaviors.isEmpty())
{
ResourceUtils.renderDefaultJsfJsInlineIfNecessary(facesContext,
facesContext.getResponseWriter());
}
inside if it checks only behaviors existence but not checked if they are
enabled, so this blocks script for commandlink to be encoded
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira