Hi All,
I am having a Select Box in
JSF with select options like Gender,Employee,Associate.
Now select box list contains 3 items with index 0 -- Gender,index 1 -- Employee and index 3 -- Associate.
Based on our requirement when user selects a select item and clicks a button i need to delete the selected option from select box i.e if user selects Employee and submits, select box shows only Gender And Associate.
Now what i want is, can the deleted Employee object will be added back at the same index position as it is like before when a previous button is clicked.
Up to now what i have done i am maintaining two lists one parent list and another selected items list.When user selects one item from parent list and clicks submit button i am removing the selected item from parent list and adding it into selected items list.
When user clicks previous button i am removing from the selected items list and adding into the parent list. But the added one is coming at last position