1 of 1 people found this helpful
Look at this link:
fastMoveControlsVisible false false
(must evaluate to
If "false", 'Copy All' and 'Remove All' controls aren't displayed. Even if this value is "true", the 'Copy All' and 'Remove All' controls will not be displayed if the "copyAllVisible" and "removeAllVisible" attribute values are "false". Default value is "true".
Then add valueChangeListener and a4j:support for your pickList
valueChangeListener false false
(signature must match
Listener for valu
P.S. Look at this thread:
thanks a lot for your fast response. I checked the thread you sugessted before I wrote here. I don't want to use ListShuttle.
About the CopyAll and RemoveAll controls; thanks for the hint, but I meant moving more than one item. Not all of them. I removed them already. So, normal copy button would also move multiple items from one side to other. I want, user can select only one item for copying, because I'm combining this selection with another String and writing it to a third list like its given here :
I used a4j:support with onlistchanged and Filter the list as I need in the bean. This was helpful. The only remaining problem is preventing user from moving more than one item from left to right. Do you have any ideas about this?
why not use selectonelist if you want only one item can be selected one time?
We are using pickList because it shows the selected items in a more understandable form. By the way we don't need single selection property anymore. Selecting more than one item is more practical in our modified usecase.
Thanks a lot for responses.