2 Replies Latest reply on Nov 3, 2010 8:30 AM by Amitesh Sharma

    Theme property resolution

    Kevin Erhardt Newbie

      Hello community,


      after migration from seam 1.2 to seam 2.1.2 I have some trouble with the theme property resolution. I use the configuration file default.properties to configure the template path, and I access the property in my JSF files over #{theme.template}, but the value seems be empty. In seam-blog example it works fine, but in my solution not :(.



      default.properties:


      css /stylesheet/theme.css
      template /layout/template.xhtml



      components.xml:


      ...
      <theme:theme-selector>
        <theme:available-themes>
          <value>default</value>
          <value>printable</value>
        </theme:available-themes>
      </theme:theme-selector>
      ...
      



      myjsf.xhtml:


      ...
      <div style="color: red;">
        template = #{theme.template}<br />
        css = #{theme.css}<br />
        theme = #{themeSelector.theme}
      </div>
      ...
      



      output:


      template = template // is wrong
      css = css // is wrong
      theme = default // works fine
      



      Have someone an idia for this problem?


      Kevin