My team got some problems with adding a new p:tab which contains ivycomponent. In the first tab of the p:tabview contains a p:datatable. A new p:tab should created/opened each time if the user clicks a row in the datatable. In the new p:tab should include a ivycomponent with 2 parameters, which looks like following:
Has anyone already gained experience with loading ivycomponent(s) within a dynamic p:tab? Thank you for sharing! Kind regards NWK Team |
First the p:tabView should be bound to managed bean, so that we can access the UIComponent from code:
The bean must at least contain the setters and be requestScoped:
Then a new tab can be added from process logic. Its seems to be a little tricky to pass the start parameters correctly. They must be passed a string el-expression even if the object behind it is already resolved elsewhere:
The full demo project can be downloaded here: ComponentCreation_51.iar |
Once you sign in you will be able to subscribe for any updates here
By RSS:Markdown Basics
Tags:
Asked: 05.03.2015 at 11:01
Seen: 5,345 times
Last updated: 07.03.2018 at 10:33