aspose file tools
The moose likes JSF and the fly likes How to Clean Up Multipe Selections on Display After the Form is Submitted? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "How to Clean Up Multipe Selections on Display After the Form is Submitted?" Watch "How to Clean Up Multipe Selections on Display After the Form is Submitted?" New topic
Author

How to Clean Up Multipe Selections on Display After the Form is Submitted?

Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
I observed a problem:

After a user submits his/her multiple selections from a list box, which is an action taken place, I display the selections to make sure that things work fine. Then, I close the browser.

While the server is still running, I re-run the same application. And I see the previously selected items are highlighted in the list box on my screen.

What should I do to resolve this problem? I mean
how to erase the selections visually after the form is submitted? This is my command button:
Daniel Gee
Ranch Hand

Joined: Aug 29, 2003
Posts: 202
Let me answer my own question.

In the displaySelectedFiles() method that is invoked by an action, I nllify the Object[] that contains the multiple selections. This way, the multiple selections that were made previously will not show up
(i.e. not be highlighted) on the screen when I re-run the application.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to Clean Up Multipe Selections on Display After the Form is Submitted?
 
Similar Threads
Display Check Boxes & Dropdowns in Struts with search results
how jsf component get the value from backing bean instead of submitted value after validation error
First struts app help! Drop-down lists
storing values chosen from dropdown
Require help in submitting <form> through JavaScript function