[
https://issues.jboss.org/browse/RF-12079?page=com.atlassian.jira.plugin.s...
]
Brian Leathem reassigned RF-12079:
----------------------------------
Assignee: Pavol Pitonak
QE, please confirm
<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
Assignee: Pavol Pitonak
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.
{code:title=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>
{code}
{code:title=BEAN (snippet)}
/*imports...*/
@Named
@SessionScoped
public class CadCustomerBean implements Serializable {
public void processTreeSelectionChange (MyClass myObject) {
System.out.println(myObject);
}
}
{code}
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