<TABLE>playlistFactory.currentUnitMPOSPlayList should be in <TABLE>
<THEAD>
<TR> ...header information...
</THEAD>
<TFOOT>
<TR> ...footer information...
</TFOOT>
<TBODY>
<TR> ...first row of block one data...
<TR> ...second row of block one data...
</TBODY>
<TBODY>
<TR> ...first row of block two data...
<TR> ...second row of block two data...
<TR> ...third row of block two data...
</TBODY>
</TABLE>
playlistItem.length is in <TBODY>
playlistFactory.totalLength is in <TFOOT>
Anyway you have to call playlistFactory.currentUnitMPOSPlayList first, it is table level!!!!
How do you explain property "renderedIfEmpty", you still call playlistFactory.totalLength first then check if it is empty or not!!!!
On 10/11/05, Mathias Broekelmann (JIRA) <[email protected]> wrote:
[ http://issues.apache.org/jira/browse/MYFACES-694?page=all ]
Mathias Broekelmann closed MYFACES-694:
---------------------------------------
Resolution: Invalid
HTML 4.01 spec says:
TFOOT must appear before TBODY within a TABLE definition so that user agents can render the foot before receiving all of the (potentially numerous) rows of data.
Which is the reason why myfaces renders the footer before the body.
> t:dataTable bind calculate order error
> ---------------------------------------
>
> Key: MYFACES-694
> URL: http://issues.apache.org/jira/browse/MYFACES-694
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: Nightly
> Environment: Tomcat 5.0.28, nightly build 10/10/2005
> Reporter: Zhong Li
> Priority: Critical
>
> I have a list used in a datatable
> <t:dataTable value="#{ playlistFactory.currentUnitMPOSPlayList}" var="playlistItem">
> ....
> <h:column>
> <f:facet name="header">
> <h:outputText value="#{messages['dealer_admin_length']}"/>
> </f:facet>
> <h:outputText value="#{playlistItem.length}"/>
> <f:facet name="footer">
> <h:outputText value="#{playlistFactory.totalLength}"/>
> </f:facet>
> </h:column>
> ....
> </t:dataTable>
> playlistFactory.totalLength called before playlistFactory.currentUnitMPOSPlayList called. So I got totalLength always 0, playlistFactory.totalLengtht should be called after playlistFactory.currentUnitMPOSPlayList
--
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
--
Zhong Li
WebJabber.Net
