2017-02-04 7:21 GMT+01:00 Christopher Cheng <li...@christophercheng.com>:
> I have a request from my client to integrate a CMS into an existing 
> application using Struts/Tiles2 or SiteMesh for presentation.
>
> Could I integrate a JCR compatible CMS into tiles2? For example, is it 
> possible to have something like this?
>
> <definition name="index" template="/jsp/myapp/layout/layout.jsp">
>     <put-attribute name="navigationBar" type="jcr" 
> value="${requestScope.document.html}"/>
>     <put-attribute name="header" value="/jsp/myapp/layout/header.jsp"/>
>     <put-attribute name="footer" value="/jsp/myapp/layout/footer.jsp"/>
> </definition>
>
> That means some of the pages, we use jsp and some of the pages, the contents 
> are retrieved from CMS?

I think you can implement your own Renderer and register it

https://tiles.apache.org/framework/config-reference.html#Renderers
https://tiles.apache.org/tiles-request/apidocs/org/apache/tiles/request/render/Renderer.html
https://github.com/apache/struts/blob/master/plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java#L122-L133


Regards
-- 
Ɓukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to