Hi

I can provide you solution but I dont know whether it will help you  or not.

The solution is,

You can declare a hidden field like 'refresh' in your search page.

In mySearchBean.getRefresh() you can clear all the data or as per your 
requirement you can do anything you need, depending upon the context.

If the solution works, please let me know :)

Thank you. 

Best regards,

----------------------------
Ehteshamul Haque


--- On Tue, 5/26/09, Bram Van Dam <[email protected]> wrote:

From: Bram Van Dam <[email protected]>
Subject: Welcome page and executing actions...
To: [email protected]
Date: Tuesday, May 26, 2009, 2:36 AM

Hi :-)

I'm aware that this question has been asked before, but I can't find a 
satisfactory answer anywhere, so here goes:

My JSF app uses session beans. I've got a simple one that backs a search page. 
My welcome page currently does this:

<c:redirect url="/search.html"/>

This kind of works, in the sense that the JSF page is loaded. However, in order 
to navigate to the search page I usually call mySearchBean.newSearch() - which 
will reset all the search fields and what have you. When I redirect to the 
page, stale data is still there.

Basically, I'm looking for a way that'll get my welcome page to execute the jsf 
backing bean action, instead of an ugly jsp redirect.

Any takers?

Ta :-)

 - Bram




Reply via email to