WebSphere Portal Server - findByUniqueName

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2005 > findByUniqueName





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author findByUniqueName
Tomasulo

2005-03-09, 11:13 am

Hi, I'm trying to find a NavigationNode with the Locator of NavigationSelectionModel, the source is:
------
NavigationSelectionModel selectionModel = modelUtil.getNavigationSelectionModel();
NavigationNode node = (NavigationNode)selectionModel.getLocator().findByUniqueName(unique);

if (node != null){
s= node.getTitle(new Locale("en"));
}
----

It works with the unique name "wps.my portal", but doesn't find it's children, maybe this is a portal's bug or maybe the Locator only looks for nodes in the same level.

Does anybody knows if there is a way to look for in all the NavigationSelectionModel??

Thanks
Tomasulo

2005-03-09, 11:56 am

Forget it.

It works with:

NavigationModel navigationModel = modelUtil.getNavigationModel();
NavigationNode nodo = (NavigationNode)navigationModel.getLocator().findByUniqueName(unique);

if (nodo != null){
s = nodo.getTitle(new Locale("en")));
}
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com