2 Replies Latest reply on Mar 19, 2008 5:31 AM by Metin OSMAN

    actionExpression and ui:param

    Metin OSMAN Newbie


      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" />

      validate.xhml :

       <a4j:commandLink actionExpression="#{okAction}"
       <a4j:commandLink actionExpression="#{cancelAction}"

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