3 Replies Latest reply on Oct 16, 2009 8:51 AM by Ilya Shaikovsky

    Combox does not display?

    BJorn T Johansen Newbie

      I am using the latest SR1 release and trying to show a rich:comboBox with the following code:

      rich:comboBox id="overgruppe" width="200px" listWidth="200px" enableManualInput="false" directInputSuggestions="false"
       suggestionValues="#{articleSearchController.gruppeList}" value="#{articleSearchController.overgruppe}"/>
      


      But this does not display the combobox, it only display the chosen value, like displaying a label. And I can't choose anything... (i.e. no dropdown..)

      What am I missing?


      Regards,

      BTJ


        • 1. Re: Combox does not display?
          Ilya Shaikovsky Master

          but our samples works as you could check at richfaces-demo. So need more info about your code resoures loading statuses from FireBug and so on.

          • 2. Re: Combox does not display?
            BJorn T Johansen Newbie

            Not sure what more info you need but here are the errors I get from Firebug..:

            Error in parsing value for 'filter'. Declaration dropped.
            anonymous("meta", Document )3_3_2.SR...ipt.xhtml (line 101)
            anonymous("Ajax-Expired")3_3_2.SR...ipt.xhtml (line 97)
            anonymous(Object _query=Object _documentElement=html options=Object)3_3_2.SR...ipt.xhtml (line 164)
            anonymous()3_3_2.SR...ipt.xhtml (line 87)
            [Break on this error] .rich-calendar-exterior{border-color:#9C....rich-tree-node-highlighted{color:#000;}eAFb-Ihh...Q__.xhtml (line 1)
            Error in parsing value for 'background-image'. Declaration dropped.
            


            I am not an expert in javascript so not sure if this has effect on why the combobox is not showing...

            The html code that is being generated, is this:


            <td>
            <div id="articlesearch_action:overgruppe">
            <div id="articlesearch_action:overgruppecombobox" class="rich-combobox-font rich-combobox " onclick="if (!document.getElementById('articlesearch_action:overgruppe').component.comboList.visible()) {document.getElementById('articlesearch_action:overgruppe').component.showList();}" style="width: 200px;">
            <div class="rich-combobox-list-cord"/>
            <div class="rich-combobox-font rich-combobox-shell" style="width: 200px;">
            <input id="articlesearch_action:overgruppecomboboxField" class="rich-combobox-font-inactive rich-combobox-input-inactive " type="text" value="---" style="width: 183px;" readonly="true" name="articlesearch_action:overgruppecomboboxField" autocomplete="off"/>
            <input id="articlesearch_action:overgruppecomboBoxButtonBG" class="rich-combobox-font-inactive rich-combobox-button-background rich-combobox-button-inactive" type="text" tabindex="-1" readonly="true"/>
            <input id="articlesearch_action:overgruppecomboboxButton" class="rich-combobox-font-inactive rich-combobox-button-icon-inactive rich-combobox-button-inactive " type="text" tabindex="-1" style="" readonly="true"/>
            <div class="rich-combobox-strut rich-combobox-font" style="width: 190px;">Strut</div>
            </div>
            <div id="articlesearch_action:overgruppelistParent" class="rich-combobox-list-cord " style="position: absolute; z-index: 1000; visibility: visible; display: none;">
            </div>
            <input id="articlesearch_action:overgruppecomboboxValue" type="hidden" name="articlesearch_action:overgruppe" autocomplete="off" value="---"/>
            </div>
            <script type="text/javascript">
            1new Richfaces.ComboBox("articlesearch_action:overgruppe",{'listOptions':{'itemsText':['\x2D\x2D\x2D','Tjenester','Emballasje','Trelast','Tynnplateprofiler Av Stål','Stål og Metaller','Bygg og Anlegg','Dører','Vinduer','Trevarer og Interiør','Jernvare','Festemidler','Håndverktøy','Maskiner og verktøy','Maling Teknisk/Kjemisk','Hus og Fritid','Hage\x2D, grønt\x2Danlegg','Kjøkken/husholdning/hygiene','Elektriske Artikler','Instrumentering','VVS','Møbler','Gummiprodukter Industri','Landbruksutstyr','Smøremidler, olje, fett','Kontor og data','Kontorrekvisita og papir','Kontormaskiner og utstyr','Egen overgruppe'] ,'listWidth':'200px'} ,'value':'\x2D\x2D\x2D'} );
            </script>
            </div>
            </td>
            
            
            Does this help?
            
            BTJ
            
            


            • 3. Re: Combox does not display?
              Ilya Shaikovsky Master

              please page full source JSF pages code snippets.