1 Reply Latest reply on Feb 11, 2009 6:33 PM by Nick Belaevski

    ModalPanel and form submission

    asaf sh Expert

      Hello,

      I am trying to submit a form by using the standard <h:commandButton> tag within a modalPanel,

      Following is a sample code:

      <h:form>
      
      <h:inputText value="#{comp.myValue}"/>
      <a:commandButton value="#{messages['velo.button.ApproveSelected']}" id="link">
       <rich:componentControl for="mp" attachTo="link" operation="show" event="onclick"/>
       </a:commandButton>
      
      
      
      
      <rich:modalPanel id="mp">
      
      <h:commandButton action="#{someComponent.invokeAction()}" value="Approve!!" />
      
      </rich:modalPanel>
      
      </h:form>
      



      Seems like the commandButton does not invoke the action, it actually does not do anything,

      The ajaxified commandButton works fine but I need to use the standard commandButton as I'm using Seam that calculates the next page to be redirected to via the invoked action.


      Any clue?


      Thanks in advanced,

      Asaf.