2 Replies Latest reply on Nov 22, 2010 5:04 AM by fengxiaofeng

    a4j: commandLink (with action attributes) pop-up rich: modalPanel, modalPanel automatically shut down

    fengxiaofeng

      modalPanel automatically shut down

       

      <a4j:commandLink id="link" value="edit" reRender="stepPanel" actionListener="#{icm_campplan_approachStrategyBB.edit}"
           onclick="javascript:Richfaces.showModalPanel('stepPanel')">
          <f:param value="#{item.stepOrder}" name="stepOrder"/>   
      </a4j:commandLink>

       

      <rich:modalPanel id="stepPanel" width="500" height="520">
           <h:form>

                .......
           </h:form>
      </rich:modalPanel>

       

      public void edit(ActionEvent event) {
        String stepOrder = this.getRequestParameter("stepOrder");
        for (IcmCampplanApproachStepVO step : approachStepList) {
         if(step.getStepOrder().toString().equals(stepOrder)) {
          approachStepVO = step;
          break;
         }
        }
      }