Eelco Hillenius wrote:
> 
>>         // Fixed SiteMesh:
>> http://spatula.net/blog/2006/10/wicket-sitemesh-feces-nocturnus.html
>>
>> getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER);
>>
>> It's likely be pretty easy to port when I have with SiteMesh to use the
>> page
>> extension stuff that Wicket has, but I'm lazy. ;-)
> 
> I see how SiteMesh can work with Wicket, and I even can imagine a
> couple of useful use cases, but in general I believe people are
> ruining their programming model by using it with Wicket.
> 
> My 2c,
> 
> Eelco
> 

I agree that using Wicket's decoration mechanism is probably a better way to
go. One small question though - how do I put the contextPath into URLs in my
BasePage.html?  In my SiteMesh decorator, I have:

    <c:set var="ctx" value="${pageContext.request.contextPath}"/>

    <link rel="shortcut icon" href="${ctx}/images/favicon.ico"
type="image/x-icon"/>
    <link rel="stylesheet" type="text/css"
href="${ctx}/styles/deliciouslyblue/theme.css" title="default" />
    <link rel="alternate stylesheet" type="text/css"
href="${ctx}/styles/deliciouslygreen/theme.css" title="green" />
    <script type="text/javascript"
src="${ctx}/scripts/prototype.js"></script>
    <script type="text/javascript"
src="${ctx}/scripts/scriptaculous.js"></script>
    <script type="text/javascript"
src="${ctx}/scripts/stylesheetswitcher.js"></script>
    <script type="text/javascript" src="${ctx}/scripts/global.js"></script>

Thanks,

Matt

-- 
View this message in context: 
http://www.nabble.com/Is-there-a-success-message-example--tf3642922.html#a10184929
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to