<h:panelGrid columns="2">
<h:outputText value="Search Results List"/>
<p:commandButton value="Add user" process="@this" styleClass="btn-primary" style=" margin-bottom: 20px;margin-left: -80px;width:75px;" action="#{testBean.addUser(user)}"/>
<p:orderList styleClass="resultBox" style="color: #263F6A;" var="user" value="#{testBean.contacts}"
itemLabel="#{user.firstName}" itemValue="#{user.firstName}" controlsLocation="none">
</p:orderList>
</h:panelGrid>
I was working with primefaces orderlist, I have managed to get orderlist from backend, now I have select one of item from orderist and have to send it to server side to query.. I have posted the above code to do that.. I am facing problems as user object is null.. How to send an selected item from orderlist and send it across the server also please explain me about the process="@this" . I am using primefaces 3.4.2 and JSf2 websphere8.
Thanks in advance