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.

-----Original Message-----
From: Sylvain [mailto:sylvain.derosi...@univ-lille3.fr]
Sent: Tuesday, 19 February, 2013 07:46
To: cas-user@lists.jasig.org
Subject: [cas-user] Associate JSP UI files to a theme ?

Hi !

I use CAS 3.5.1 and I have configured a theme which apparently allowing us 
to only change CSS. This part works but I want to personalize JSP files 
found under cas-server-webapp/src/main/webapp/WEB-INF/view/jsp/default 
directory on another directory linked to the theme. How could I achieve this 
?

Thanks in advance,
Sylvain
--
You are currently subscribed to cas-user@lists.jasig.org as: 
cfern...@sju.edu To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-user

-- 
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