You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Warren Bell <wa...@gmail.com> on 2009/12/12 01:11:22 UTC

Model object properties go null after RestartResponseAtInterceptPageException.

I have a page with about 10 text fields. The model for the page is a 
ValueMap. All of the values in the ValueMap get set to null when a user 
gets redirected back to the original page after a 
RestartResponseAtInterceptPageException. All of the keys in the ValueMap 
are still there.

What do I need to do to fix this?

Warren

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Model object properties go null after RestartResponseAtInterceptPageException.

Posted by Warren Bell <wa...@gmail.com>.
No it looks like it is the same instance, Its constructor is only being 
called once. I can watch the model object and see when it gets set to 
null, though I am not sure what I am looking for as far as what is 
setting it to null. It gets set to null on the way back to the page from 
the login. The model object is a ValueMap that I store in the 
Application object. I am also using wicket-security. Here is how my 
model is being created.

            super(name, new 
CompoundPropertyModel<ValueMap>(getScanManApp().getAppProperties())
            {

                @Override
                public ValueMap getObject()
                {
                    return getScanManApp().getAppProperties();
                }

            });


Johan Compagner wrote:
> isnt your page not just a brand new shiny new instance?
> place a breakpoint in your constructor
>
> On 14/12/2009, Warren Bell <Wa...@clarksnutrition.com> wrote:
>   
>> Does Any body have any ideas, I am stuck and can't figure this out.
>>
>> I have a page with about 10 text fields. The model for the page is a
>> ValueMap. All of the values in the ValueMap get set to null when a user
>> gets redirected back to the original page after a
>> RestartResponseAtInterceptPageException. All of the keys in the ValueMap
>> are still there.
>>
>> What do I need to do to fix this?
>>
>> Warren
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>>     
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>   


-- 
Thanks,

Warren Bell


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Model object properties go null after RestartResponseAtInterceptPageException.

Posted by Johan Compagner <jc...@gmail.com>.
isnt your page not just a brand new shiny new instance?
place a breakpoint in your constructor

On 14/12/2009, Warren Bell <Wa...@clarksnutrition.com> wrote:
> Does Any body have any ideas, I am stuck and can't figure this out.
>
> I have a page with about 10 text fields. The model for the page is a
> ValueMap. All of the values in the ValueMap get set to null when a user
> gets redirected back to the original page after a
> RestartResponseAtInterceptPageException. All of the keys in the ValueMap
> are still there.
>
> What do I need to do to fix this?
>
> Warren
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Model object properties go null after RestartResponseAtInterceptPageException.

Posted by Warren Bell <Wa...@clarksnutrition.com>.
Does Any body have any ideas, I am stuck and can't figure this out.

I have a page with about 10 text fields. The model for the page is a
ValueMap. All of the values in the ValueMap get set to null when a user
gets redirected back to the original page after a
RestartResponseAtInterceptPageException. All of the keys in the ValueMap
are still there.

What do I need to do to fix this?

Warren

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org