Confused about <p:treeNode>

UI Components for JSF
ula.uvula@gmx.de
Posts: 2
Joined: 09 Jan 2010, 02:27

09 Jan 2010, 02:51

Hello (I'm a beginner!!!),

I'm really confused about the <p:tree> and <p:treeNode> tags. I the online examples the tags are described, but if I try to use the <p:treeNode> to access the "node". I get an message from the system:

Code: Select all

 <p:treeNode> Tag Library supports namespace: http://primefaces.prime.com.tr/ui, but no tag was defined for name: treeNode.
I can't find <p:treeNode> or TreeNodeTag not in the 1.0.0 or 2.0.0 builds and also not in the Tag Lib docu.

Also the "var" is not anymore supported in the <p:tree>

Code: Select all

<p:tree value="#{treeBean.root}" var="node">  
   <p:treeNode>  
       <h:outputText value="#{node}"/>  
   </p:treeNode>  
</p:tree>  

<p:tree> itself is running fine. I builded a tree with "string", this is working. If I add my one objects, they also will be displayed (the hash-code of the object
ula.test.jpa.model.NodeGroup@84f665). From this object I want access the information like #{node.name}.

I only have the added the primefaces-2.0.0.RC.jar to the web libs. Do I need more? I use a small "css", without any PF/YUI entries.

ula

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

09 Jan 2010, 16:13

Hi ula,

Welcome to the forum :)

p:treeNode is added after 1.0.0.RC and 2.0.0.RC release cycle so you need a snapshot of a nighty build which you can get at;

http://www.primefaces.org/downloads.html

http://repository.prime.com.tr/org/prim ... rimefaces/

ula.uvula@gmx.de
Posts: 2
Joined: 09 Jan 2010, 02:27

09 Jan 2010, 22:49

Hello Cagatay,

with the snapshot it works. Thanks!!!

Ula

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

10 Jan 2010, 03:36

Glad to help.

Chris55
Posts: 46
Joined: 09 Jan 2010, 18:56

15 Jan 2010, 21:13

When will the final release for Primefaces 1.0.0 be ready? I am a beginner and would like to contribute usage feedback in the JSF 1.2 project I just initiated (Primefaces + Richfaces + Facelets). Thanks
Thanks,

Chris

Stack
Mojarra 2.0.3
PF 2.2.RC1
GlassFish 3.0.1
JPA 2/Oracle 11g
Netbeans 6.9.1

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

17 Jan 2010, 18:55

Target date is 25th of January, we'll see how it goes.

hibernate50
Posts: 5
Joined: 04 Feb 2010, 11:28

04 Feb 2010, 14:12

merhabalar,

Hi ula,

Welcome to the forum :)

p:treeNode is added after 1.0.0.RC and 2.0.0.RC release cycle so you need a snapshot of a nighty build which you can get at;

http://www.primefaces.org/downloads.html

http://repository.prime.com.tr/org/prim ... rimefaces/
2.0.0.SNAPSHOT jar dosyasında p:treeNode tanımlı diyosunuz sanırım.
2.0.0.RC yerine 2.0.0.SNAPSHOT denedim olmadı .Verdii hata değişti ve şöyle oldu:

javax.servlet.ServletException: Tree:j_idt7 needs to be enclosed in a form
javax.faces.webapp.FacesServlet.service(FacesServlet.java:325)

Yardımcı olabilir misiniz?

İyi çalışmalar
Abdulkerim İnanmış

User avatar
ydarcin
Posts: 258
Joined: 04 Jan 2009, 19:02
Location: Turkey

04 Feb 2010, 14:22

Selam,

hata da belirttigi gibi

javax.servlet.ServletException: Tree:j_idt7 needs to be enclosed in a form

bileseniniz h:form icinde olmali.

Yigit

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

04 Feb 2010, 14:23

p:tree bileseni ajax ozellikleri kullanildiginda h:form icinde olmali.

English: p:tree needs to be enclosed in an h:form when using dynamic tree.

hibernate50
Posts: 5
Joined: 04 Feb 2010, 11:28

04 Feb 2010, 14:27

merhabalar,
tree formun içinde tanımlanmalı diyor ya hatada. öle yapınca syntax hatası kalmadı fakat ağaç düğümleri gözükmüyor. primefaces.org ta tree örneğini yapıyorum aslında.

İyi çalışmalar

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests