5 Replies Latest reply on Apr 18, 2007 8:09 AM by Ilya Shaikovsky

    TabPanel issue

    loren yang Newbie

      I have some issue when using TabPanel.
      The jsp code is:
      <%@ page language="java" pageEncoding="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://myfaces.apache.org/extensions" prefix="x"%>
      <%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>

      <%
      String path = request.getContextPath();
      String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path
      + "/";
      %>

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">


      <f:view>
      <h:form>
      Here is an example of tab panel switched completely on client.
      <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>
      </h:form>
      </f:view>


      but the page shows like this:

      Here is an example of tab panel switched completely on client. Here is tab #1 Here is tab #2 Here is tab #3
      First Second Third

      Could any help? And where can I download the richfaces demo use jsp not xhtml? TIA.