Sorry, my mistake. Indeed, it has nothing to do with changing model object. I
used YUI-ext LayoutManager for screen layout, and didn't noticed that the
rendered markup replace the form components... this was the cause that make
me believe that there is something wrong with wicket. :)


Johan Compagner wrote:
> 
> 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
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Nullify-objectModel-when-component-is-not-visible-tf3577965.html#a10012033
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

Reply via email to