Andy,

I understand your confusion about the difference between views and themes as
I hit the same problem a while back.  I imagine you created a custom view
from the simple view and called it "andy", however the service management
feature assigns themes, which are a different beast.

Here is the Spring 2.5 documentation on how to use themes:
http://static.springsource.org/spring/docs/2.5.x/reference/mvc.html#mvc-them
eresolver

I wish there was more I can tell you.  Themes work well if you only need to
change minor things, but I need to do major restructuring for all JSPs
because of a service.  I have thought about requesting the service
management feature to include the ability to specify alternative views,
however it hasn't been until now that I can devote time to that effort.

A-

On 7/15/09 4:43 AM, "Andy Stokes" <[email protected]> wrote:

> Hi 
> 
> I have CAS3 enabled with my oen LDAP authentication handler and memcached
> installed for ticket registry.
> 
> What I want to do now is display a different theme for different services.  I
> want a default one and one for a specified URL that will display a different
> looking login, but with the same background authentication.
> 
> I was looking about and getting mixed up with views and themes.  I found some
> code that suggests that you can add a service to deployerConfigContext.xml -
> snippet below - which would point to a specific theme.  But when I run this
> and try /cas/login?service=http://www.yahoo.com the theme choosen is still the
> default on - any hints?
> 
> <bean id="serviceRegistryDao"
> class="org.jasig.cas.services.InMemoryServiceRegistryDaoImpl">
> <property name="registeredServices">
> <list>    
> <bean class="org.jasig.cas.services.RegisteredServiceImpl"
> p:id="1"
>                     p:description="Yahoo"
>                     p:serviceId="http://www.yahoo.com";
>                     p:name="Yahoo"
>                     p:theme="andy"
>                     p:allowedToProxy="false"
>                     p:enabled="false"
>                     p:ssoEnabled="false"
>                     p:anonymousAccess="false">
>                     <property name="allowedAttributes">
> <list/>
>                     </property>
> </bean>
> </list>
> </property>   
> </bean> 

-- 
Andrew Feller, Business System Programmer
LSU University Information Services
200 Frey Computing Services Center
Baton Rouge, LA 70803
Office: 225.578.3737
Fax: 225.578.6400



-- 
You are currently subscribed to [email protected] as: 
[email protected]
To unsubscribe, change settings or access archives, see 
http://www.ja-sig.org/wiki/display/JSG/cas-dev

Reply via email to