Your page is stateless, which is a holy grail for most to attend. Be happy :)

Since it is stateless, Wicket has to construct the page with each
request, until it is no longer stateless.

If you have a form, override its getstatelesshint method and return false.

Martijn

On Tue, Mar 31, 2009 at 8:36 AM, Vinayak Borkar <[email protected]> wrote:
> Jeremy,
>
> I did that. The first time it is
>
> at
> org.apache.wicket.request.target.component.BookmarkableListenerInterfaceRequestTarget.processEvents(BookmarkableListenerInterfaceRequestTarget.java:127)
>
> and the second time it is
>
> at
> org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:223)
>
>
> Does that help?
>
> Thanks,
> Vinayak
>
>
> Jeremy Thomerson wrote:
>>
>> Run it in debug mode, put a breakpoint in your constructor and see what's
>> instantiating each.  A lot of times it is your own code (a bad link, etc).
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>> On Tue, Mar 31, 2009 at 1:30 AM, Vinayak Borkar <[email protected]> wrote:
>>
>>> Hello,
>>>
>>>
>>> I have a form that performs a search and shows a page with results. The
>>> result page also has the same form to do a repeat search. I noticed that
>>> the
>>> SearchPage is instantiated twice when I do a search from the form on the
>>> result page. Is there a way to make sure that does not happen? The search
>>> page ends up doing the search twice.
>>>
>>> Thanks,
>>> Vinayak
>>>
>>> ---------------------------------------------------------------------
>>> 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]
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to