5 Replies Latest reply on May 29, 2013 5:46 AM by Mariyappan Velmurugan

    rich:combobox is not rendered properly

    Blochaou Blochaou Newbie

      Hi everybody

      I'm new in richFaces and i've tried to use rich:combobox in my application. When i lauch my browse (Firefox 3.0.4) i see 3 inputText and one label (Strut) instead a combobox.

       <rich:comboBox width="200px" >
       <f:selectItem itemValue="Oregon"/>
       <f:selectItem itemValue="Pennsylvania"/>
       <f:selectItem itemValue="Rhode Island"/>
       <f:selectItem itemValue="South Carolina"/>
       </rich:comboBox>
      


      i'm using richFaces 3.2.2

      I need help.

        • 1. Re: rich:combobox is not rendered properly
          Ilya Shaikovsky Master

          What is your environment? full page code?

          unfortunatelly seems something just missed in your configuration because never heard about such issue and not reproducible on my side.

          • 2. Re: rich:combobox is not rendered properly
            Blochaou Blochaou Newbie

            I use netbeans 6.5
            here is my web.xml

            <?xml version="1.0" encoding="UTF-8"?>
            <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
             <context-param>
             <param-name>com.sun.faces.verifyObjects</param-name>
             <param-value>false</param-value>
             </context-param>
             <context-param>
             <param-name>com.sun.faces.validateXml</param-name>
             <param-value>true</param-value>
             </context-param>
             <context-param>
             <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
             <param-value>client</param-value>
             </context-param>
             <context-param>
             <description>Switch off caching. You can remove this parameter or comment it out when this app goes into production.</description>
             <param-name>jmaki-usecache</param-name>
             <param-value>false</param-value>
             </context-param>
             <servlet>
             <servlet-name>Faces Servlet</servlet-name>
             <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
             <load-on-startup>1</load-on-startup>
             </servlet>
             <servlet>
             <servlet-name>XmlHttpProxy</servlet-name>
             <servlet-class>jmaki.xhp.XmlHttpProxyServlet</servlet-class>
             </servlet>
            
             <servlet-mapping>
             <servlet-name>Faces Servlet</servlet-name>
             <url-pattern>/faces/*</url-pattern>
             </servlet-mapping>
             <servlet-mapping>
             <servlet-name>XmlHttpProxy</servlet-name>
             <url-pattern>/xhp</url-pattern>
             </servlet-mapping>
            
             <session-config>
             <session-timeout>
             30
             </session-timeout>
             </session-config>
             <welcome-file-list>
             <welcome-file>/faces/jsp/welcome.jsp</welcome-file>
             </welcome-file-list>
            
            
             <ejb-ref>
             <ejb-ref-name>PaysFacade</ejb-ref-name>
             <ejb-ref-type>Session</ejb-ref-type>
             <home/>
             <remote>entities.PaysFacadeRemote</remote>
             <ejb-link>Miwas-ejb.jar#PaysFacade</ejb-link>
             </ejb-ref>
            
             <ejb-ref>
             <ejb-ref-name>RubriqueFacade</ejb-ref-name>
             <ejb-ref-type>Session</ejb-ref-type>
             <home/>
             <remote>entities.RubriqueFacadeRemote</remote>
             <ejb-link>Miwas-ejb.jar#RubriqueFacade</ejb-link>
             </ejb-ref>
            
             <ejb-ref>
             <ejb-ref-name>CategorieFacade</ejb-ref-name>
             <ejb-ref-type>Session</ejb-ref-type>
             <home/>
             <remote>entities.CategorieFacadeRemote</remote>
             <ejb-link>Miwas-ejb.jar#CategorieFacade</ejb-link>
             </ejb-ref>
            
             <ejb-ref>
             <ejb-ref-name>SouscategorieFacade</ejb-ref-name>
             <ejb-ref-type>Session</ejb-ref-type>
             <home/>
             <remote>entities.SouscategorieFacadeRemote</remote>
             <ejb-link>Miwas-ejb.jar#SouscategorieFacade</ejb-link>
             </ejb-ref>
            
             <ejb-ref>
             <ejb-ref-name>DetailFacade</ejb-ref-name>
             <ejb-ref-type>Session</ejb-ref-type>
             <home/>
             <remote>entities.DetailFacadeRemote</remote>
             <ejb-link>Miwas-ejb.jar#DetailFacade</ejb-link>
             </ejb-ref>
            
            
            
             <context-param>
             <param-name>org.richfaces.SKIN</param-name>
             <param-value>blueSky</param-value>
             </context-param>
             <filter>
             <display-name>RichFaces Filter</display-name>
             <filter-name>richfaces</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             </filter>
             <filter-mapping>
             <filter-name>richfaces</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>FORWARD</dispatcher>
             <dispatcher>INCLUDE</dispatcher>
             </filter-mapping>
            
             </web-app>
            


            • 3. Re: rich:combobox is not rendered properly
              Ilya Shaikovsky Master

              blochaou, it will be even better if you will be able to provide simple war in order to just deploy and check on our side. you could send it to me directly.

              • 4. Re: rich:combobox is not rendered properly
                Blochaou Blochaou Newbie

                Thank for your help.

                I think that the problem is not richFaces but another framework i use. I've resolved the problem.
                Thank a lot.

                • 5. Re: rich:combobox is not rendered properly
                  Mariyappan Velmurugan Newbie

                  Hai Blochaou Blochaou,

                   

                               I am also facing the same problem. Initially the rich:combobox not work (shows 3 text box with a label "Strut") . Once i refereshed the page the combobox rendered properly. Please let me know the solution.

                   

                              I am using RichFaces 3.3.3

                   

                              Thanks in advance.