On Fri, Mar 7, 2008 at 12:31 AM, Maeder Thomas <[EMAIL PROTECTED]> wrote: > Hi Igor, > > > > > > it is called that way for security reasons, eg so you cannot > > click a link that is not visible just because you know its url... > > Yes, but shouldn't the visibility be reevaluated anyway after the link > is clicked? The clicking of the link, button, etc. usually changes the > state of component, no?
it is reevaluated after the click listener is done. > > what he should do is follow the delete call with a > > listview.detach() call > > > > 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 > > Thomas > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
