You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Shah Amit <am...@hotmail.com> on 2005/02/16 17:46:59 UTC

J2 - Menu Navigation - Root Folder

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: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: J2 - Menu Navigation - Root Folder

Posted by Shah Amit <am...@hotmail.com>.
Sure. Thanks for your response.

Amit

----Original Message Follows----
From: David Sean Taylor <da...@bluesunrise.com>
Reply-To: "Jetspeed Users List" <je...@jakarta.apache.org>
To: Jetspeed Users List <je...@jakarta.apache.org>
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
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org


Re: J2 - Menu Navigation - Root Folder

Posted by David Sean Taylor <da...@bluesunrise.com>.
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
david@bluesunrise.com
[office] +01 707 773-4646
[mobile] +01 707 529 9194

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org