「連携ターゲットを使用可能にする」ダイアログでコマンド制御コンポーネントを選択して Faces アクションを指定するのに加えて、Faces アクションを使用せずに、Faces ポートレットを連携ターゲットとして使用可能にすることもできます。
この方法で連携ターゲットを使用可能にする手順は、次のとおりです。
public TicketList getTicketList() { if (ticketList == null) { ticketList = (TicketList) getFacesContext().getApplication().createValueBinding("#{ticketList}").getValue(getFacesContext()); String customerId = (String)getRequestParam().get("customerId"); if (customerId != null) { ticketList.setCustomerId(customerId); } } return ticketList; }