Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-11111

<a4j:status> for <rich:tree> works on selecting a node; not on toggling (via Ajax) in RF4.0.0

    Details

      Description

      I have got the following tree:

      <rich:tree var="item"  id="someTree" selectionType="ajax" toggleType="ajax" treeSelectionChangeListener="#{someBean.selectionChanged}" 
      				selectionChangeListener="#{someBean.selectionChanged}">
      	<rich:treeModelRecursiveAdaptor roots="#{someBean.entities}" 
      				nodes="#{someBean.getSomeSubItems(item.id)}">
      		<rich:treeNode>
      			<a4j:outputPanel>
      				<h:outputText value="#{item.fullName}" />
      			</a4j:outputPanel>
      		</rich:treeNode>
      	</rich:treeModelRecursiveAdaptor>
      </rich:tree>
      

      And a status indicator:

      <a4j:status layout="block" startStyleClass="startAjax" >
      	<f:facet name="start">
      		<img src="ajax-loader.gif" />
      	</f:facet
      </a4j:status>
      

      The combination works well for selecting a node: When the AJAX-request is sent, it displays the gif, when it is received, it is removed. Unfortunatly, when performing a toggle on a node, the gif is displayed but never removed, although the data is correctly received and the view is updated. I added some alert('..') messages for the on

      {success|error|stop}

      -Properties of the <a4j:status> - same again: well fired for the selection of a particular node; but none ever executed for toggling.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                bastian.ulke Bastian Ulke
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: