Code: Select all
public void valueChangeMethod(ValueChangeEvent event)
How do I update my UI Component Tree from within Java?? My scopes are @RequestScoped
Code: Select all
FacesContext fc = FacesContext.getCurrentInstance();
fc.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,"Sample info message", newValue));
UIComponent uicomp = UIComponent.getCurrentComponent(fc);
TabView tabview = (TabView) uicomp.findComponent("tabview");
Tab tabone = (Tab) tabview.findComponent("tabone");
if (roken != null)
{
if (newValue.equalsIgnoreCase("ja"))
{
tabone .setDisabled(false);
tabone .setTitle(newValue);
}
else
{
tabone .setDisabled(true);
}
System.out.println("Aan: "+tabone .isDisabled());
}