0 Replies Latest reply on Jul 30, 2008 4:57 PM by Guillaume Jeudy

    Navigate to a new page after modalPanel submit

    Guillaume Jeudy Master

      Hi,

      I'm using a modalPanel with a form inside, when I submit I would like not only the modalPanel to disappear (which already works) but the parent window to navigate to a new page. Any hints on how I could achieve that is appreciated.

      <rich:modalPanel id="panel" width="450" height="150" headerClass="noPadding">
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="Unfreeze release package"></h:outputText>
       </h:panelGroup>
       </f:facet>
       <f:facet name="controls">
       <h:panelGroup>
       <h:graphicImage value="/img/modal/close.png"
       style="cursor:pointer" id="hidelink" />
       <rich:componentControl for="panel" attachTo="hidelink"
       operation="hide" event="onclick" />
       </h:panelGroup>
       </f:facet>
       <h:outputText styleClass="label"
       value="This operation will cause the deployment lifecycle to reset. Are you sure you want to unfreeze release package?" />
       <h:form>
       <h:commandButton
       action="#{releasePackageService.unfreezeReleasePackage(relPkg)}"
       value="Yes, I want to unfreeze release package" />
       </h:form>
       </rich:modalPanel>


      Thanks,
      -Guillaume