点击命令按钮后需要设置rich:simpleTogglePanel open = false

时间:2012-07-16 11:38:40

标签: javascript richfaces

点击命令按钮后需要设置rich:simpleTogglePanel open = false 下面是我的命令按钮编码,单击此命令按钮后我应该怎么做才能更改simpleTogglePanel open = false

<a4j:commandButton value="Search" status="waitSearchStatusSO" 
                    id="soSearchBtn"
                    reRender="soSearchResultsPanel,soErroMessages,searchSoKey"
                    action="#{soSearchAction.processAction}"
                    onmouseover="this.style.color='#d30100'"
                    onmouseout="this.style.color='#ffffff'"
                    onclick="javascript:validateSOsearch();"
                    oncomplete="javascript:Richfaces.hideModalPanel('processpanel');"
                    styleClass="btnBackground"
                    disabled="#{ viewScope.soform.waveSoExistFlag == 'false' ?false: !viewScope.soform.searchAccess}" />

1 个答案:

答案 0 :(得分:0)

  if (SimpleTogglePanelManager.panels.get(panel.id).status == "true") {
    SimpleTogglePanelManager.toggleOnClient(event, panel.id);
  }

有关详细信息,请参阅此处: https://community.jboss.org/thread/183160