Hi Aaron,
In the /jetspeed/WEB-INF/templates/layout/html/*/ folders, there are layout.jsp
containing the some code fragments like the following:
String _tempPath = _frag.getDecoration().getBasePath();
String _portletJSP = _tempPath.substring(0,_tempPath.lastIndexOf('/')) +
"/decorator.jsp";
I think you can modify the above as follows:
String _portletJSP = "/" +
_frag.getDecoration().getResource("decorator.jsp");
It will find your custom decorator jsp page and it will do fallback algorithm
if there's no jsp template file in your custom decorator folder.
Regards,
Woonsan
--- On Mon, 9/15/08, Aaron Evans <[EMAIL PROTECTED]> wrote:
> From: Aaron Evans <[EMAIL PROTECTED]>
> Subject: Overriding default JSP portlet decorator
> To: "Jetspeed Users List" <[email protected]>
> Date: Monday, September 15, 2008, 4:49 PM
> I'm converting my decorators to JSP and I've noticed
> that for my
> portlet decorator, it seems to always use
> jetspeed/decorations/portlet/decorator.jsp.
>
> Is there a way I can configure my decorator to use
> jetspeed/decorations/portlet/my-decorator/decorator.jsp?
>
> thanks,
> aaron
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]