user964819
user964819

Reputation: 353

Restoring state of an ADF component

Jdev version :11.1.1.7.1 I'm iterating over a nested list and creating adf components at run time from my session scope bean based upon user input,Now the issue is i need to reset the panel group layout again in case user clicks on rest button and recreate all children based on a different user input. The panel group layout is not getting reset even upon using : either searchResultPanel = new RichPanelGroupLayout(); or searchResultPanel .restoreState(FacesContext.getCurrentInstance(), null);

Can anyone tell me how can i reset the state of panel group layout in my managed bean .

Upvotes: 0

Views: 463

Answers (1)

amishra
amishra

Reputation: 951

If you want to refresh panel group layout then you can remove its child components before adding the new ones, like:

pglayout.getChildren().remove(0)

Upvotes: 1

Related Questions