1 Reply Latest reply on May 29, 2010 12:15 AM by Ime Asangansi

    Richfaces not showing components

    Ime Asangansi Newbie

      Hi there,

       

      Please I need your help on this.

      I have just started using richfaces today.

      I am using JSF SUN RI 1.2

      Maven

      Richfaces 3.3.3.Final

      (no other component libraries)

       

      I just configure richfaces using  http://community.jboss.org/wiki/HowtoaddRichFaces33xtomavenbasedproject

       

      and   http://docs.jboss.org/richfaces/latest_3_3_X/en/devguide/html/GettingStarted.html

       

      why may richfaces  components not be rendering?

       

       

      I tried to access this example of tabbedPane:

       

      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
            xmlns:ui="http://java.sun.com/jsf/facelets"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core"
            xmlns:a4j="http://richfaces.org/a4j"
            xmlns:rich="http://richfaces.org/rich">
          <p>Here is an example of default tab panel with 3 tabs.</p>
          <rich:tabPanel>
              <rich:tab label="First">
                  Here is tab #1
              </rich:tab>
              <rich:tab label="Second">
                  Here is tab #2
              </rich:tab>
              <rich:tab label="Third">
                  Here is tab #3
              </rich:tab>
          </rich:tabPanel>
          <br/><br/>
          <p>Here is an example of tab panel switched in "ajax" style. Second tab is disabled.</p>
          <rich:tabPanel switchType="ajax">
              <rich:tab label="First">
                  Here is tab #1
              </rich:tab>
              <rich:tab label="Second" disabled="true">
                  Here is tab #2
              </rich:tab>
              <rich:tab label="Third">
                  Here is tab #3
              </rich:tab>
          </rich:tabPanel>
          <br/><br/>
          <p>Here is an example of tab panel switched completely on client.</p>
          <rich:tabPanel switchType="client">
              <rich:tab label="First">
                  Here is tab #1
              </rich:tab>
              <rich:tab label="Second">
                  Here is tab #2
              </rich:tab>
              <rich:tab label="Third">
                  Here is tab #3
              </rich:tab>
          </rich:tabPanel>

       

      </ui:composition>

       

       

      And instead of showing as it is on http://livedemo.exadel.com/richfaces-demo/richfaces/tabPanel.jsf, it shows as below.

      Not rendering the tabbedPane.

      No errors!

       

       

      Here is an example of default tab panel with 3 tabs.

       

       

      Here is tab #1

       

      Here is an example of tab panel switched in "ajax" style. Second  tab is disabled.

       

      Here is tab #1

       

      Here is an example of tab panel switched completely on client.

       

      Here is tab #1

       

       

      thanks!

        • 1. Re: Richfaces not showing components
          Ime Asangansi Newbie

          sometimes login directs to

           

          http://localhost:8080/<context>/a4j/g/3_3_3.Finalorg/richfaces/renderkit/html/scripts/skinning.js.faces

           

          and I find this thrown to the screen:

           

          {var mediaName="rich-extended-skinning";var userAgent=navigator.userAgent;var skipNavigator=window.opera||(userAgent.indexOf('AppleWebKit/')>-1&&userAgent.indexOf('Chrome/')==-1);if(!skipNavigator){var resetMedia=function(elt){var media=elt.getAttribute('media');if(mediaName==media){elt.removeAttribute('media');}};if(!window._RICH_FACES_SKINNING_ADDED_TO_BODY){var getElementByTagName=function(elt,name){var elements;try{elements=elt.selectNodes(".//*[local-name()=\""+
          name+"\"]");}catch(ex){try{elements=elt.getElementsByTagName(name);}catch(nf){}}
          return elements;};var f=function(){if(window.RICH_FACES_EXTENDED_SKINNING_ON){var styles=getElementByTagName(document,'link');if(styles){var l=styles.length;for(var i=0;i<l;i++){var elt=styles[i];resetMedia(elt);}}}};if(window.addEventListener){window.addEventListener("load",f,false);}else{window.attachEvent("onload",f);}
          window._RICH_FACES_SKINNING_ADDED_TO_BODY=true;}
          if(!window._RICH_FACES_SKINNING_ADDED_TO_AJAX&&typeof A4J!="undefined"&&A4J.AJAX){A4J.AJAX.AddHeadElementTransformer(function(elt){if(window.RICH_FACES_EXTENDED_SKINNING_ON){if(elt.tagName&&elt.tagName.toLowerCase()=='link'){resetMedia(elt);}}});window._RICH_FACES_SKINNING_ADDED_TO_AJAX=true;}}};

          when I login again, it doesnt show.

          need help on this please

          thanks