ICEfaces EE Composite Components
Tag tabView


The Tab View Composite Component

Features

How To Use

  1. Add the <ice-cc:tabView/> tag to your page.
  2. Set the id attribute
  3. Nest <ice-cc:tab/> tags for each tab you would like
  4. Add the appropriate styleClass to the h:body tag: styleClass="ice-skin-rime" or styleClass="ice-skin-sam"
  5. Add the CSS file for the chosen theme to the bottom of the page (after closing h:body tag): <h:outputStylesheet library="org.icefaces.component.skins" name="rime.css" />
  6. If you would like to nest forms within the tab content, set outsideForm='true' on the tag

Example:
<ice-cc:tabView id="myTabs" orientation="#{tabViewExampleBean.orientation}" outsideForm="false"> <ice-cc:tab tabId="tab1" label="Tab 1"> <div style="background: #FFF;padding: 8px;"> <h2>This is tab 1 content</h2> <ice:graphicImage value="/images/icesailor.jpg"/> </div> </ice-cc:tab> <ice-cc:tab tabId="tab2" label="Tab 2"> <div style="background: #FFF;padding: 8px;"> <h2>This is tab 2 content</h2> <ice:graphicImage value="/images/icecar.jpg"/> </div> </ice-cc:tab> <ice-cc:tab tabId="tab3" label="Tab 3"> <div style="background: #FFF;padding: 8px;"> <h2>This is tab 3 content</h2> <ice:graphicImage value="/images/icebreaker.jpg"/> </div> </ice-cc:tab> </ice-cc:tabView>


Tag Information
Tag Classjavax.faces.webapp.FacetTag
TagExtraInfo ClassNone
Body Contenttagdependent
Display NameTab View

Attributes
NameRequiredRequest-timeTypeDescription
idtruefalsejava.lang.StringA unique id for the component.
orientationfalsefalsejava.lang.String'top', 'bottom', 'left', or 'right' (default 'top')
outsideFormfalsefalsejava.lang.BooleanIf the component is outside of a form (default true)
selectedfalsefalsejava.lang.IntegerIndex of the selected tab (default 0)
stylefalsefalsejava.lang.StringCSS style(s) to be applied when this component is rendered

Variables
No Variables Defined.


Output Generated by Tag Library Documentation Generator. Java, JSP, and JavaServer Pages are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries. Copyright 2002-4 Sun Microsystems, Inc. 4150 Network Circle Santa Clara, CA 95054, U.S.A. All Rights Reserved.