I have a requirement in which i have to dynamically add facets to a panel box layout and then add elements to the same such as text and buttons.
I have searched multiple forums but to no avail.
I have tried the following code as well:
RichPanelBox panelBox=new RichPanelBox();
panelBox.getFacet("top").getChildren().add(Button);
but this returns with null pointer exception as
panelBox.getFacet("top")
is null.
any pointers how can i add facet( tag in Jspx) to the panelbox programmatically..??