[
https://issues.apache.org/jira/browse/TOMAHAWK-1670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13865461#comment-13865461
]
Alex Landini commented on TOMAHAWK-1670:
----------------------------------------
the problem seems to be linked to this param in web.xml
{code:xml}
<context-param>
<param-name>javax.faces.PARTIAL_STATE_SAVING</param-name>
<param-value>false</param-value>
</context-param>
{code}
Without this parameter all works, but I must use it otherwise other parts of
the application won't work.
> actionListener not invoked on component inside the tree
> -------------------------------------------------------
>
> Key: TOMAHAWK-1670
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-1670
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Components: Tree2
> Affects Versions: 1.1.14
> Environment: JSF Mojarra 2.1.24, Tomahawk21, JBoss EAP 6.1, Windows
> Reporter: Alex Landini
> Attachments: tree2.zip
>
>
> In the snippet below the actionListener on the commandLink with id
> 'folderSelected' is not invoked.
> This code used to work with JSF 1.2.15 and tomahawk12.
> I have attached a simple project that I created starting from the tomahawk
> examples.
> Debugging through the code I found that probably the problem is due to the
> fact that the listener is not saved or restored form the view.
> <t:tree2 id="clientTree" value="#{treeBacker.treeData}" var="node"
> varNodeToggler="t">
> <f:facet name="foo-folder">
> <h:panelGroup>
> <f:facet name="expand">
> <t:graphicImage
> value="images/yellow-folder-open.png"
> rendered="#{t.nodeExpanded}" border="0"
> />
> </f:facet>
> <f:facet name="collapse">
> <t:graphicImage
> value="images/yellow-folder-closed.png"
> rendered="#{!t.nodeExpanded}"
> border="0" />
> </f:facet>
> <h:commandLink id="folderSelected"
> actionListener="#{treeBacker.onFolderSelected}">
> <h:outputText value="#{node.description}"
> styleClass="nodeFolder" />
> <h:outputText value=" (#{node.childCount})"
> styleClass="childCount"
> rendered="#{!empty node.children}" />
> </h:commandLink>
> </h:panelGroup>
> </f:facet>
> </t:tree2>
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)