Le 19/02/2013 16:40, Carlos Fernandez a écrit :
Hi, Sylvain,

One way to achieve your goal is through the theme properties file,
<spring:theme> and <jsp:include>.

Imagine that you wanted to insert a small bit of HTML that changes according
to the selected theme. In each WEB-INF/classes/<custom-theme>.properties
file you could add a new property, e.g.:

theme.snippet.file=/WEB-INF/view/jsp/default/ui/includes/<custom-theme>-snippet.jsp

Then in the view JSP file where you want to insert the file you'd insert
something like this:

<spring:theme code="theme.snippet.file" var="snippetFile"
text="/WEB-INF/view/jsp/default/ui/includes/default-snippet.jsp " />
<jsp:directive.include file="${snippetFile}" />

The file would then be inserted at that location.

Best regards,
--
Carlos.
Ok, this is pretty easy and clean. I'll try this after vacation :D
Thanks for the help ! ;)

Best regards,
Sylvain

--
You are currently subscribed to cas-user@lists.jasig.org as: 
arch...@mail-archive.com
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

Reply via email to