You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Volker Weber (JIRA)" <de...@myfaces.apache.org> on 2006/02/20 20:27:47 UTC
[jira] Commented: (MYFACES-1146) Impossible to hide footer in
dataTable
[ http://issues.apache.org/jira/browse/MYFACES-1146?page=comments#action_12367069 ]
Volker Weber commented on MYFACES-1146:
---------------------------------------
First: please ask such questions on users mailing list, this is not a bug.
A facet can contain only one child, so your code is not legal.
try this:
<f:facet name="footer">
<h:panelGroup rendered="#{bean.renderFooter}">
<h:outputText value="#{analyze.colFooter.title}" escape="false"/>
<t:htmlTag value="b">
<h:outputText value="#{analyze.colFooter.total}"/>
</t:htmlTag>
</h:panelGroup>
</f:facet>
and use the rendered attribute of panelgroup for hiding/showing
> Impossible to hide footer in dataTable
> --------------------------------------
>
> Key: MYFACES-1146
> URL: http://issues.apache.org/jira/browse/MYFACES-1146
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: 1.1.1
> Reporter: Guy Bashan
> Priority: Trivial
>
> It is impossible to hide the footer in a dataTable. There are cases in which the same table should sometimes show the footer and in other cases do not show it. For example:
> <t:dataTable id="results" value="#{analyze.rows}" var="row"
> width="100%"
> cellpadding="0"
> cellspacing="0"
> border="0"
> styleClass="reportTable"
> headerClass="reportTitle"
> footerClass="reportTableTotal"
> rowClasses="reportRowLight,reportRowDark"
> rowOnMouseOver="selectedRow = this.className; this.className='reportRowOver'"
> rowOnMouseOut="this.className = selectedRow">
> <t:columns value="#{analyze.columnHeaders}" var="column"
> styleClass="#{analyze.styleClass}" style="text-align:#{column.alignment}">
> <f:facet name="header">
> <t:htmlTag value="nobr"><h:outputText value="#{column.title}" escape="false"/></t:htmlTag>
> </f:facet>
> <h:outputText value="#{analyze.columnValue}" escape="false" />
>
> <f:facet name="footer">
> <h:outputText value="#{analyze.colFooter.title}" escape="false"/>
> <t:htmlTag value="b">
> <h:outputText value="#{analyze.colFooter.total}"/>
> </t:htmlTag>
> </f:facet>
> </t:columns>
> </t:dataTable>
> I tried hiding the footer with: f:subview wrapping the footer and as a footer child, but both seems to be not working.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira