Tree stop when adding p:commandLink inside a treeNode

UI Components for JSF
Post Reply
User avatar
Mimbari
Posts: 10
Joined: 15 Sep 2010, 10:52
Location: Andorra
Contact:

01 Oct 2010, 16:02

Hi,

I'm having troubles when I add commandLinks inside the treeNode declarations. Here it's an example:

Code: Select all

<p:treeNode type="nod">  
    <p:commandLink actionListener="#{mbEquipment.workNodeSelected}" update="outp" onsuccess="dlg2.show()" > 			
	   <h:outputText value="#{node.title}" styleClass="node" /> 
   	   <f:param name="node" value="#{node.code}"/>		
    </p:commandLink>	
</p:treeNode>	
If I only show the outputText the Tree works perfectly. But with the commandLinks the Tree sometimes it doesn't appear or sometimes it get stuck with the first ajax request.
I need this commandLinks to show a PrimeFaces Dialog after the actionListener success.

I'm working with myfaces 2.0.2, primefaces 2.2, jboss 5.00

Thanks in advance

PS: The tree perfectly works whith the commandLinks with primefaces 2.1

User avatar
Mimbari
Posts: 10
Joined: 15 Sep 2010, 10:52
Location: Andorra
Contact:

04 Oct 2010, 09:06

Can anyone help me? It's a bug or not?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Oct 2010, 09:41

It is a known issue that will be fixed with 2.3 that introduces the new tree. You might use nodeSelectListener as a workaround.

User avatar
Mimbari
Posts: 10
Joined: 15 Sep 2010, 10:52
Location: Andorra
Contact:

04 Oct 2010, 10:34

Ok really thanks!

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 57 guests