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

    rich:comboBox and rich:modalPanel

    Achim Grimm Newbie


      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 name="controls">
       <h:graphicImage value="#{ closeModalPanel }" onclick="Richfaces.hideModalPanel('modalPanel');" />
       <h:outputLabel for="selected" value="Titel:"/>
       <rich:comboBox id="titleBox" value="#{ formdata.title }"
       inputClass="combo" inputDisabledClass="combo" inputInactiveClass="combo">
       <f:selectItems value="#{ catalogueValues.titles }"/>
       <a4j:outputPanel ajaxRendered="true">
       <h:message for="titleBox" styleClass="errortext" />
       action="NOTHING" reRender="modalPanel"
       value="reRender MP" />
       <input onclick="Richfaces.showModalPanel('modalPanel');"
       value="show..." type="button"/>

      Any help?