-
1. Re: How to know which item is clicked in PichList
zomby Oct 7, 2011 2:10 AM (in response to zomby)It is sad that no one know anything about this thing, I have been trying for th last three days and no a single thread has been answered. may be I wasted my three days on RichFaces.
-
2. Re: How to know which item is clicked in PichList
akaine Oct 7, 2011 2:54 AM (in response to zomby)Try to remove listener attrbute from a4j:ajax and add the same logic to valueChangeListener to the rich:pickList (don't forget to change method's arguments). Then add execute="@this" to the a4j:ajax and play with its event types. Sometimes events are not of their JS counterparts but a built-in keywords that God knows where are to be found. Read carefully the RF4 online demo, sometimes they "pop up" in examples.
-
3. Re: How to know which item is clicked in PichList
zomby Oct 7, 2011 8:08 AM (in response to akaine)thanks Akaine for the reply. I tried the approached you mentioned but the event is only fired when we click the button to move the item from left to right list. When I click on an item in a list nothing happens. Following is the code. Am i missing anything.
<h:panelGrid id="groupMessage_Page">
<rich:pickList id="group_picklist" showButtonsLabel="false" value="#{groupBean.pickListResult}"
listHeight="100" converter="#{groupBean.converter}" valueChangeListener="#{groupBean.updateGroupMembers}">
<a4j:ajax event="click" render="userlist" limitRender="true" execute="groupMessage_Page"/>
<f:selectItems value="#{groupBean.leftPickList}"/>
</rich:pickList>
<a4j:commandButton value="#{msg.sendsms}" limitRender="true" execute="groupMessage_Page" render="group_picklist" action="#{groupBean.processGroupRequest}"/>
</h:panelGrid>