2 Replies Latest reply on Jan 13, 2008 9:33 PM by Sergey Smirnov

    text in tabpanel shows up above tabpanel

    David M. Karr Newbie

      JSF 1.1, RichFaces 3.1.3.

      I have a simple tabpanel with a panelgrid in each tab, and each tab has an outputText and inputText. When I render it, each of the outputText components show up above the tabpanel, instead of next to the inputText in each tab. Am I doing something obviously wrong?

      Here is my current page:

      <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
      <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
      <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
      <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
      <html>
      <head>
      <title>TabPanel Experiment</title>
      </head>
      <body>
      <f:view>
       <a4j:form>
       <rich:tabPanel id="tabpanel" switchType="client">
       <rich:tab name="obligor" label="Obligor">
       <h:panelGrid columns="2">
       <h:outputText>Field1:</h:outputText>
       <h:inputText id="field1"/>
       </h:panelGrid>
       </rich:tab>
       <rich:tab name="property" label="Property">
       <h:panelGrid columns="2">
       <h:outputText>Field2:</h:outputText>
       <h:inputText id="field2"/>
       </h:panelGrid>
       </rich:tab>
       <rich:tab name="ratings" label="Ratings">
       <h:panelGrid columns="2">
       <h:outputText>Field3:</h:outputText>
       <h:inputText id="field3"/>
       </h:panelGrid>
       </rich:tab>
       </rich:tabPanel>
       </a4j:form>
      </f:view>
      </body>
      </html>