2 Replies Latest reply on May 21, 2009 10:42 AM by jaand96

    el question - expression

      This might be OT, apologies in that case.
      Have this button

      <a4j:commandButton value="Save" action="#{myController.save}"
      oncomplete="#{facesContext.maximumSeverity == null ? 'Richfaces.hideModalPanel(\'myModalPanelId\');' : ''}" />
      


      How can I make the modal panel id a variable to use it in a facelets template. This doesn't work but to illustrate:

      <a4j:commandButton value="Save" action="#{myController.save}"
      oncomplete="#{facesContext.maximumSeverity == null ? 'Richfaces.hideModalPanel(\''+ myModalPanelIdParam +'\');' : ''}" />