[richfaces-issues] [JBoss JIRA] (RF-12079) <rich:treeNode> ignores <a4j:ajax>

Wesley Menezes (JIRA) jira-events at lists.jboss.org
Thu Mar 22 13:54:47 EDT 2012


     [ https://issues.jboss.org/browse/RF-12079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wesley Menezes updated RF-12079:
--------------------------------

        Description: 

In JSF with a <rich:tree> and this have <rich:treeNode> nested, if <a4j:ajax> is applied in <rich:treeNode>, the ajax listener isn't called.

But, if <a4j:ajax> applied to (under) <rich:tree>, the ajax event fires method listener call.


XHTML (snippet)
                          <rich:tree 
                                 id="memoriaTree" 
                                 value="#{cadCustomerBean.rootNodes}"
                                 toggleType="client"
                                 var="node"
                                 nodeType="#{node.data.type}"
                                  >
                                 
                                    <rich:treeNode 
                                        id="memoriaRoot"
                                        type="customer"
                                        iconLeaf="../images/fichario.gif"
                                        data="#{node.data.id}">

 
                                        <h:outputText value="#{node.data.label}" />
                                        
                                        <a4j:ajax 
                                         immediate="true"
                                         execute="@this" 
                                         event="mousedown"
                                         listener="#{cadCustomerBean.processTreeSelectionChange(node.data)}"/>
                                    </rich:treeNode>
    
                             </rich:tree>


BEAN (snippet)
/*imports...*/
@Named
@SessionScoped
public class CadCustomerBean implements Serializable {
  public void processTreeSelectionChange (MyClass myObject) {
    
    System.out.println(myObject);

  }
}


Obs. In RichFaces 4.2.0 Final showcase, the <rich:tree> has the attribute "selectionChangeListener", but I found only "treeSelectionChangeListener" in jars of RichFaces (like attribute of the <rich:tree> tag, or like a tag  <rich:treeSelectionChangeListener>). The "Component_Reference.pdf" is ok.

  was:

In JSF with a <rich:tree> and this have <rich:treeNode> nested, if <a4j:ajax> is applied in <rich:treeNode>, the ajax listener isn't called.

Obs. In RichFaces 4.2.0 Final showcase, the <rich:tree> has the attribute "selectionChangeListener", but I found only "treeSelectionChangeListener" in jars of RichFaces (like attribute of the <rich:tree> tag, or like a tag  <rich:treeSelectionChangeListener>) - "Component_Reference.pdf" is ok.

    Forum Reference: https://community.jboss.org/message/725244?tstart=0  (was: https://community.jboss.org/message/725244?tstart=0)

    
> <rich:treeNode> ignores <a4j:ajax>
> ----------------------------------
>
>                 Key: RF-12079
>                 URL: https://issues.jboss.org/browse/RF-12079
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-tree
>    Affects Versions: 4.2.0.Final
>         Environment: RichFaces 4.2.0 and JSF 2.2 with CDI (Bean type "javax.inject.Named")
> Application Server GlassFish Server Open Source Edition 3.1.2 (build 23)
>            Reporter: Wesley Menezes
>
> In JSF with a <rich:tree> and this have <rich:treeNode> nested, if <a4j:ajax> is applied in <rich:treeNode>, the ajax listener isn't called.
> But, if <a4j:ajax> applied to (under) <rich:tree>, the ajax event fires method listener call.
> XHTML (snippet)
>                           <rich:tree 
>                                  id="memoriaTree" 
>                                  value="#{cadCustomerBean.rootNodes}"
>                                  toggleType="client"
>                                  var="node"
>                                  nodeType="#{node.data.type}"
>                                   >
>                                  
>                                     <rich:treeNode 
>                                         id="memoriaRoot"
>                                         type="customer"
>                                         iconLeaf="../images/fichario.gif"
>                                         data="#{node.data.id}">
>  
>                                         <h:outputText value="#{node.data.label}" />
>                                         
>                                         <a4j:ajax 
>                                          immediate="true"
>                                          execute="@this" 
>                                          event="mousedown"
>                                          listener="#{cadCustomerBean.processTreeSelectionChange(node.data)}"/>
>                                     </rich:treeNode>
>     
>                              </rich:tree>
> BEAN (snippet)
> /*imports...*/
> @Named
> @SessionScoped
> public class CadCustomerBean implements Serializable {
>   public void processTreeSelectionChange (MyClass myObject) {
>     
>     System.out.println(myObject);
>   }
> }
> Obs. In RichFaces 4.2.0 Final showcase, the <rich:tree> has the attribute "selectionChangeListener", but I found only "treeSelectionChangeListener" in jars of RichFaces (like attribute of the <rich:tree> tag, or like a tag  <rich:treeSelectionChangeListener>). The "Component_Reference.pdf" is ok.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list