[ https://issues.apache.org/struts/browse/WW-1910?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Musachy Barroso resolved WW-1910.
---------------------------------
Resolution: Fixed
> Tree tag should be able to load its nodes using ajax
> ----------------------------------------------------
>
> Key: WW-1910
> URL: https://issues.apache.org/struts/browse/WW-1910
> Project: Struts 2
> Issue Type: Improvement
> Reporter: Musachy Barroso
> Assigned To: Musachy Barroso
> Fix For: 2.1.0
>
>
> The tree tag will have an "href" attribute which will be the url called to load the nodes
of the tree. When a node is expanded a request will be made to the "href" url passing a "nodeId"
parameter with the id of the expanded node. For the root nodes, "nodeId" won't be set in the
request.
> The result must be a json string in the form:
> [
> {
> label: "text of node1",
> id: "id1",
> hasChildren: true
> },
> {
> label: "text of node2",
> id: "id2",
> hasChildren: false
> }
> ]
> each node will be loaded once. To reload a node use the "reload()" function of the treenode
widget.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|