2 Replies Latest reply on Jul 17, 2008 10:28 PM by Justin S.

    Pass a param to decorator template

    Justin S. Newbie

      I'm trying to figure out if there is a way to pass a param to the decorator edit template that ships with seam. In particular I want to be able to do something similar to the following.


      foo.xhtml


      <s:decorate template="templates/edit.xhtml">
      <f:param name="foo" value="bar"/>
      </s:decorate>



      templates/edit.xhtml


      <ui:composition>
      #{param.foo}
      </ui:composition>



      I'm not sure if I'm misusing f:param and should be using ui:param or f:attribute nor am I sure if I should be checking #{param} for my variable.


      Thanks,


      - Justin