Tuesday, 15 September 2015

jsf 2 - How to pass the selected object from orderlist and submit on serverside -



jsf 2 - How to pass the selected object from orderlist and submit on serverside -

<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 working primefaces orderlist, have managed orderlist backend, have select 1 of item orderist , have send server side query.. have posted above code that.. facing problems user object null.. how send selected item orderlist , send across server please explain me process="@this" . using primefaces 3.4.2 , jsf2 websphere8.

thanks in advance

p:orderlist not info component. cannot send info backend that. check this. seek using datatable , displaying value in it. can utilize f:setpropertyactionlistener datatable.

also know @this check link

edit: check primefaces showcase pass info using datatable , this

jsf-2 primefaces

No comments:

Post a Comment