2 Replies Latest reply on Mar 19, 2008 5:31 AM by metin.osman

    actionExpression and ui:param

    metin.osman

      Hi,

      I want to have a template page for validate/cancel buttons, but with dynamic action binding.

      a page :

      <ui:include src="/parts/common/validate.xhtml">
       <ui:param name="okAction" value="client.saveChanges" />
       <ui:param name="cancelAction" value="client.undoChanges" />
       </ui:include>
      



      validate.xhml :

      <h:panelGrid>
       <a4j:commandLink actionExpression="#{okAction}"
       ...
       </a4j:commandLink>
       <a4j:commandLink actionExpression="#{cancelAction}"
       ...
       </a4j:commandLink>
       </h:panelGrid>
      



      With this code, my actions are never called.
      Is this the right way to do this ?

      Thanks,