1 Reply Latest reply on Jan 8, 2007 10:57 AM by jcox1

    Seam not finding the theme component

    jcox1

      I'm trying to configure themes in a prototype Seam application and would like to be able to rebrand the site using themes. But, I'm getting the following error followed by the world's largest stack dump:

      template="#{theme.template}" /index.xhtml @8,46 template="#{theme.template}": Cannot get value for expression '#{org.jboss.seam.theme.theme}


      My ui:composition header appears as follows:
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       template="#{theme.template}">


      And my component definition in components.xml is as follows:

      <theme:theme-selector cookie-enabled="true">
       <theme:available-themes>
       <value>default</value>
       </theme:available-themes>
       </theme:theme-selector>


      The Seam docs state that the theme component is always there, but in this case it doesn't appear that it is being found.

      Thanks for your assistance.

      Jack


        • 1. Re: Seam not finding the theme component
          jcox1

          To answer my own question.

          The problem was that the theme properties files where not being placed into the root folder of the ear file. Once the build.xml was modified to copy the theme.properties files into the correct place, then the theme component was visible.