I just checked the code and it appears to only be in the 1.2 branch.  It's more 
work, but you can always override the Renderer in JSF.

In your faces-config,

<renderer>
<component-family>javax.faces.Data</component-family>
<renderer-type>org.apache.myfaces.Table</renderer-type>
<renderer-class>com.foo.HtmlTableRenderer</renderer-class>
</renderer>

... where com.foo.HtmlTableRenderer extends 
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer

In com.foo.HtmlTableRenderer, override the part that prints <table> and make it 
print <table><caption>blag</caption> .

This of course means you may have to do some refactoring when you want to 
upgrade to a newer version of MyFaces ( where 
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer might change ) or move 
to a different JSF implmentation altogether ( a completely different Renderer 
to extend).

Dennis Byrne

>-----Original Message-----
>From: Brad Smith [mailto:[EMAIL PROTECTED]
>Sent: Saturday, September 2, 2006 07:19 PM
>To: 'MyFaces Discussion'
>Subject: Re: Table Captions
>
>Thanks for the information Dennis. When I use the code Dennis suggested
>below, no caption appears. When I use:
>
><f:verbatim><caption>Does this work?</caption></f:verbatim>
>
>I get the same result, ie no caption. In both instances, any errors (if
>any) are silently disposed of.
>
>Brad
>
>
>On Sat, 2006-09-02 at 22:23 +0000, Dennis Byrne wrote:
>
>> What happens if you do this?
>>
>> <f:facet name="caption">
>>   <h:outputText value="Does this work?" />
>> </f:facet>
>>
>> This is a requirement for JSF 1.2 .
>
>


Reply via email to