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 List
within ListView...it did this
 
   int 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?



Reply via email to