12 Replies Latest reply on Feb 25, 2009 10:36 AM by Nick Belaevski

    tabPanels ok, but no content... why?

    ich ich Newbie

      Hi everyone!

      I'm using RichFaces for the first time and have to code a WebUI with RichFaces.

      I tried to use the rich:tabPanel, but there is a pretty huge error:
      The tabs got no content! Here are the code parts:

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j">
      
      <html>
       <body>
      
       <style>
       .tooltip {
       background-color:#{richSkin.generalBackgroundColor};
       border-width:3px;
       padding:10px;
       }
       .tooltip-text {
       width:350px;
       height:80px;
       cursor:arrow;
       border-width:2px;
       text-align:center;
       display: table-cell;
       vertical-align: middle;
       }
       .tooltipData {
       font-weight: bold;
       }
       </style>
      
      
      
       <h:form>
       <a4j:commandButton value="Logout" style="text-align : center; width : 53px;">
       <a4j:support disableDefault="true" event="onclick"
       action="#{UserBean.LogOut}"/>
       </a4j:commandButton>
      
       </h:form>
      
      
       <h:form style="text-align:center;">
      
       <rich:panel>
       <f:facet name="header">
       <h:outputText value="Pumacy Business Intelligence" >
      
       </h:outputText>
       </f:facet>
      
       <rich:tabPanel height="100%" width="100%">
      
       <rich:tab label="MyReports">
       <ui:include src="MyReports.xhtml"/>
       </rich:tab>
      
       <rich:tab label="MySettings" disabled="true">
       <ui:include src="MySettings.xhtml"/>
       </rich:tab>
      
       <rich:tab label="Administration">
       <ui:include src="Administration.xhtml"/>
       </rich:tab>
      
       </rich:tabPanel>
      
      </rich:panel>
      </h:form>
      
      </body>
      
      <h:form>
       copyright by Pumacy Technologies AG, All rights reserved.
      </h:form>
      </html>
      </ui:composition>


      now the content for the two three (one is disabled):
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:x="http://java.sun.com/jsp/jstl/xml"
       xmlns:c="http://java.sun.com/jsp/jstl/core"
       xmlns:fn="http://java.sun.com/jsp/jstl/functions"
       xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
       xmlns:sql="http://java.sun.com/jsp/jstl/sql">
      <html>
       <head> </head>
      
       <body>
      
      
       <rich:panel>
       <rich:dataTable>
       <rich:column style="weight:80px">
       <h:outputText value="reporting status:"/>
       <a4j:status id="commonstatus" startText="In progress..." stopText="Complete"/>
       <br />
       <rich:spacer height="5" />
       <h:form>
       <a4j:commandButton value="Ok" style="text-align : center; width : 100px;" eventsQueue="foo2">
       <a4j:support disableDefault="true" event="onclick"
       action="reRender"/>
       </a4j:commandButton>
       <br/>
       </h:form>
      
       </rich:column>
       <rich:column>
       <rich:comboBox selectFirstOnUpdate="false"
       defaultLabel="select your report">
       <f:selectItems value="#{ReportBean.report}" />
       </rich:comboBox>
      
       </rich:column>
       </rich:dataTable>
      
       <rich:dataTable style=" width : 100%;">
       <rich:column style="width:20%;">
      
       <rich:comboBox selectFirstOnUpdate="false"
       defaultLabel="select your font size">
       <f:selectItems value=""/><!-- TODO implement font sizes -->
       </rich:comboBox>
       </rich:column>
       <rich:column style="width:80%;">
      
       </rich:column>
       </rich:dataTable>
      
       <rich:dataTable>
       <rich:column style="width:20%;">
       <h:selectOneListbox id="select" value="#{skinBean.skin}" onchange="submit()">
       <f:selectItem itemLabel="plain" itemValue="plain" />
       <f:selectItem itemLabel="emeraldTown" itemValue="emeraldTown" />
       <f:selectItem itemLabel="blueSky" itemValue="blueSky" />
       <f:selectItem itemLabel="wine" itemValue="wine" />
       <f:selectItem itemLabel="japanCherry" itemValue="japanCherry" />
       <f:selectItem itemLabel="ruby" itemValue="ruby" />
       <f:selectItem itemLabel="classic" itemValue="classic" />
       <f:selectItem itemLabel="laguna" itemValue="laguna" />
       <f:selectItem itemLabel="deepMarine" itemValue="deepMarine" />
       </h:selectOneListbox>
      
      
       </rich:column>
       <rich:column style="width:80%;">
       </rich:column>
       </rich:dataTable>
       </rich:panel>
      
      
       </body>
      </html>
      </ui:composition>


      third tab:
      <!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:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:x="http://java.sun.com/jsp/jstl/xml"
       xmlns:c="http://java.sun.com/jsp/jstl/core"
       xmlns:fn="http://java.sun.com/jsp/jstl/functions"
       xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
       xmlns:sql="http://java.sun.com/jsp/jstl/sql">
      
      
      <h:form>
      <rich:dataTable>
       <rich:column>
       <rich:comboBox selectFirstOnUpdate="false"
       defaultLabel="select your Datasource">
       <f:selectItems value="#{DataSourcesBean.dataSources}" />
      
       </rich:comboBox>
       <p></p>
       <rich:comboBox selectFirstOnUpdate="false"
       defaultLabel="select your reporter config">
       <f:selectItems value="#{ReporterConfigBean.reporterconfig}" />
      
       </rich:comboBox>
       </rich:column>
      
       <rich:column>
       <h:outputText value = "#{DataSourcesBean.dataSources} || #{ReporterConfigBean.reporterconfig}"></h:outputText>
      
       </rich:column>
       </rich:dataTable>
      </h:form>
      
      
      </html>


      Another big problem is that the logout-button don't open the "goodbye.xhtml"...

      here the faces-config:
      <?xml version="1.0" encoding="UTF-8"?>
      <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
       xmlns:xi="http://www.w3.org/2001/XInclude"
       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-facesconfig_1_2.xsd">
       <managed-bean>
       <managed-bean-name>UserBean</managed-bean-name>
       <managed-bean-class>beans.UserBean</managed-bean-class>
       <managed-bean-scope>request</managed-bean-scope>
       </managed-bean>
       <managed-bean>
       <managed-bean-name>SkinBean</managed-bean-name>
       <managed-bean-class>beans.SkinBean</managed-bean-class>
       <managed-bean-scope>session</managed-bean-scope>
       <managed-property>
       <property-name>skin</property-name>
       <value>emeraldTown</value>
       </managed-property>
       </managed-bean>
       <navigation-rule>
       <from-view-id>/login.xhtml</from-view-id>
       <navigation-case>
       <from-action>#{UserBean.CheckValidUser}</from-action>
       <from-outcome>success</from-outcome>
       <to-view-id>/mainpage/reiter.xhtml</to-view-id>
       </navigation-case>
       <navigation-case>
       <from-action>#{UserBean.CheckValidUser}</from-action>
       <from-outcome>fail</from-outcome>
       <to-view-id>/mainpage/loginfailed.xhtml</to-view-id>
       </navigation-case>
       <navigation-case>
       <from-action>#{UserBean.LogOut}</from-action>
       <from-outcome>bye</from-outcome>
       <to-view-id>/login.xhtml</to-view-id>
       </navigation-case>
       </navigation-rule>
       <navigation-rule>
       <from-view-id>/mainpage/loginfailed.xhtml</from-view-id>
       <navigation-case>
       <from-action>#{UserBean.CheckValidUser}</from-action>
       <from-outcome>success</from-outcome>
       <to-view-id>/mainpage/reiter.xhtml</to-view-id>
       </navigation-case>
       <navigation-case>
       <from-action>#{UserBean.CheckValidUser}</from-action>
       <from-outcome>fail</from-outcome>
       <to-view-id>/mainpage/loginfailed.xhtml</to-view-id>
       </navigation-case>
       <navigation-case>
       <from-action>#{UserBean.LogOut}</from-action>
       <from-outcome>bye</from-outcome>
       <to-view-id>/login.xhtml</to-view-id>
       </navigation-case>
       </navigation-rule>
       <application>
       <!-- Enables Facelets -->
       <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
       </application>
      </faces-config>
      


      and the web.xml

      <?xml version="1.0"?>
      <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
       <display-name>PumBI-UI</display-name>
       <context-param>
       <param-name>org.richfaces.SKIN</param-name>
       <param-value>#{SkinBean.skin}</param-value>
       </context-param>
      
       <context-param>
       <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
       <param-value>com.sun.facelets.FaceletViewHandler</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>
       <url-pattern>/*</url-pattern>
       </filter-mapping>
      
       <context-param>
       <param-name>org.richfaces.CONTROL_SKINNING</param-name>
       <param-value>enable</param-value>
      </context-param>
      
       <context-param>
       <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
       <param-value>.xhtml</param-value>
       </context-param>
      
       <context-param>
       <param-name>facelets.REFRESH_PERIOD</param-name>
       <param-value>2</param-value>
       </context-param>
      
       <context-param>
       <param-name>facelets.DEVELOPMENT</param-name>
       <param-value>true</param-value>
       </context-param>
      
       <context-param>
       <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
       <param-value>server</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>com.sun.faces.verifyObjects</param-name>
       <param-value>true</param-value>
       </context-param>
      
       <listener>
       <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
       </listener>
      
       <servlet>
       <servlet-name>Faces Servlet</servlet-name>
       <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
       <load-on-startup>1</load-on-startup>
       </servlet>
      
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.jsf</url-pattern>
       </servlet-mapping>
       <servlet-mapping>
       <servlet-name>Faces Servlet</servlet-name>
       <url-pattern>*.jsf</url-pattern>
       </servlet-mapping>
      
       <login-config>
       <auth-method>BASIC</auth-method>
       </login-config>
      </web-app>


      I hope you can help me and there is anywhere just a pretty dumb mistake.

        • 1. Re: tabPanels ok, but no content... why?
          Nick Belaevski Master

          Hello,

          Tabs content files should not have html/head/body elements.

          About navigation: you should use redirect when AJAX navigation is used. Also what's the reason to have a4j:support inside a4j:commandButton?

          • 2. Re: tabPanels ok, but no content... why?
            ich ich Newbie

            Hi nbelaevski!

            I deleted now every html-tags, but it doesn't work in any way.
            My Eclipse show me everything in the preview, but not my firefox, there are just the tabs. What libraries are exactly need? The three richfaces libs, the common-libs, jsf-api and jsf-impl...

            And I use the a4j:support because I've seen it in some tutorials, but don't ask me where, I can't remember...

            Could you tell me why the logout-button isn't working?
            I did it in the same way like login-button on my main-page, my glassfish tells me "logout successfull" but there is no redirecting to my goodbye.xhtml

            • 3. Re: tabPanels ok, but no content... why?
              Nick Belaevski Master

              You need Facelets jars also.

              Please put log.info() into UserBean.logout and check if the method was called.

              • 4. Re: tabPanels ok, but no content... why?
                ich ich Newbie

                I added the jars (first just in glassfish-lib, then just in WEB-INF/lib of the project), but there is still no content.
                The weird thing is, that simple text (without any tags like rich: h: or f:) is shown, but nothing else.

                And I know, why the logout button didn't worked: In faces-config there was a wrong link. The button is in reiter.xhtml and not on login.xhtml ;)
                Simple mistake but huge action...

                Here's the right code snippet:

                <navigation-rule>
                 <from-view-id>/mainpage/reiter.xhtml</from-view-id>
                 <navigation-case>
                 <from-action>#{UserBean.LogOut}</from-action>
                 <from-outcome>bye</from-outcome>
                 <to-view-id>/mainpage/goodbye.xhtml</to-view-id>
                 </navigation-case>
                 </navigation-rule>


                • 5. Re: tabPanels ok, but no content... why?
                  Nick Belaevski Master

                  There are two view handlers configured: one in web.xml and another in faces-config.xml. Please remove the ones in faces-config.xml and try.

                  • 6. Re: tabPanels ok, but no content... why?
                    ich ich Newbie

                    I tried your tip this morning, but there is still nothing. And I became desperate. It seems like a mission impossible.

                    To inform you about the last changes I did, I attach the whole code and two pics. Maybe it helps you to help me ;)

                    So let's begin

                    login.xhtml (it works):

                    <!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:ui="http://java.sun.com/jsf/facelets"
                     xmlns:h="http://java.sun.com/jsf/html"
                     xmlns:f="http://java.sun.com/jsf/core"
                     xmlns:rich="http://richfaces.org/rich"
                     xmlns:a4j="http://richfaces.org/a4j">
                    
                    <body style=" width : 354px; text-align:center">
                    <center>
                    <h:form>
                     <rich:panel style=" width : 300px; text-align:center;">
                     <f:facet name="header">
                     <h:outputText value="Log In">
                     </h:outputText>
                     </f:facet>
                     <h:panelGrid columns="2" style="text-align:center;">
                     <h:outputText value="Name : ">
                     </h:outputText>
                     <h:inputText id="user" value="#{UserBean.user}">
                     </h:inputText>
                     <h:outputText value="Passwort : ">
                     </h:outputText>
                     <h:inputSecret id="pw" value="#{UserBean.pw}">
                     </h:inputSecret>
                     </h:panelGrid>
                     <a4j:commandButton value="submit" style="text-align : center; width : 58px;">
                     <a4j:support disableDefault="true" event="onclick"
                     action="#{UserBean.CheckValidUser}"/>
                     </a4j:commandButton>
                     </rich:panel>
                     </h:form>
                    </center>
                    </body>
                    </html>


                    reiter.xhtml:
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    
                    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:h="http://java.sun.com/jsf/html"
                     xmlns:f="http://java.sun.com/jsf/core"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:rich="http://richfaces.org/rich"
                     xmlns:a4j="http://richfaces.org/a4j"
                     xmlns:x="http://java.sun.com/jsp/jstl/xml"
                     xmlns:c="http://java.sun.com/jsp/jstl/core"
                     xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                     xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
                     xmlns:sql="http://java.sun.com/jsp/jstl/sql">
                    
                    
                    
                    
                     <h:form>
                     <a4j:commandButton value="Logout" style="text-align : center; width : 53px;">
                     <a4j:support disableDefault="true" event="onclick"
                     action="#{UserBean.LogOut}"/>
                     </a4j:commandButton>
                    
                     </h:form>
                    
                     <rich:panel style="text-align:center;">
                     <f:facet name="header">
                     <h:outputText value="Pumacy Business Intelligence" >
                     </h:outputText>
                     </f:facet>
                    
                     <rich:tabPanel switchType="client">
                    
                     <rich:tab label="MyReports">
                     <a4j:include viewId="/mainpage/MyReports.xhtml" />
                     </rich:tab>
                    
                     <rich:tab label="MySettings" disabled="true">
                     <ui:include src="MySettings.xhtml"/>
                     </rich:tab>
                    
                     <rich:tab label="Administration">
                     <f:facet name="header">
                     <ui:include src="Administration.xhtml"/>
                     </f:facet>
                     </rich:tab>
                    
                     </rich:tabPanel>
                    
                    </rich:panel>
                    
                    
                    <h:form style="text-align:center;">
                     copyright by Pumacy Technologies AG, All rights reserved.
                    </h:form>
                    
                    </ui:composition>
                    


                    MyReports:
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:h="http://java.sun.com/jsf/html"
                     xmlns:a4j="http://richfaces.org/a4j"
                     xmlns:rich="http://richfaces.org/rich"
                     xmlns:f="http://java.sun.com/jsf/core"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:x="http://java.sun.com/jsp/jstl/xml"
                     xmlns:c="http://java.sun.com/jsp/jstl/core"
                     xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                     xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
                     xmlns:sql="http://java.sun.com/jsp/jstl/sql">
                    
                    
                    
                     <rich:panel>
                    
                     <rich:dataTable>
                     <rich:column style="weight:80px">
                     <h:outputText value="reporting status:"/>
                     <a4j:status id="commonstatus" startText="In progress..." stopText="Complete"/>
                     <br />
                     <rich:spacer height="5" />
                     <h:form>
                     <a4j:commandButton value="Ok" style="text-align : center; width : 100px;" eventsQueue="foo2">
                     <a4j:support disableDefault="true" event="onclick"
                     action="reRender"/>
                     </a4j:commandButton>
                     <br/>
                     </h:form>
                    
                     </rich:column>
                     <rich:column>
                     <rich:comboBox selectFirstOnUpdate="false"
                     defaultLabel="select your report">
                     <f:selectItems value="#{ReportBean.report}" />
                     </rich:comboBox>
                    
                     </rich:column>
                     </rich:dataTable>
                    
                     <rich:dataTable style=" width : 100%;">
                     <rich:column style="width:20%;">
                    
                     <rich:comboBox selectFirstOnUpdate="false"
                     defaultLabel="select your font size">
                     <f:selectItems value=""/><!-- TODO implement font sizes -->
                     </rich:comboBox>
                     </rich:column>
                     <rich:column style="width:80%;">
                    
                     </rich:column>
                     </rich:dataTable>
                    
                     <rich:dataTable>
                     <rich:column style="width:20%;">
                     <h:selectOneListbox id="select" value="#{skinBean.skin}" onchange="submit()">
                     <f:selectItem itemLabel="plain" itemValue="plain" />
                     <f:selectItem itemLabel="emeraldTown" itemValue="emeraldTown" />
                     <f:selectItem itemLabel="blueSky" itemValue="blueSky" />
                     <f:selectItem itemLabel="wine" itemValue="wine" />
                     <f:selectItem itemLabel="japanCherry" itemValue="japanCherry" />
                     <f:selectItem itemLabel="ruby" itemValue="ruby" />
                     <f:selectItem itemLabel="classic" itemValue="classic" />
                     <f:selectItem itemLabel="laguna" itemValue="laguna" />
                     <f:selectItem itemLabel="deepMarine" itemValue="deepMarine" />
                     </h:selectOneListbox>
                    
                    
                     </rich:column>
                     <rich:column style="width:80%;">
                     <h:outputText></h:outputText>
                     </rich:column>
                     </rich:dataTable>
                    
                    
                     </rich:panel>
                    
                    
                    
                    </ui:composition>


                    Administration:
                    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                    <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                     xmlns:h="http://java.sun.com/jsf/html"
                     xmlns:f="http://java.sun.com/jsf/core"
                     xmlns:ui="http://java.sun.com/jsf/facelets"
                     xmlns:rich="http://richfaces.org/rich"
                     xmlns:a4j="http://richfaces.org/a4j"
                     xmlns:x="http://java.sun.com/jsp/jstl/xml"
                     xmlns:c="http://java.sun.com/jsp/jstl/core"
                     xmlns:fn="http://java.sun.com/jsp/jstl/functions"
                     xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
                     xmlns:sql="http://java.sun.com/jsp/jstl/sql">
                    
                    1
                    
                    <rich:panel>3
                    <h:outputText>
                    123546
                    </h:outputText>
                     </rich:panel>21
                    
                    
                    
                    </ui:composition>


                    web.xml:
                    <?xml version="1.0"?>
                    <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
                     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
                     <display-name>PumBI-UI</display-name>
                     <context-param>
                     <param-name>org.richfaces.SKIN</param-name>
                     <param-value>#{SkinBean.skin}</param-value>
                     </context-param>
                    
                     <context-param>
                     <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                     <param-value>com.sun.facelets.FaceletViewHandler</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>
                     <url-pattern>/*</url-pattern>
                     </filter-mapping>
                    
                     <context-param>
                     <param-name>org.richfaces.CONTROL_SKINNING</param-name>
                     <param-value>enable</param-value>
                    </context-param>
                    
                     <context-param>
                     <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                     <param-value>.xhtml</param-value>
                     </context-param>
                    
                     <context-param>
                     <param-name>facelets.REFRESH_PERIOD</param-name>
                     <param-value>2</param-value>
                     </context-param>
                    
                     <context-param>
                     <param-name>facelets.DEVELOPMENT</param-name>
                     <param-value>true</param-value>
                     </context-param>
                    
                     <context-param>
                     <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                     <param-value>server</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>com.sun.faces.verifyObjects</param-name>
                     <param-value>true</param-value>
                     </context-param>
                    
                     <listener>
                     <listener-class>com.sun.faces.config.ConfigureListener</listener-class>
                     </listener>
                    
                     <servlet>
                     <servlet-name>Faces Servlet</servlet-name>
                     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
                     <load-on-startup>1</load-on-startup>
                     </servlet>
                    
                     <servlet-mapping>
                     <servlet-name>Faces Servlet</servlet-name>
                     <url-pattern>*.jsf</url-pattern>
                     </servlet-mapping>
                     <servlet-mapping>
                     <servlet-name>Faces Servlet</servlet-name>
                     <url-pattern>*.jsf</url-pattern>
                     </servlet-mapping>
                    
                     <login-config>
                     <auth-method>BASIC</auth-method>
                     </login-config>
                    </web-app>


                    faces-config.xml:
                    <?xml version="1.0" encoding="UTF-8"?>
                    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee"
                     xmlns:xi="http://www.w3.org/2001/XInclude"
                     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-facesconfig_1_2.xsd">
                     <managed-bean>
                     <managed-bean-name>UserBean</managed-bean-name>
                     <managed-bean-class>beans.UserBean</managed-bean-class>
                     <managed-bean-scope>request</managed-bean-scope>
                     </managed-bean>
                     <managed-bean>
                     <managed-bean-name>SkinBean</managed-bean-name>
                     <managed-bean-class>beans.SkinBean</managed-bean-class>
                     <managed-bean-scope>session</managed-bean-scope>
                     <managed-property>
                     <property-name>skin</property-name>
                     <value>emeraldTown</value>
                     </managed-property>
                     </managed-bean>
                    
                    <navigation-rule>
                     <from-view-id>/mainpage/goodbye.xhtml</from-view-id>
                     <navigation-case>
                     <from-action>#{UserBean.BackToLogIn}</from-action>
                     <from-outcome>back</from-outcome>
                     <to-view-id>/login.xhtml</to-view-id>
                     </navigation-case>
                     </navigation-rule>
                    
                     <navigation-rule>
                     <from-view-id>/mainpage/reiter.xhtml</from-view-id>
                     <navigation-case>
                     <from-action>#{UserBean.LogOut}</from-action>
                     <from-outcome>bye</from-outcome>
                     <to-view-id>/mainpage/goodbye.xhtml</to-view-id>
                     </navigation-case>
                     </navigation-rule>
                    
                     <navigation-rule>
                     <from-view-id>/login.xhtml</from-view-id>
                     <navigation-case>
                     <from-action>#{UserBean.CheckValidUser}</from-action>
                     <from-outcome>success</from-outcome>
                     <to-view-id>/mainpage/reiter.xhtml</to-view-id>
                     </navigation-case>
                     <navigation-case>
                     <from-action>#{UserBean.CheckValidUser}</from-action>
                     <from-outcome>fail</from-outcome>
                     <to-view-id>/mainpage/loginfailed.xhtml</to-view-id>
                     </navigation-case>
                     </navigation-rule>
                    
                     <navigation-rule>
                     <from-view-id>/mainpage/loginfailed.xhtml</from-view-id>
                     <navigation-case>
                     <from-action>#{UserBean.CheckValidUser}</from-action>
                     <from-outcome>success</from-outcome>
                     <to-view-id>/mainpage/reiter.xhtml</to-view-id>
                     </navigation-case>
                     <navigation-case>
                     <from-action>#{UserBean.CheckValidUser}</from-action>
                     <from-outcome>fail</from-outcome>
                     <to-view-id>/mainpage/loginfailed.xhtml</to-view-id>
                     </navigation-case>
                     </navigation-rule>
                    
                    </faces-config>
                    


                    Now the two pics:

                    [img]http://www.fileden.com/files/2008/4/3/1850595/lib.JPG[/img]

                    [img]http://www.fileden.com/files/2008/4/3/1850595/project%20order.JPG[/img]

                    Thank you for your patience nbelaevski!

                    • 7. Re: tabPanels ok, but no content... why?
                      ich ich Newbie

                      I made a screenshot of eclipse preview.

                      So it should be a missing jar or my brower...

                      [img]http://www.fileden.com/files/2008/4/3/1850595/eclipse%20preview.JPG[/img]

                      • 8. Re: tabPanels ok, but no content... why?
                        Nick Belaevski Master

                         

                        <rich:tab label="Administration">
                         <f:facet name="header">
                         <ui:include src="Administration.xhtml"/>
                         </f:facet>
                         </rich:tab>


                        Are you sure ui:include should be inside facet here? Other parts of code looks ok.

                        • 9. Re: tabPanels ok, but no content... why?
                          ich ich Newbie

                          It was just a try, I deleted it but nothing happened. I tried it also with rich:panel, h:form, f:view but there is still the same - nothing.
                          Just the numbers outside the dataTables are shown, everything inside is invisible. (I inserted numbers for every line to look what exactly is shown and what part not.)

                          Did you look at the screenshots? Is there anything wrong wit hthe jars?
                          The code should be right you said...

                          • 10. Re: tabPanels ok, but no content... why?
                            Nick Belaevski Master

                            Looking at .jar files I can see duplicate files: duplicate facelets .jar (probably of different versions), MyFaces and Sun RI together. You can download richfaces-demo disctribution and extract .jar files from there.

                            • 11. Re: tabPanels ok, but no content... why?
                              ich ich Newbie

                              I'm sorry, but there is still no change.

                              I tried it in IE but it's not better there.
                              The login isn't working (no rendering) and the logout renders false.

                              The more I think about the more it seems to be impossible.
                              Or is that a bug in RichFaces?

                              Because ALL hardcoded numbers and signs are shown, even those which are inside the dataTable-tags, but all in one row (I changed from ui:include to rich:insert).

                              • 12. Re: tabPanels ok, but no content... why?
                                Nick Belaevski Master

                                Tabs work fine for me.

                                Ok, I suggest that you download richfaces-demo, import it into Eclipse, add pages code and check.