1 Reply Latest reply on Sep 24, 2008 7:50 AM by ilya_shaikovsky

    rich:comboBox and rich:modalPanel

      Hi,

      I have a somewhat strange behavour. I have a modalPanel with a rich:comboBox included. This works fine. But if i rerender the modalPanel twice without showing the modalPanel and than show the modalPanel, I get JavaScript errors while using the comboBox, and the values for selection are beeing displayed somewhere within the screen.

       <rich:modalPanel id="modalPanel" autosized="true" minWidth="600">
       <f:facet name="header">
       My modal Panel
       </f:facet>
       <f:facet name="controls">
       <h:graphicImage value="#{ closeModalPanel }" onclick="Richfaces.hideModalPanel('modalPanel');" />
       </f:facet>
       <a4j:form>
       <h:outputLabel for="selected" value="Titel:"/>
       <rich:comboBox id="titleBox" value="#{ formdata.title }"
       inputClass="combo" inputDisabledClass="combo" inputInactiveClass="combo">
       <f:selectItems value="#{ catalogueValues.titles }"/>
       </rich:comboBox>
       <a4j:outputPanel ajaxRendered="true">
       <h:message for="titleBox" styleClass="errortext" />
       </a4j:outputPanel>
       </a4j:form>
       </rich:modalPanel>
      
       <a4j:form>
       <a4j:commandButton
       action="NOTHING" reRender="modalPanel"
       value="reRender MP" />
       </a4j:form>
      
       <input onclick="Richfaces.showModalPanel('modalPanel');"
       value="show..." type="button"/>
      


      Any help?