1 Reply Latest reply on Dec 3, 2007 8:17 AM by Ilya Shaikovsky

    How can I rerender the modalPanel's elements?

    z xb Newbie

      where is error in below code?



      <rich:column>
      <a4j:commandLink value="#{host.hostName}"
      onclick="javascript:Richfaces.showModalPanel('mp',{width:300, top:200});"
      immediate="true" reRender="rep">
      <a4j:actionparam name="hostId" value="#{host.hostId}"
      assignTo="#{configHostBean.hostId}" />
      <a4j:actionparam name="hostName" value="#{host.hostName}"
      assignTo="#{configHostBean.hostName}" />
      </a4j:commandLink>
      </rich:column>




      <a4j:outputPanel ajaxRendered="true">
      <h:panelGrid border="0" columns="2">
      <h:outputText value="主机å��称:"></h:outputText>
      <h:inputText id="hostName" label="主机å��称"
      value="#{configHostBean.hostName}" required="true" rendered="true">
      </h:inputText>
      <h:outputText value="主机地å�€ï¼š"></h:outputText>
      <h:inputText label="主机地å�€" value="#{configHostBean.hostIp}"
      required="true"></h:inputText>
      <h:outputText value="端å�£ï¼š"></h:outputText>
      <h:inputText label="端�" value="#{configHostBean.hostPort}"
      immediate="true"></h:inputText>
      <h:outputText value="备注:"></h:outputText>
      <h:inputTextarea value="#{configHostBean.remark}"></h:inputTextarea>
      <h:outputLabel></h:outputLabel>
      <h:panelGroup>
      <a4j:commandButton value="确定"
      onclick="javascript:Richfaces.hideModalPanel('mp');"
      action="#{configHostBean.addHost}">
      </a4j:commandButton>
      <a4j:commandButton value="�消"
      onclick="Richfaces.hideModalPanel('mp'); return false;"
      type="reset"></a4j:commandButton>
      </h:panelGroup>
      </h:panelGrid>
      <h:outputText id="rep" value="#{configHostBean.hostName}" /> </a4j:outputPanel>
      </rich:modalPanel>