jsf 在bean中 设置valuebinding

Application application = FacesContext.getCurrentInstance().getApplication();
ValueBinding vb = application.createValueBinding("#{"+beanName+".flows["+i+"].stData}");
HtmlInputText input = (HtmlInputText)application.createComponent(HtmlInputText.COMPONENT_TYPE);
input.setValueBinding("value", vb);

你可能感兴趣的:(bean,Ajax,JSF,vb)