Thanks musachy. I was looking at the on-line documentation and hadn't seen anything about the tree tag. I've now found an example in the struts-showcase app. This should do the job although i will need to embellish it with drag n drop and a context menu to add and remove nodes. I don't want to speak too soon, but if this goes ok perhaps i could help add this functionality to showcase example.

max

Musachy Barroso wrote:
The tree works on 2.0.6/2.0.8 AFAIK, did you try the "tree" tag?

regards
musachy

On 6/26/07, Max Pimm <[EMAIL PROTECTED]> wrote:

I have seen that people are working on integrating the Dojo tree widget
into the 2.1 release. I'm using 2.0.6 release and am about to implement
the tree
widget in my app.

I'm new to dojo and haven't been able to find much official
documentation for this widget. I wondered if someone who has a bit more
experience could confirm that i am going about this in the right way. My
plan is to implement the tree as follows.

1) Import the necessary dojo js's.
2) Create the empty html div structure.
3) Using the  RPCUrl property of the TreeLoadingController hook the tree
upto a struts action to retreive the children of a given node.
4) Implement the struts action and use the JSON Plugin to render the
results.

Is this correct? Will this work with the 0.4 distribution of dojo
bundled in struts 2.0.6?

Thanks,

max

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to