You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Eric Hsieh <ec...@yahoo.com> on 2005/10/18 23:28:02 UTC

Apply style to a panelTab

When <t:panelTab> gets rendered a <div> and <span> get
created. The styleClass attached to <t:panelTab> gets
put onto the <span> tag.  Is there a way to apply a
style class to the <div> tag?  Some styles are only
applicable to block elements like "overflow".

Right now, <t:panelTab> renders into something like
this:

from:

<x:panelTab id="actlTab" label="foo"                  
styleClass="myfacesPanelTab" style="height:500px">

to:

<td colspan="4" class="myFaces_panelTabbedPane_pane
myfacesTabContent1">
<div
id="body:workspace:actualTabContent:actlTab"><span
id="body:workspace:actualTabContent:actlTab"
style="height:500px" class="myfacesPanelTab">


a <div> container gets created with the same id as the
inner span, but the style class only gets put onto the
inner span and not the outer div.

Also, is there a way to set the width of the
panelTabbedPane as a percentage and not an absolute
pixel width?


	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com