Ok, thanks.  I guess the question then is why isn't set up like that
already? Is it a known bug?



On Tue, Sep 16, 2008 at 4:10 AM, Woonsan Ko <[EMAIL PROTECTED]> wrote:
> 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]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to