From: martingi <nu...@jb...> - 2005-07-17 12:10:24
|
"legolas" wrote : Also no localisation is provided, I (ab)used the pages name as key for retrieving the actual localized page name. | I like this approach, because if the page names could be used as a key for retrieval from the page definitions, another benefit would be more simplicity creating links from 'normal' text fragments to already defined pages. At the moment I am creating a new PortletURL for each normal text link to a page, although this is a redundancy since the page is actually already defined. Or maybe I am missing something here? The only way I see at the moment to access the page definitions is getting the iterator of all pages with JBossRenderRequest#getPortalObjects(). Maybe it would be easier to introduce an accessor like getPageByName(pageName) in order include a link to an already defined page. Furthermore an automated link checking (or simple exception throwing) by the portal could be possible with this, if the page should be not defined anymore. "mholzner" wrote : So far I haven't thought about it. What is the use case? Why would you need to do this ? A scenario for per window rendering might be that you have a window rendering the navigation (which you always want to get displayed and where you don't want to have any decorations) and another window with news and window decorations, where you will let it up to the user whether to minimize it or not. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3885192#3885192 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3885192 |