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