-
1. Richfaces tree and PortletBridge
mahdi24rajabi Jan 17, 2011 7:54 AM (in response to mahdi24rajabi)a new information that may come in use to help me
i added following tag to tree as a child:
<a4j:support event="oncomplete" actionListener="#{treeAdviser.updateDate}"/>
after selecting or firing an event treeAdviser.updateDate is triggered, but the node selection event listener isn't invoked;
the following is the tree configuration I have used:
<h:form>
<a4j:region>
<a4j:status>
<f:facet name="start">
<h:graphicImage url="/image/animations/loadingIcon.gif"/>
</f:facet>
</a4j:status>
<div dir="ltr">
<rich:tree id="organizationTree" switchType="ajax"
ajaxSubmitSelection="true" reRender="newOrganizationPanel"
ajaxNodeSelectionEncodeBehavior="subtree"
ajaxChildActivationEncodeBehavior="subtree"
nodeSelectListener="#{treeAdviser.nodeSelectListener}"
stateAdvisor="#{treeAdviser}"
changeExpandListener="#{treeAdviser.changeNodeState}" >
<a4j:support focus="newOrganizationPanel" event="oncomplete" actionListener="#{treeAdviser.updateDate}"/>
<rich:recursiveTreeNodesAdaptor roots="#{organizationTree.root}" var="item" nodes="#{item.children}">
<rich:treeNode>
<h:outputText value="#{item.label}"/>
</rich:treeNode>
</rich:recursiveTreeNodesAdaptor>
</rich:tree>
</div>
</a4j:region>
</h:form>
-
2. Richfaces tree and PortletBridge
wesleyhales Jan 17, 2011 9:01 AM (in response to mahdi24rajabi)Try using a4j:support with event="onselected" at rich:treeNode
or
reference you code against this: http://community.jboss.org/message/35220#35224
There have been issues in the past with this attribute not firing properly but I'm pretty sure it's just a problem with the configuration.
-
3. Re: Richfaces tree and PortletBridge
mahdi24rajabi Jan 18, 2011 8:24 AM (in response to wesleyhales)Dear Wesley
Tnx for advice, i did such, but that functions just for root nodes, i'm at home now, i will send my portlet, DD and faces configuration soon, i think thats bug of portletbridge view handler for facelets,
Tnx dear