Thanks. I can't prepare it first. it is dynamic list, always need calculate when use refresh page. I believe everything in dataTable should be called after list created, it is normal sense.



On 10/11/05, Volker Weber <[EMAIL PROTECTED]> wrote:
Hi,

in my oppinion a bean getter shouldn't create a value, just fetch it.

if you use playlistFactory.currentUnitMPOSPlayList to create and return
the List, you should ensure that all other related getter also create
the list if the list isn't initialized before.

Generally there is no order defined to call any getter in jsf context.

Bye

Zhong Li wrote:
> I totally disagreed.
>
>
> <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>
>
> playlistFactory.currentUnitMPOSPlayList should be in <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]
> <mailto:[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

--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.



--
Zhong Li

WebJabber.Net

Reply via email to