11 Replies Latest reply on Jul 28, 2008 9:23 AM by rare

    a bug in ModalPAnel :(

    rare

      hi i want to report a bug in modalpanel i made a modalpanel in which there's a combobox and a selectonemenu.
      the selectonemenu works perfectly but the rich:combobox failed to get data from beans.

      <rich:modalPanel id="modalpanel_ajouter" width="700" height="400" binding="#{Fishe_client.modal_panal_ajouter}" autosized="false" resizeable="false">
      <f:facet name="header">
      <h:outputText value="Modal Panel"/>
      </f:facet>
      <h:form>


      <rich:comboBox defaultLabel="Enter some value" value="#{Afficher_devise.pays_choisit}">
      <f:selectItems value="#{Afficher_devise.pays_}" />


      </rich:comboBox>



      <h:selectOneMenu value="#{Afficher_devise.pays_choisit}" ><f:selectItems value="#{Afficher_devise.pays_}" /></h:selectOneMenu>


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

      Sorry if the beans are in french .

        • 1. Re: a bug in ModalPAnel :(
          ilya_shaikovsky

          seems that this is the problem with popup list which appears below the panel. please try 3.2.2 latest snapshots. should be resolved already.

          • 2. Re: a bug in ModalPAnel :(
            rare

            i have tested again with richfaces 3.2.2 and still not working
            have a look at my jsp
            <f:view>



            <rich:modalPanel id="modalpanel_confirmer_ajout_client" width="400" height="400" binding="#{Mybean.firstpanel}" autosized="true" resizeable="false">
            <h:form>
            <rich:comboBox><f:selectItems value="#{Mybean.myvalue}"/></rich:comboBox>
            <h:selectOneMenu><f:selectItems value="#{Mybean.myvalue}"/></h:selectOneMenu>
            </h:form>


            </rich:modalPanel>
            <h:form>
            <h:commandButton action="#{Mybean.actionmain_site}" value="mp"></h:commandButton>
            </h:form>

            </f:view>





            when i click i see the values in selectonemenu but it i see nothing in richfaces combobox :(
            i was thinking that this bug was corrected but unfortuntly it was not :(

            • 3. Re: a bug in ModalPAnel :(
              ilya_shaikovsky

              but you should specify value binding in value attribute of combobox in order to define initial value or just use defaultLabel.

              • 4. Re: a bug in ModalPAnel :(
                rare

                still not working i was modified the code as you suggest but unfortuntly it still not working.
                <f:view>



                <rich:modalPanel id="modalpanel_confirmer_ajout_client" width="400" height="400" binding="#{Mybean.firstpanel}" autosized="true" resizeable="false">
                <h:form>
                <rich:comboBox defaultLabel="i love richfaces"><f:selectItems value="#{Mybean.myvalue}"/></rich:comboBox>
                <h:selectOneMenu><f:selectItems value="#{Mybean.myvalue}"/></h:selectOneMenu>


                </h:form>


                </rich:modalPanel>
                <h:form>
                <h:commandButton value="actinonmainsite"action="#{Mybean.actionmain_site}" ></h:commandButton>
                </h:form>

                </f:view>


                and here is a print screen
                http://img148.imageshack.us/img148/5871/sanstitreaq5.png

                • 5. Re: a bug in ModalPAnel :(
                  ilya_shaikovsky

                  maybe value attribute usage instead of defaultLabel will give you what you need?

                  • 6. Re: a bug in ModalPAnel :(
                    rare

                    sorry but i think you are completly wrong because value in combobox is the result of what the user select for example if a combox has item values item1 item2 item3 and the user select item1
                    the value of the combox box will be item1
                    ie: if i made <rich:combobox value="#{Mybean.selected_item}"><f:selectItems value="#{Mybean.myvalue}"/></</rich:combobox>

                    if the user select item1
                    selected_item will take value item1

                    • 7. Re: a bug in ModalPAnel :(
                      ilya_shaikovsky

                      so just place a4j:support inside select and update the comboBox via reRender. Do not forget to wrap the select with region in order not to process combo which mapped to the same value together with select.

                      • 8. Re: a bug in ModalPAnel :(
                        rare

                        i'm sorry can you please write me what exactly must add i mean just the idea because i did not understand you very well esapcially the wrap select

                        • 9. Re: a bug in ModalPAnel :(
                          ilya_shaikovsky

                           

                          <h:form>
                          <rich:comboBox defaultLabel="Enter some value" value="#{Afficher_devise.pays_choisit}" id="combo">
                          <f:selectItems value="#{Afficher_devise.pays_}" />
                          </rich:comboBox>
                          
                          <a4j:region>
                          <h:selectOneMenu value="#{Afficher_devise.pays_choisit}" ><f:selectItems value="#{Afficher_devise.pays_}" />
                          <a4:support event="onchange" reRender="combo"/>
                          </h:selectOneMenu>
                          </a4j:region>
                          </h:form>
                          


                          • 10. Re: a bug in ModalPAnel :(
                            rare

                            thank you for your precieus help
                            i appreciated too much your help

                            • 11. Re: a bug in ModalPAnel :(
                              rare

                              thank you very much for your precious help i appreciate very much