-
1. Re: rich:listShuttle how to deny item remove based on item data
nbelaevski Apr 14, 2010 6:18 PM (in response to bleah)Hi Tero,
There's "onlistchange" cancelable event that you can use to prevent list changes on the client-side + you'll need validator on the server-side (for the case of users bypassing client-side checks).
-
2. Re: rich:listShuttle how to deny item remove based on item data
bleah Apr 16, 2010 12:51 PM (in response to nbelaevski)Hi,
Thanks for your answer Nick.
I have tried now to find out how can I get the selected items in onlistchange event but I can't figure it out.
Let say if my list shuttle would be like following:
<rich:listShuttle id="myShuttle" sourceValue="#{myBean.sourceItems}" converter="itemConverter"targetValue="#{myBean.targetItems}" var="myItem" onlistchange="#{rich:component('myShuttle')};">
<rich:column>
<h:outputText value="#{myItem.someVariable}"></h:outputText>
</rich:column>
</rich:listShuttle>Am I trying to get the myShuttle component in correct way? If yes how can I get the selected values?