when is it set to null?

   public final Component setVisible(final boolean visible)
   {
       // Is new visibility state a change?
       if (visible != getFlag(FLAG_VISIBLE))
       {
           // record component's visibility change
           addStateChange(new VisibilityChange(this));

           // Change visibility
           setFlag(FLAG_VISIBLE, visible);
       }
       return this;
   }

i don't see any code touching the model.

johan


On 4/15/07, Alex Objelean <[EMAIL PROTECTED]> wrote:


I don't understand why if the component visibility is set to false, the
backing model object is set to null? Is there any reason? I find it more
useful to not touch at all the backing object is such case. What is your
opinion?

Thank you!
--
View this message in context:
http://www.nabble.com/Nullify-objectModel-when-component-is-not-visible-tf3577965.html#a9998155
Sent from the Wicket - User mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to