Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

EJB/JSF Clearing a form upon returning to it

Thread view: 
tom.simmons@vetco.com - 04 Jun 2007 10:31 GMT
Hi

My application is working fine, I am just on the polishing stage now.

I have various search screens in the system and what currently happens
is if you use one of these, then navigate to a different area of the
system, when you return the last search parameters and results are
still displayed.

Now because the navigation is not done through the backing bean there
is no where to clear the details out when you depart.  Similarly, when
you return, because I can't think of a way of knowing where you came
from you can simply clear the form then, because you might be
redisplaying as part of building the search parameters.

Any ideas?

Tom
Lew - 04 Jun 2007 15:25 GMT
> My application is working fine, I am just on the polishing stage now.
>
[quoted text clipped - 8 lines]
> from you can simply clear the form then, because you might be
> redisplaying as part of building the search parameters.

What's the managed-bean-scope of that bean?  If it's "request" it should clear
any time you arrive from a different screen.

Signature

Lew

tom.simmons@vetco.com - 05 Jun 2007 08:07 GMT
> tom.simm...@vetco.com wrote:
> > My application is working fine, I am just on the polishing stage now.
[quoted text clipped - 15 lines]
> --
> Lew

Sadly this is not an option, the screens all have cascaded list boxes
on them.  If the scope were request it is new for each time its
entered and therefore the cascades would not work.

The only idea I have so far is to examine the request and see if there
is anyway of knowing where it came from, or in the naviagtion rule see
if I can add a parameter on the destination.

Tom


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.