How To Control <Af:panelspliter> At Runtime [message #496576] |
Tue, 01 March 2011 01:51 |
tarekfathi2003
Messages: 23 Registered: August 2008 Location: kw
|
Junior Member |
|
|
I have a panel splitter layout component on my page and i want to enable/disable this splitter at run time from within a managed bean
In my managed bean I made this method
public class ManageUI {
private String enableSplit;
private String discloseSplit;
private RichPanelSplitter spliter;
private String viewId;
public void doDiscloseSplit(PhaseEvent phaseEvent){
String currViewId = phaseEvent.getFacesContext().getViewRoot().getViewId();
System.out.println("current view id="+currViewId);
if (!currViewId.equals(this.getViewId())) {
spliter.setDisabled(false);
System.out.println("spliter is now false");
}
}
....
the method throw runtime exception :
current view id=/home
<UIViewRoot> <notifyPhaseListeners> Exception
javax.el.ELException: java.lang.NullPointerException
|
|
|
|
|
|