myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volker Weber <users.myfa...@weber-oldenburg.de>
Subject Re: [jira] Closed: (MYFACES-694) t:dataTable bind calculate order error
Date Tue, 11 Oct 2005 19:55:13 GMT
No, if the table has rendered=false the columns are not evaluated.

but why should the renderer fetch the values of the list before they are
needed? and as mathias wrote : the body is rendered at last.

Zhong Li wrote:
> also I totally confuse here, column tag is embed in dataTable tag, how
> could it calculate first? if I have rendered property in dataTable, you
> still calculate data in column? It is absolutely wrong.
> 
> I know saveState is totally misconcept, any other tags? I am very
> confuse about myfaces approach as I mentions month ago. Please follow
> the standard, it  is key.
> 
> On 10/11/05, *Zhong Li* <webjabber@gmail.com
> <mailto:webjabber@gmail.com>> wrote:
> 
>     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* < users.myfaces@weber-oldenburg.de
>     <mailto:users.myfaces@weber-oldenburg.de>> 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)*
>> <myfaces-dev@incubator.apache.org
>         <mailto:myfaces-dev@incubator.apache.org>
>> <mailto: myfaces-dev@incubator.apache.org
>         <mailto:myfaces-dev@incubator.apache.org>>> wrote:
>>
>>          [
>         http://issues.apache.org/jira/browse/MYFACES-694?page=all
>         <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
>         <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 
> 
> 
> 
> 
> -- 
> 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.

Mime
View raw message