10 Replies Latest reply on Mar 24, 2007 2:14 PM by Konstantin Kauz

    tabPanel

    Konstantin Kauz Novice

      If i do add the tabPanel to my view, the content will not be displayed, what i do wrong?

      I have downloaded the 3.0.1 nightly build libs and use seam 1.2.

      <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>


        • 1. Re: tabPanel
          Sergey Smirnov Master

          Only JSF 1.2 and/or using facelets allow to have a pure html content inside the JSF components. So, if you do not use JSF 1.2 and/or using facelets, you have to use jsf components inside or surround the text with f:verbatim

          • 2. Re: tabPanel
            Konstantin Kauz Novice

            Thank you!

            I have the same with follow code, no content.

            <rich:tabPanel switchType="client">
             <rich:tab label="First">
             <h:outputText value="KONTAKT1"/>
             </rich:tab>
             <rich:tab label="Second">
             <h:outputText value="KONTAKT2"/>
             </rich:tab>
             <rich:tab label="Third">
             <h:outputText value="KONTAKT3"/>
             </rich:tab>
             </rich:tabPanel>


            • 3. Re: tabPanel
              Sergey Smirnov Master

              Do not see the reason by this snippet. What is the whole page? What are the jar files you added and what is the filter mapping configuration?

              • 4. Re: tabPanel
                Konstantin Kauz Novice

                web.xml

                <?xml version="1.0" ?>
                <web-app 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"
                 version="2.4">
                
                 <!-- Ajax4jsf (must come first!) -->
                
                 <filter>
                 <display-name>Ajax4jsf Filter</display-name>
                 <filter-name>ajax4jsf</filter-name>
                 <filter-class>org.ajax4jsf.Filter</filter-class>
                 </filter>
                
                 <filter-mapping>
                 <filter-name>ajax4jsf</filter-name>
                 <url-pattern>*.seam</url-pattern>
                 </filter-mapping>
                
                 <context-param>
                 <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
                 <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>org.ajax4jsf.SKIN</param-name>
                 <param-value>blueSky</param-value>
                 </context-param>
                
                 <!-- Seam -->
                
                 <listener>
                 <listener-class>org.jboss.seam.servlet.SeamListener</listener-class>
                 </listener>
                
                 <filter>
                 <filter-name>Seam Filter</filter-name>
                 <filter-class>org.jboss.seam.web.SeamFilter</filter-class>
                 </filter>
                
                 <filter-mapping>
                 <filter-name>Seam Filter</filter-name>
                 <url-pattern>/*</url-pattern>
                 </filter-mapping>
                
                 <servlet>
                 <servlet-name>Seam Resource Servlet</servlet-name>
                 <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
                 </servlet>
                
                 <servlet-mapping>
                 <servlet-name>Seam Resource Servlet</servlet-name>
                 <url-pattern>/seam/resource/*</url-pattern>
                 </servlet-mapping>
                
                 <!-- MyFaces -->
                
                 <listener>
                 <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
                 </listener>
                
                 <!-- Facelets development mode (disable in production) -->
                
                 <context-param>
                 <param-name>facelets.DEVELOPMENT</param-name>
                 <param-value>true</param-value>
                 </context-param>
                
                 <!-- JSF -->
                
                 <context-param>
                 <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
                 <param-value>client</param-value>
                 </context-param>
                
                 <context-param>
                 <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
                 <param-value>.xhtml</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-mapping>
                 <servlet-name>Faces Servlet</servlet-name>
                 <url-pattern>*.seam</url-pattern>
                 </servlet-mapping>
                
                 <security-constraint>
                 <display-name>Restrict raw XHTML Documents</display-name>
                 <web-resource-collection>
                 <web-resource-name>XHTML</web-resource-name>
                 <url-pattern>*.xhtml</url-pattern>
                 </web-resource-collection>
                 <auth-constraint>
                 <role-name>NONE</role-name>
                 </auth-constraint>
                 </security-constraint>
                
                </web-app>


                • 5. Re: tabPanel
                  Konstantin Kauz Novice

                  Page:

                  <ui:define name="main">
                   <s:link value="zurueck" view="/home"/>
                   <rich:tabPanel switchType="client">
                   <rich:tab label="First">
                   <h:outputText value="KONTAKT1"/>
                   </rich:tab>
                   <rich:tab label="Second">
                   <h:outputText value="KONTAKT2"/>
                   </rich:tab>
                   <rich:tab label="Third">
                   <h:outputText value="KONTAKT3"/>
                   </rich:tab>
                  </ui:define>


                  [/img]

                  • 6. Re: tabPanel
                    Konstantin Kauz Novice

                    <ui:define name="main">
                    <s:link value="zurueck" view="/home"/>
                    <rich:tabPanel switchType="client">
                    <rich:tab label="First">
                    <h:outputText value="KONTAKT1"/>
                    </rich:tab>
                    <rich:tab label="Second">
                    <h:outputText value="KONTAKT2"/>
                    </rich:tab>
                    <rich:tab label="Third">
                    <h:outputText value="KONTAKT3"/>
                    </rich:tab>
                    </rich:tabPanel >
                    </rich:tabPanel>

                    • 7. Re: tabPanel
                      Konstantin Kauz Novice

                      Libs:

                      richfaces-3.0.1-SNAPSHOT.jar

                      ajax4jsf-1.1.1-SNAPSHOT.jar

                      oscache-2.3.2.jar

                      + seam 1.2 libraries

                      • 8. Re: tabPanel
                        Sergey Smirnov Master

                        so, you have a facelets that means you can you the plain text and your original snippet should work.

                        • 9. Re: tabPanel
                          Konstantin Kauz Novice

                          sorry, i don't understand(ja ne ponel:) )

                          • 10. Re: tabPanel
                            Konstantin Kauz Novice

                            This stuff doesn't work, the content will be not rendered. What i can do?