<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>
私はprimefaces orderlistで作業していましたが、バックエンドからorderlistを取得できました.今、orderistからアイテムの1つを選択し、それをサーバー側に送信してクエリする必要があります..私はそれを行うために上記のコードを投稿しました..私はユーザー オブジェクトが null であるため、問題に直面しています。orderlist から選択したアイテムを送信し、サーバー経由で送信する方法についても、 process="@this" について説明してください。私はprimefaces 3.4.2とJSf2 websphere8を使用しています。
前もって感謝します