You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Benedikt Schlegel <be...@betasystems.com> on 2010/08/26 17:29:33 UTC

How to identify last Repeater/DataView item

Hy folks,

is there a way to determine if the current Item in onPopulate() is the 
last one processed? I need to add an additional attribute to the last 
DataView row.

Thanks for your help,
Benedikt

Save Paper: Think Before You Print Beta Systems Email Disclaimer and Email 
Impressum 
Beta Systems email messages are confidential. They may also be privileged 
or otherwise protected by work product immunity orother legal rules. If 
you have received an email by mistake please let us know by reply and then 
delete it from your system; you should not copy it or disclose its 
contents to anyone. All messages sent to and from Beta Systems may be 
monitored to ensure compliance with internal policies and to protect our 
business. Emails are not secure and cannot be guaranteed to be error free 
as they can be intercepted, amended, lost or destroyed, or contain 
viruses. Anyone who communicates with us by email is taken to accept these 
risks.Beta Systems Email-Sicherheitsinformation 
Die Inhalte der Emails von Beta Systems sind vertraulich. Sie unterliegen 
darüber hinaus ggf. dem Schutz von Arbeitsergebnissen oder sind 
anderweitig rechtlich geschützt. Falls Sie diese Email irrtümlich erhalten 
haben, benachrichtigen Sie uns bitte unverzüglich und löschen Sie 
anschließend die Email. Es ist untersagt, diese Email oder deren Inhalt zu 
kopieren oder Dritten zugänglich zu machen. Wir behalten uns das Recht 
vor, jegliche an bzw. von Beta Systems gesendeten Nachrichten zu 
überprüfen, um die Einhaltung unserer internen Richtlinien sowie die 
Wahrung unserer Geschäftsinteressen zu gewährleisten. Da Emails nicht 
sicher sind, kann eine fehlerfreie Übermittlung nicht gewährleistet 
werden. Emails können abgefangen und modifiziert oder zerstört werden, 
verloren gehen oder Viren enthalten. Die Kommunikation mit Beta Systems 
per Email geschieht auf eigene Gefahr. 
Mandatory Information for business email according to German trade laws / 
Pflichtangaben für geschäftliche Emails gemäß Handelsgesetzbuch und 
Aktiengesetz: 
Beta Systems Software AG
Alt-Moabit 90d
10559 Berlin
Germany
Phone: +49-(0)30-726 118-0
Fax: +49-(0)30-726 118-800
info@betasystems.com

Chairman of the supervisory board / Vorsitzender des Aufsichtsrats: Dr. 
Günter Lewald
Management board / Vorstand: Jürgen Herbott (CEO/Vorstandsvorsitzender), 
Gernot Sagl (CFO)
Legal form / Rechtsform: Aktiengesellschaft
Registered office / Sitz: Berlin
Commercial register / Handelsregister: Berlin Charlottenburg, HRB 38 874
Ust-ID-Nr.: DE 136572034, St.-Nr.: DE 29/1/3927
Bank / Bankverbindung: Deutsche Bank Berlin, BLZ 10070000
Account No / Konto-Nr.: 0680488
BIC DEUTDEBB, IBAN: DE94 1007 0000 0068 0488 00

Re: How to identify last Repeater/DataView item

Posted by Igor Vaynberg <ig...@gmail.com>.
item has an index property, so you can check if that is -1 of getitemsperpage()

-igor

2010/8/26 Benedikt Schlegel <be...@betasystems.com>:
> Hy folks,
>
> is there a way to determine if the current Item in onPopulate() is the
> last one processed? I need to add an additional attribute to the last
> DataView row.
>
> Thanks for your help,
> Benedikt
>
> Save Paper: Think Before You Print Beta Systems Email Disclaimer and Email
> Impressum
> Beta Systems email messages are confidential. They may also be privileged
> or otherwise protected by work product immunity orother legal rules. If
> you have received an email by mistake please let us know by reply and then
> delete it from your system; you should not copy it or disclose its
> contents to anyone. All messages sent to and from Beta Systems may be
> monitored to ensure compliance with internal policies and to protect our
> business. Emails are not secure and cannot be guaranteed to be error free
> as they can be intercepted, amended, lost or destroyed, or contain
> viruses. Anyone who communicates with us by email is taken to accept these
> risks.Beta Systems Email-Sicherheitsinformation
> Die Inhalte der Emails von Beta Systems sind vertraulich. Sie unterliegen
> darüber hinaus ggf. dem Schutz von Arbeitsergebnissen oder sind
> anderweitig rechtlich geschützt. Falls Sie diese Email irrtümlich erhalten
> haben, benachrichtigen Sie uns bitte unverzüglich und löschen Sie
> anschließend die Email. Es ist untersagt, diese Email oder deren Inhalt zu
> kopieren oder Dritten zugänglich zu machen. Wir behalten uns das Recht
> vor, jegliche an bzw. von Beta Systems gesendeten Nachrichten zu
> überprüfen, um die Einhaltung unserer internen Richtlinien sowie die
> Wahrung unserer Geschäftsinteressen zu gewährleisten. Da Emails nicht
> sicher sind, kann eine fehlerfreie Übermittlung nicht gewährleistet
> werden. Emails können abgefangen und modifiziert oder zerstört werden,
> verloren gehen oder Viren enthalten. Die Kommunikation mit Beta Systems
> per Email geschieht auf eigene Gefahr.
> Mandatory Information for business email according to German trade laws /
> Pflichtangaben für geschäftliche Emails gemäß Handelsgesetzbuch und
> Aktiengesetz:
> Beta Systems Software AG
> Alt-Moabit 90d
> 10559 Berlin
> Germany
> Phone: +49-(0)30-726 118-0
> Fax: +49-(0)30-726 118-800
> info@betasystems.com
>
> Chairman of the supervisory board / Vorsitzender des Aufsichtsrats: Dr.
> Günter Lewald
> Management board / Vorstand: Jürgen Herbott (CEO/Vorstandsvorsitzender),
> Gernot Sagl (CFO)
> Legal form / Rechtsform: Aktiengesellschaft
> Registered office / Sitz: Berlin
> Commercial register / Handelsregister: Berlin Charlottenburg, HRB 38 874
> Ust-ID-Nr.: DE 136572034, St.-Nr.: DE 29/1/3927
> Bank / Bankverbindung: Deutsche Bank Berlin, BLZ 10070000
> Account No / Konto-Nr.: 0680488
> BIC DEUTDEBB, IBAN: DE94 1007 0000 0068 0488 00
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org