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


Reply via email to