Thanks, now I get it.

> >  Probably just being thick here, but how does calling 
> > listview.detach()  hide the listview?
> 
> it doesnt hide the listview, but it detaches the model. the 
> problem was:
> suppose you have one item in the list
> 1) check listview visibility - loads the detachable model 
> with queryresult of 1
> 2) if visible execute click listener
> 3) click listener removes item from database
> 4) check listview visible during rendering - checks model size - sees
> 1 - visible - problem
> 
> with the change it is:
> 1) check listview visibility - loads the detachable model 
> with queryresult of 1
> 2) if visible execute click listener
> 3) click listener removes item from database
> 4) click listener detaches listview - which in turn detaches its model
> 5) check listview visible during rendering - loads model (now 
> resultset of size 0) checks model size - sees 0 - invisible
> 
> -igor
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to