ha ha
listItem.getIndex() + 1
I see it
On 3/20/06, Ayodeji Aladejebi <[EMAIL PROTECTED]> wrote:
i have this row numbering property on my panel such that without using the IDs from the database, i want to use this property count on my DataPanel to number a Listwithin ListView...it did thisint count = 1;protected void populateItem(final Item listItem) {
//final State nstate = (State) listItem.getModelObject();
count = getCount();
setCount(count+1);
State state = (State)listItem.getModelObject();
listItem.add(new Label("id", String.valueOf(count)));
}but whenever i click the browser refresh, the count does not start from 1 again
is there anyway to trap refresh or what is the way to go by these?