On Tue, Feb 23, 2010 at 4:00 PM, Tender Slim <[email protected]> wrote: > > Say I have two portlets: ResultListPortlet and DetailPortlet. > ResultListPortlet contains list of (say) customers which the user can > click > to view in the DetailPortlet. I don't want the user to see the > DetailPortlet when the user has not selected any customer to view. > DetailPortlet will only be rendered when the user has selected an item in > the ResultListPortlet and had clicked a 'Browse' button. Following this, > there will be two portlets displayed. > > Question: > > 1.Is there a way to accomplish this in a JSF backing bean ? > 2.If not, is there a way to do it in a psml file i.e., render DetailPortlet > only when required ? > 3.If not, any other suggestions? > > Take a look at the Portlet Application Manager:
http://localhost:8080/jetspeed/ui/Administrative/pam.psml In the details we display the message "No application selected." until the content is available, similar to what you are doing. Take a look at the j2-admin project for code examples If you do not want the entire decorator to display, meaning you don't want to see the title bar, action icons and border, you can set the decorator to clear... If that is still not good enough, in 2.1.x and 2.2.0 you can turn off the decorator from your portlet doView like this: getPortletRequest().setAttribute("HideDecorator", new Boolean(true)) In the trunk, we may need to add this feature back in.... Let us know how that works
