Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Dynamic Tree Example

Dynamic Tree Example

2007-09-06       - By Manu Mahajan

 Back
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:smwamufi@(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, stanlick@(protected) <stanlick@(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 <musachy@(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, stanlick@(protected) <stanlick@(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 stanlick@(protected)
>>>>>>
>>>>>>
>>>>> -- "Hey you! Would you help me to carry the stone?" Pink Floyd
>>>>>
>>>>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- --
>>>>> -- -- To unsubscribe, e-mail: user-unsubscribe@(protected)
>>>>> For additional commands, e-mail: user-help@(protected)
>>>>>
>>>>>
>>>>>
>>>> -- Scott stanlick@(protected)
>>>>
>>>
>>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>>> To unsubscribe, e-mail: user-unsubscribe@(protected) For
>>> additional commands, e-mail: user-help@(protected)
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
>> To unsubscribe, e-mail: user-unsubscribe@(protected) For
>> additional commands, e-mail: user-help@(protected)
>>
>>
>>
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To
> unsubscribe, e-mail: user-unsubscribe@(protected) For additional
> commands, e-mail: user-help@(protected)
>
>
>


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)




-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.