4 Replies Latest reply on Aug 19, 2007 11:03 PM by leon qian

    rich:tabPanel does not work properly without Facelets

    terry zhou Newbie

      I tried to use rich:tabPanel component, but found that it does not work without Facelets. What's wrong with it? Or I made a mistake.

      Here is my tabPanel.jsp code:

      <%@ page language="Java" contentType="text/html;charset=utf-8"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
      <f:view>
      <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
      <title>test</title>
      </head>
      
      <body>
       <rich:tabPanel switchType="ajax">
       <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>
      </body>
      </html>
      </f:view>
      


      But when I tried to use this component with Facelets, it works fine. What's wrong with it? thx