//
// Sanity checks
//
if( getId() == null )
{
throw new JspTagException("Tab Tag without \"id\" attribute");
}
if( m_tabTitle == null )
{
throw new JspTagException("Tab Tag without \"tabTitle\" attribute");
}
if( parent == null )
{
throw new JspTagException("Tab Tag without parent \"TabbedSection\" Tag");
}
if( !parent.isStateGenerateTabBody() ) return SKIP_BODY;
StringBuffer sb = new StringBuffer(32);
sb.append( "<div id=\""+ getId() + "\"" );
if( !parent.validateDefaultTab( getId()) )
{
sb.append( " class=\"hidetab\"" );
}
sb.append( " >\n" );
try
{
pageContext.getOut().write( sb.toString() );
}
catch( java.io.IOException e )
{
throw new JspTagException( "IO Error: " + e.getMessage() );
}
return EVAL_BODY_INCLUDE;
}