Anyhow. you need reopen and fix the bug.
On 10/11/05, Volker Weber <[EMAIL PROTECTED]
> wrote:
Did this "#{playlistFactory.currentUnitMPOSPlayList.size<10}" work ?
There is no getSize() in java.util.List.
But if: yes in this case playlistFactory.currentUnitMPOSPlayList should
called before any of the column values.
And i'm shure it is.
Zhong Li wrote:
> example if renderend =
> #{playlistFactory.currentUnitMPOSPlayList.size<10}. How do you user
> can't have those kind of requirements, myfaces is tools, I can do it as
> I like.
>
> On 10/11/05, *Zhong Li* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> I know. But this one is live data, concurrent users use it. I
> prepare all data used in method
> playlistFactory.currentUnitMPOSPlayList, it is in Factory, called
> static method. Anyway it is wrong you called method in column before
> dataTable list. I am 100% sure, it is wrong.
>
>
>
>
>
> On 10/11/05, *Volker Weber* <[EMAIL PROTECTED]
> <mailto: [EMAIL PROTECTED]>> wrote:
>
> Hi,
>
> i think you have to prepare the list, maybe, if you can't do
> this in the
> application phase, you can use a expired date to decide
> recreating of
> the list?
>
> I don't know how this i done in towmahawk, but in tobago the
> getter of
> the UIcomponents valuebindings are somtimes called multiple
> times per
> render circle.
>
>
> Zhong Li 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* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>
>> <mailto: [EMAIL PROTECTED]
> <mailto:[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] >
>> <mailto: [email protected]
> <mailto:[email protected] >>
>> > <mailto:[email protected]
> <mailto:[email protected] >
>> <mailto: [email protected]
> <mailto:[email protected] >>>> 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
>> >
>> >
>> >
>> >
>> > --
>> > 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
>
> --
> 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.
--
Zhong Li
WebJabber.Net
