function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

Retaining last selected value in selectlist

Hi All,


I have a VF page. I have used this VF page in a Visualforce tab.


There are with 3 tabs inside  this VF page within tabpanel.

In one tab, there is a selectlist to display the queues. The queues are queried from the controller.

Selecting a queue will display the cases associated with that queue.


In the second tab, I am using enhancedlist:


<apex:enhancedList type="Case">

 This will display all the views in the list. Selecting a queue will display the cases related to that queue.


When I click on any other tab (which is not the tabpanel of VF page) like Accounts or Contacts and come back to this page and go to the second tab, the value selected previously in the enhancedlist is being retained.



But the value selected in the selectlist present in the first tab is not being retained.


Is there any way to accomplish the retaining of values in the selectlist of first tab.

Any suggestions will be helpful.