FacesContext context = FacesContext.getCurrentInstance();
ValueExpression vex = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), "#{myBean.myProperty}", String.class);
myComponent.setValueExpression("value", vex);ValueExpression rex = context.getApplication().getExpressionFactory().createValueExpression(context.getELContext(), "#{myBean.myProperty}", Boolean.class);myComponent.setValueExpression("rendered", rex);
Monday, March 8, 2010
ADF:- ValueBinding
ValueBinding vb = FacesContext.getCurrentInstance().getApplication().createValueBinding( "#{myBean.myProperty}");
myComponent.setValueBinding("value", vb);
myComponent.setValueBinding("value", vb);
Subscribe to:
Posts (Atom)