ActionListener in server-side tree2 does not get invoked when clicking the
navigation icon
------------------------------------------------------------------------------------------
Key: MYFACES-349
URL: http://issues.apache.org/jira/browse/MYFACES-349
Project: MyFaces
Type: Bug
Versions: Nightly Build
Environment: IBM RAS using MyFaces JSF implementation
Reporter: Brendan Conner
Priority: Minor
If I specify an actionListener in the server-side tree2, it does not get
invoked when clicking the navigation icon. I need this to get invoked because
I use it to gather more data on the server on an "as needed" basis. Here's
some sample code, where I would like treeBacker.processAction to be invoked
when a toggleExpanded event has happened:
<x:tree2 id="serverTree" value="#{treeBacker.treeData}" var="node"
varNodeToggler="t" clientSideToggle="false">
<f:facet name="type1">
<h:panelGroup>
<h:commandLink immediate="true"
action="#{t.toggleExpanded}"
actionListener="#{treeBacker.processAction}">
<h:graphicImage value="/images/type1.gif"
border="0"/>
</h:commandLink>
<h:outputLink value="#" style="font-family: arial;
color: blue"
onclick="alert(#{node.id})">
<h:outputText value="#{node.name}"/>
</h:outputLink>
</h:panelGroup>
</f:facet>
<f:facet name="type2">
<h:panelGroup>
<h:commandLink immediate="true"
action="#{t.toggleExpanded}"
actionListener="#{treeBacker.processAction}">
<h:graphicImage value="/images/type2.gif"
border="0"/>
</h:commandLink>
<h:outputText value="#{node.name}" style="font-family:
arial; color: blue"/>
</h:panelGroup>
</f:facet>
</x:tree2>
In the above example, my action listener only gets invoked when I click on my
own gif (type1.gif or type2.gif). It doesn't get invoked when I click on the
navigation icon.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira