Deploying theme on CAS 4.2.6, setting it as default

34 views
Skip to first unread message

Daniel Spillers

unread,
Nov 4, 2016, 5:46:06 PM11/4/16
to CAS Community
I created a theme (with corresponding view/jsp/<theme name> folder for custom views) and set it as cas.themeResolver.defaultThemeName in cas.properties.

I can select the theme in my service registry on a per-service basis (yay!) but the default views are still being pulled in when there is no service selected. 

Is there a way to use a custom theme as the default for the entire CAS app, or do I have to overlay the view/jsp/default/ui still to get this behavior?


daniel spillers
University of Arkansas at Little Rock | Information Technology Services
501.916.3010 | ualr.edu/itservices
IT Services will never ask for your password over the phone or in an email. Always be suspicious of requests for personal information that come via email, even from known contacts. For more information or to report suspicious email, visit IT Security.

Misagh Moayyed

unread,
Nov 4, 2016, 5:50:05 PM11/4/16
to cas-...@apereo.org

 

I can select the theme in my service registry on a per-service basis (yay!) but the default views are still being pulled in when there is no service selected. 

 

Is there a way to use a custom theme as the default for the entire CAS app, or do I have to overlay the view/jsp/default/ui still to get this behavior?

 

The “view/jsp/default/ui” is the strategy to affect the entire application. You don’t overlay everything obviously; just the stuff you need.

 

You should only overlay JSP files if you actually need to change the physical structure of the UI (maybe not even then, depends). Otherwise, for both custom and default you can probably get away with defining themes with just CSS and JS.  

 

Daniel Spillers

unread,
Nov 4, 2016, 5:55:58 PM11/4/16
to CAS Community
Excellent. I thought as much, but thank you for the confirmation. We definitely have to change the HTML structure of the UI — if there's a way to do that without overlaying the JSP I'd love to hear it! I'm also going to be reviewing our UI to see if there is a way to minimize when we need to overlay JSP.



daniel spillers
University of Arkansas at Little Rock | Information Technology Services
501.916.3010 | ualr.edu/itservices
IT Services will never ask for your password over the phone or in an email. Always be suspicious of requests for personal information that come via email, even from known contacts. For more information or to report suspicious email, visit IT Security.

--
- CAS gitter chatroom: https://gitter.im/apereo/cas
- CAS mailing list guidelines: https://apereo.github.io/cas/Mailing-Lists.html
- CAS documentation website: https://apereo.github.io/cas
- CAS project website: https://github.com/apereo/cas
---
You received this message because you are subscribed to the Google Groups "CAS Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cas-user+unsubscribe@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/020701d236e5%2465826220%2430872660%24%40unicon.net.

Misagh Moayyed

unread,
Nov 4, 2016, 5:58:37 PM11/4/16
to cas-...@apereo.org

 

Excellent. I thought as much, but thank you for the confirmation. We definitely have to change the HTML structure of the UI — if there's a way to do that without overlaying the JSP I'd love to hear it! I'm also going to be reviewing our UI to see if there is a way to minimize when we need to overlay JSP.

 

Sort of depends on how big the changes are in scope; sounds like there is plenty so I’d stick with JSP changes for now and overlays. Otherwise, lots of weird (read: too fancy for my taste) Javascript [1] code.

 

-- Misagh

 

[1] No Javascript frameworks were invented during the composition of this email message.

Reply all
Reply to author
Forward
0 new messages