Re: J2 - Menu Navigation - Root Folder

2005-02-16 Thread Shah Amit
Sure. Thanks for your response.
Amit
Original Message Follows
From: David Sean Taylor <[EMAIL PROTECTED]>
Reply-To: "Jetspeed Users List" 
To: Jetspeed Users List 
Subject: Re: J2 - Menu Navigation - Root Folder
Date: Wed, 16 Feb 2005 09:17:10 -0800
Hi Shah,
Can you move this discussion to the jetspeed-dev mailing list?
I think its going to involve some reworking of APIs, and I prefer to discuss 
it there.

Thanks,
David
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
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]


Re: J2 - Menu Navigation - Root Folder

2005-02-16 Thread David Sean Taylor
Hi Shah,
Can you move this discussion to the jetspeed-dev mailing list?
I think its going to involve some reworking of APIs, and I prefer to 
discuss it there.

Thanks,
David
--
David Sean Taylor
Bluesunrise Software
[EMAIL PROTECTED]
[office] +01 707 773-4646
[mobile] +01 707 529 9194
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


J2 - Menu Navigation - Root Folder

2005-02-16 Thread Shah Amit
Hi all,
I  studied the entire org.apache.jetspeed.profiler.ProfiledPageContext 
interface. Now I want to reach to the "root folder". Ultimately I want to 
create a tree of everything that exists, but from what I can understand 
after reading the way interfaces are designed, I think I have to go 
backwards upto the root node, and then start listing each child.

Now to reach the root folder, the best I could come up with is following 
macro. Would really appreciate if someone can suggest any better method ...

#macro(getRootFolder $folder)
#set($parent = $folder.getParent())
$parent
#if($parent != "/")
   #getRootFolder($parent)
#end
#end
I would again like to mention that with those interfaces, it is really very 
convinient to list the child elements, and folders and stuff, but I am 
finding it a little bit tough to traverse my way up the tree to reach the 
grandest parent ...

Thanks,
Amit

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