jsf 里面所有页面显示的组件(except viewroot)都可以在bean 里面定义, 也可以在bean里获得组件信息。
FacesContext.getCurrentInstance().getViewRoot().findComponent(componentId);
传入的参数一般都带formid 如:thisForm:userId, 视解析方式不同而有所不同。
FacesContext.getCurrentInstance().getViewRoot().findComponent(componentId);
传入的参数一般都带formid 如:thisForm:userId, 视解析方式不同而有所不同。