我对素数p:pickList以及与o:converter结合使用有疑问
我已经设置了ManagedBean和JSF页面
@ViewScoped
@Named
public class FormDesignerEditController implements Serializable {
private DualListModel<FormComponentElement> formComponentElementList;
private FormComponentElement selectedFormComponentElement;
private List<FormComponentElement> targetAllList = new ArrayList<FormComponentElement>();
private List<FormComponentElement> sourceList = new ArrayList<FormComponentElement>();
private List<FormComponentElement> targetList = new ArrayList<FormComponentElement>();
@PostConstruct
public void init() {
formComponentElementList = new DualListModel<FormComponentElement>();
// Source
sourceList = new ArrayList<FormComponentElement>();
sourceList = formDesignerService.createAvailableFormElements();
// Target
targetList = new ArrayList<FormComponentElement>();
targetAllList = formDesignerService.createFormSettingsElements();
// Set List
formComponentElementList.setSource(targetList);
formComponentElementList.setTarget(sourceList);
}
以下是选择列表:https://pastebin.com/XcAj3guj