Hi Session

I am really sorry I couldn't work on the examples as I had promised. I have
just been extremely busy over the last few weeks. I want to contribute and
it's the first thing I will do when I get some time.

I have already answered your question on saving and restoring the state of a
tree.

For adding icons I am sure it can be done in the latest version dojo but I
will have to explore this a bit. I am not sure if it can be done with the
version of dojo bundled with struts. 

There is an example of loading a tree dynamically in the showcase but I
think what you are looking for is to load a partial tree and then load the
rest of the nodes based on what node is expanded. I haven't found any such
examples.

Interestingly we have a similar requirement in one of our projects and after
reading your mails in the morning I asked my boss to let me work on that :)

So I will be working on this for the next few days and I will update you if
I make any progress.

Manu

-----Original Message-----
From: Session A Mwamufiya [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 05, 2007 10:39 PM
To: Struts Users Mailing List
Cc: Struts Users Mailing List
Subject: Re: Dynamic Tree Example

Hi Manu,

You seem to have had lots of experience with s:tree; would you please help
me answer the following questions (with example code if you have them):
- how do you go about expanding the tree to the node level it was at before
a refresh?
- can you add icons (not changing the plus/minus ones) to the tree nodes
individually, to differentiate between the types?
- are there examples of lazy-loading data in a tree?

Thanks,
Session


> Thanks Manu.  I'm new with the tree, and am attempting to implement one
> for a project I'm working on.
> 
> I'm having a number of difficulties: - I can't manage to reload at the
> node level I want, it always reloads with root showing - it takes a long
> time to load
> 
> and I have a couple of feature questions: - can images be added depending
> on the type of the node object (category, question, answer, ...) - is
> there a functionality to move nodes around and do a check to ensure that
> they are allowed to be inserted in the new location or not.
> 
> I would be interesting to have a fully functional tree example in the
> showcase, as it would help answer a number of these questions.
> 
> Thanks for the effort, Session
> 
> 
>> I have worked with the tree extensively but that was about two months
>> ago with 2.0.6. I faced a lot of problems when I first encountered this
>> and so I'll try and fix the showcase examples in the coming weekend and
>> submit a patch next week . I hope not much would have changed between
>> then and in the current version.
>> 
>> Manu
>> 
>> Ted Husted wrote:
>>> We do try to tag the examples that are broken, in the hope that
>>> someone will someday fix them. I just didn't realize that this one
>>> wasn't working the way it should. The Showcase could use a lot of
>>> work, especially in terms of explaining exactly what the example
>>> should do. If you can fix the example, please submit a patch.
>>> Otherwise, feel free to open a JIRA ticket suggesting that the example
>>> be tagged as broken for the next release.
>>> 
>>> -Ted.
>>> 
>>> On 8/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>> 
>>>> Do you think leaving known broken code on the "Showcase" is a good 
>>>> idea realizing developers are flocking to this resource to figure
>>>> out how to do things?  If it is known not to work, maybe it should
>>>> say this or be removed from the Showcase!
>>>> 
>>>> On 8/10/07, Musachy Barroso <[EMAIL PROTECTED]> wrote:
>>>> 
>>>>> Yes the example had several problems on 2.0.x, some of them were 
>>>>> fixed, others are still there.
>>>>> 
>>>>> musachy
>>>>> 
>>>>> On 8/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>>>>> 
>>>>>> I'm studying the dynamic tree example in the showcase, and
>>>>>> there are a couple problems.  First, when you view sources, the 
>>>>>> configuration for
>>>>>> 
>>>>> the
>>>>> 
>>>>>> dynamicTreeSelectAction is not visible.  Also, as I inspect
>>>>>> this action,
>>>>>> 
>>>>> I'm
>>>>> 
>>>>>> discovering that its dynamicTreeSelect.jsp never displays the 
>>>>>> node selected!  Is this example not finished?
>>>>>> 
>>>>>> -- Scott [EMAIL PROTECTED]
>>>>>> 
>>>>>> 
>>>>> -- "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>> 
>>>>> -----------------------------------------------------------------
>>>>> -- -- To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>> 
>>>>> 
>>>>> 
>>>> -- Scott [EMAIL PROTECTED]
>>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> 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]
>> 
>> 
>> 
> 
> 
> --------------------------------------------------------------------- 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]




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

Reply via email to