Hi guys,

I have a stateless search page, when the user first enters the page, all
results must be returned.
Then the user can submit a filter form and then the filtered result must be
shown.

In the page's onInitialize I have a search() method which calls search()
method.

I have a form which has a CompoundPropertyModel attached with the page
model.
In onSubmit method, seach() is invoked to perform the search with the
filtered values.

The problem is, since the page is stateless the onInitialize is called and
then the onSubmit method is called when I post the form.

So I am searching twice. How would be the correct approach to this case?

I was thinking in just check if the request method is a Post and ignore the
onInitialize call...

Thanks in advance.

-- 

Marcel

Reply via email to