I have a requirement to create a panel dynamically using
jsf 2.0 custom components. The controls within the panel will be dynamically read from an xml and rendered on the selection of the corresponding object (Eg : If Person is selected, I should render a panel which will have controls related to person like : Person age field(inputtext), Person DOB(calendar) and so on).
I am trying to render it from the component class which extends UIComponentBase.
I have done this way. But I am getting a null pointer exception. How can the panel with the defined controls be rendered dynamically?
This is what I'm getting -
====Will Start Rendering====
inside the panel get method------
Sep 7, 2011 10:01:42 AM com.sun.faces.context.PartialViewContextImpl$PhaseAwareVisitCallback visit
SEVERE: java.lang.NullPointerException