Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1670

actionListener not invoked on component inside the tree

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.14
    • None
    • Tree2
    • None
    • JSF Mojarra 2.1.24, Tomahawk21, JBoss EAP 6.1, Windows

    Description

      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>

      Attachments

        1. tree2.zip
          25 kB
          Alex Landini

        Activity

          People

            Unassigned Unassigned
            landal79 Alex Landini
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: