> Hi, > > Is there any way to display a portlet in the decorator built part of > the page (the portlet is not included in a psml file)? > > This is what I do in my decorator file : > --- > PageImpl searchPage = (PageImpl) rootFolder.getPage("search.psml"); > > FragmentImpl searchFragment = (FragmentImpl) > searchPage.getFragmentById("simple-search-1"); > > jetspeed.include(searchFragment);
(This is all Velocity code, I suppose.) You should first check all the obtained objects to see, which is NULL. Obviously at one point (maybe the PSML representation, maybe the fragment "simple-search-1") you do not get the defined object, for whatever reasons. I was succesfull, including Portlets the way you did, but they were defined in the same PSML file from the Decorator I use. So basically this approach should work. Sven. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]