Home » Developer & Programmer » JDeveloper, Java & XML » How To Control <Af:panelspliter> At Runtime
How To Control <Af:panelspliter> At Runtime [message #496576] Tue, 01 March 2011 01:51 Go to next message
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

Re: How To Control <Af:panelspliter> At Runtime [message #496580 is a reply to message #496576] Tue, 01 March 2011 02:17 Go to previous messageGo to next message
Michel Cadot
Messages: 68728
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
How is this related to Oracle?

Regards
Michel
Re: How To Control <Af:panelspliter> At Runtime [message #496582 is a reply to message #496580] Tue, 01 March 2011 03:03 Go to previous messageGo to next message
tarekfathi2003
Messages: 23
Registered: August 2008
Location: kw
Junior Member
I posted my question on "JDeveloper, Java & XML " forum , not on PL/SQL or Oracle Forum. I'm talking to Oracle ADF 11g Experts , not oracle developers or database admin.

Regards
Re: How To Control <Af:panelspliter> At Runtime [message #496589 is a reply to message #496582] Tue, 01 March 2011 03:36 Go to previous message
Michel Cadot
Messages: 68728
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator
The whole site is on Oracle, its name is OraFAQ.

Regards
Michel
Previous Topic: dynamic xml composition
Next Topic: how can me write into xml file ? (merged)
Goto Forum:
  


Current Time: Tue Dec 17 20:24:57 CST 2024