Showing posts with label Manage Bean. Show all posts
Showing posts with label Manage Bean. Show all posts

Monday, 30 September 2013

ADF Basics: Refresh UIComponent within Manage Bean

ADF Basics: Refresh UIComponent within Manage Bean

This is a quick code tip:

     /**
*import javax.faces.component.UIComponent;
*
* PPR UIComponent
*
* @param UIComponent - The UIComponent wanting to be refreshed
*
*/
    public void refreshComponent(UIComponent component){
        AdfFacesContext.getCurrentInstance().addPartialTarget(component);  
    }

ADF Basics: Find UIComponent within Manage Bean

ADF Basics: Find UIComponent within Manage Bean

This is a quick code tip:

     /**
* FindUIComponent
*
* @param UIComponent - The UIComponent ID you are wanting to find
*
*/
private UIComponent findUIComponent(String name) {  
 FacesContext facesCtx = FacesContext.getCurrentInstance();  
 return facesCtx.getViewRoot().findComponent(name) ;  
}

#bearMan