0 Replies Latest reply on Jul 11, 2008 3:42 AM by surya yugandhar

    could not include jsp for a tab  when using rich:tabPanel

    surya yugandhar Newbie

      Hi All,

      I am trying to add jsp page to <rich:tab> using <jsp:include page="somepage.jsf"/> to include somepage.jsp.

      Page1:

      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@taglib prefix="rich" uri="http://richfaces.org/rich"%>



      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      JSP Page


      <f:view>
      <h:form>
      <rich:tabPanel switchType="ajax" height="100%" selectedTab="SecondTab" width="100%">
      <rich:tab name="FirstTab" label="First Tab" labelWidth="200px" >

      <h:outputText id="displatTxt" value="Reset Value:"></h:outputText>
      <h:inputText id="mytxt" value="#{bean.text}">

      </h:inputText>
      <h:outputText id="outtxt" value="#{bean.text}"></h:outputText>

      </rich:tab>
      <rich:tab name="SecondTab" label="Second Tab" labelWidth="200px" >
      <jsp:include page="includePage.jsp"/>
      </rich:tab>
      <rich:tab name="ThirdTab" label="Third Tab" labelWidth="200px" >

      </rich:tab>
      </rich:tabPanel>
      </h:form>
      </f:view>


      includePage.jsp:

      <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
      <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@taglib prefix="rich" uri="http://richfaces.org/rich"%>


      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      JSP Page



      <f:view>
      <h:form>
      <h2>Hello World!</h2>
      </h:form>
      </f:view>





      I am getting javax.servlet.ServletException: java.lang.IllegalStateException when i run this.