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 asked 05.03.2015 at 11:01 nwk2Team |
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 answered 06.03.2015 at 09:21 Reguel Werme... ♦♦ Alex Suter ♦♦ Hi Reguel, Thank you for your demo. It works like a charm. Kind regards NWK Team
(06.03.2015 at 12:30)
nwk2Team
|
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,347 times
Last updated: 07.03.2018 at 10:33