例如:
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;
}