Issue 576 in struts2-jquery: Bug TreeNode : case "Tree with Types" does not work when "rootNode" is set

70 views
Skip to first unread message

struts2...@googlecode.com

unread,
Jun 30, 2011, 4:20:18 AM6/30/11
to struts2...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 576 by Din...@gmail.com: Bug TreeNode : case "Tree with Types"
does not work when "rootNode" is set
http://code.google.com/p/struts2-jquery/issues/detail?id=576

(This is for feature requests and bugs in Struts2 jQuery Plugin - for
getting help, please use the User Group.
http://groups.google.com/group/struts2-jquery )

What steps will reproduce the problem?
1.

In JSP :
<s:url id="urlTree" action="model_update_item"/>
<s:set id="contextPath"
value="#request.get('javax.servlet.forward.context_path')" />
<sjt:tree
id="treeDynamicAjax"
jstreetheme="default"
rootNode="nodes"
childCollectionProperty="children"
nodeTitleProperty="title"
nodeIdProperty="id"
nodeHref="%{urlTree}"
nodeHrefParamName="uri"
nodeTargets="result"
types="{
'valid_children' : [ 'root' ],
'types' : {
'root' : {
'icon' : {
'image' : '%{contextPath}/icone/root.png'
},
'valid_children' : [ 'folder', 'file' ],
},
'folder' : {
'icon' : {
'image' : '%{contextPath}/icone/folder.png'
},
'valid_children' : [ 'folder', 'file' ],
},
'file' : {
'icon' : {
'image' : '%{contextPath}/icone/file.png'
},
'valid_children' : [ 'none' ],
}
}
}"
/>

2.
In action :
nodes = new TreeNode(" (Base)");
nodes.setId(...);
nodes.setState(TreeNode.NODE_STATE_OPEN);
nodes.setType("root");
nodes.setChildren(new LinkedList<TreeNode>());
for () {...}

What is the expected output? What do you see instead?
Generate result like the "Tree with Types" example.

Which struts2 version?
2.2.1.1

Which struts2-jquery plugin version?
3.1.0

Please provide any additional information below.


struts2...@googlecode.com

unread,
Jul 1, 2011, 8:01:46 AM7/1/11
to struts2...@googlegroups.com
Updates:
Owner: johgep
Labels: Component-Tree-Plugin

Comment #1 on issue 576 by johgep: Bug TreeNode : case "Tree with Types"

Does it work when you add the nodeTypeProperty attribute to your tree tag?

<sjt:tree ... nodeTypeProperty="type" />

struts2...@googlecode.com

unread,
Jul 1, 2011, 9:02:11 AM7/1/11
to struts2...@googlegroups.com

Comment #2 on issue 576 by Din...@gmail.com: Bug TreeNode : case "Tree with
Types" does not work when "rootNode" is set
http://code.google.com/p/struts2-jquery/issues/detail?id=576

Good idea but it doesn't work :(

BRUNO FRANCESCOLI PALACIOS ESTRADA

unread,
Jun 30, 2011, 7:01:55 AM6/30/11
to struts2...@googlegroups.com
2011/6/30, struts2...@googlecode.com <struts2...@googlecode.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "struts2-jquery" group.
> To post to this group, send email to struts2...@googlegroups.com.
> To unsubscribe from this group, send email to
> struts2-jquer...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/struts2-jquery?hl=en.
>
>

--
Enviado desde mi dispositivo móvil

*Saludos*

*Bruno F. Palacios*

*Analista Programador - Departamento Soluciones de Negocio*

*Proyectos Outsourcing
*

*GMD S.A. - Corporación Graña y Montero*

Psje. Acuña 127

Of. 605 - Centro de Lima

Teléfono: 4283890 - Anexo: 6148

Correo Laboral : bpal...@gmd.com.pe

*Cel Movistar: 968386383 RPM:*0351117*

Correo Personal : bfpal...@gmail.com

skype: bfpalacios

twitter: @bfpalacios

struts2...@googlecode.com

unread,
Nov 9, 2011, 3:57:46 AM11/9/11
to struts2...@googlegroups.com

Comment #3 on issue 576 by francis...@gmail.com: Bug TreeNode : case "Tree
with Types" does not work when "rootNode" is set
http://code.google.com/p/struts2-jquery/issues/detail?id=576

Can the new version(3.2.0) can fix this problem?

struts2...@googlecode.com

unread,
Nov 9, 2011, 11:23:44 AM11/9/11
to struts2...@googlegroups.com

Comment #4 on issue 576 by Din...@gmail.com: Bug TreeNode : case "Tree with
Types" does not work when "rootNode" is set
http://code.google.com/p/struts2-jquery/issues/detail?id=576

Yes, 3.2.0 fix this issue !! Great ! :)

struts2...@googlecode.com

unread,
May 15, 2012, 8:50:57 AM5/15/12
to struts2...@googlegroups.com
Updates:
Status: Fixed
Labels: Milestone-3.2.0

Comment #5 on issue 576 by johgep: Bug TreeNode : case "Tree with Types"
(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages