2
是否有可能知道UIComponent
调用托管bean中某个属性的getter?如何获取调用托管bean的getter方法的UIComponent?
@ManagedBean
@SessionScoped
public class SomeBean {
private String color;
public String getColor() {
// Here I would like to know which UIComponent called this method.
return color;
}
}
非常感谢!有用。 – 2012-01-15 09:01:15