4 Replies Latest reply on Nov 10, 2012 3:13 AM by polofan

    Richfaces4 components are not displayed

    polofan

      Hey guys,

      I followed the steps of this tutorial https://community.jboss.org/wiki/HowToAddRichFaces4xToProjectsNotBasedOnMaven on my project and added the required files to my WEB-INF directory.

      Then I pasted the source code of the tabPanel (http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=tabPanel&skin=blueSky) from the RF4 showcase into a xhtml site in my project.

      But when I open the site in my browser this is what I see : What's missing here ? I thought there would be no further configuration steps with RF4 ? I'm using glassfish V.3.1.2.2 which supports jsf2...Bildschirmfoto vom 2012-11-09 11:11:32.pngthanks for your answers

        • 1. Re: Richfaces4 components are not displayed
          ppitonak

          Hi Peter,

           

          I cannot see attached picture, could you please fix that?

           

          Regards,

          Palo

          • 2. Re: Richfaces4 components are not displayed
            polofan

            oh yes sorry I'll try again screen.JPG

            • 3. Re: Richfaces4 components are not displayed
              ppitonak

              Can you see any JavaScript/missing resources errors in browser console? Do you have <h:head> in your xhtml file?

               

              You copied code from Showcase, please try code below.

               

              <?xml version="1.0" encoding="UTF-8" ?>
              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" 
                    xmlns:rich="http://richfaces.org/rich" xmlns:ui="http://java.sun.com/jsf/facelets">
              <h:head/>
              <h:body>
                <rich:tabPanel switchType="client">
                   <rich:tab header="tab1">tab1</rich:tab> 
                   <rich:tab header="tab2">tab2</rich:tab> 
                </rich:tabPanel>
              </h:body>
              </html>
              
              • 4. Re: Richfaces4 components are not displayed
                polofan

                ah yes you were right! I had an <ui:composition> tag around the panel like in the code of the showcase example. Without this tag it works, thank you all