[jboss-user] [JBoss Portal] - Re: Use Themes outside of actual portal.

apemberton do-not-reply at jboss.com
Sun Jan 18 01:33:32 EST 2009


Sure; Portal themes run as (or inside) a typical Java EE WAR. There's no reason your custom Spring-based web apps can't directly reference your Portal's CSS files. 

You shouldn't have to copy the CSS selectors, you should be able to reference your Portal's theme CSS files directly:

<link type="text/css" rel="stylesheet" media="all" href="/portal/yourportaltheme/styles/style.css" />

The above should work if your custom spring apps were deployed to the Portal server; otherwise you'd want to reference the appropriate server, etc.

You can't, however, easily take advantage of the other features provided by Portal themes - layouts, regions, etc. 

Along those lines, if you do deploy the Spring apps on the Portal server, you should easily be able to enable single-sign on between them: http://www.andypemberton.com/jboss/securing-ajax-servlets-in-jboss-portal/

Good luck.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4202661#4202661

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4202661



More information about the jboss-user mailing list