Thanks David. 

We are able to achieve the same by just rendering a psml file in a
folder. Jetspeed renders the 'tab' for all the psmls in the folder and
also the content of the requested psml i.e. the requested psml has been
made as the active page. Please let me know if this is the expected
behaviour of jetspeed. I hope this behaviour will not be treated as a
bug :-)

We have created a 'non-profiled' folder (duplicate of the _role folder)
to switch to a role-specific view as an admin user. This is only a
workaround. But, hope to get the fix as you mentioned.

Regards,
Rajaram

-----Original Message-----
From: David Sean Taylor [mailto:[EMAIL PROTECTED] 
Sent: Monday, July 02, 2007 9:58 PM
To: Jetspeed Users List
Subject: Re: Rendering Folders


On Jun 28, 2007, at 11:45 PM, Ramaiah, Rajaram A K wrote:

> Hello,
>
> I'd like to add to Ravi Kumar's question in an earlier posting:
>
> Basically, our requirement is to provide a combo-box in our portal 
> application which will enable the admin user to switch to a different 
> user view which has different set of tabs/panes/psmls. Please note 
> that the actual role of the admin user should not be changed. Now, our

> issue is how to render a 'folder' with multiple psml files. Though 
> some suggest to use '$jetspeed.renderFolder()' in velocity code, there

> is not enough details of the function provided. If there are also 
> other approaches, please let us know.
>

To build the combo box of user folders, you can use the PageManager
service:

Folder subsiteFolder = pageManager.getFolder("/_user"); NodeSet set =
pageManager.getFolders(subsiteFolder);
if (set != null && !set.isEmpty())
{
     Iterator setIterator = set.iterator();
     while (setIterator.hasNext())
     {
         Folder f = (Folder)setIterator.next();
                 ...
     }
}

As for the Admin user to view any folder, there is an open issue on that

https://issues.apache.org/jira/browse/JS2-675

that I can hopefully resolve soon



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

Reply via email to