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

    el question - expression

    Jan Andersson Newbie

      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 +'\');' : ''}" />