jsf - Combination of fixed and dynamic tabs in PrimeFaces TabView -


is possible combine fixed , dynamic tabs in pf tabview? use case creating tab each object in object list dynamically. fixed tab hold form creating new object. once form submitted, new tab new object must added tabview.

so far managed implement functionality 2 views - 1 displaying objects dynamically , other 1 form new object.

i tried write new tabview renderer able render both dynamic , fixed tabs. however, if combine 2 tab types, pf command button not function on fixed tab (i posted problem here: http://forum.primefaces.org/viewtopic.php?t=20840).

i found forum post creating pf tabs in managed bean (http://stackoverflow.com/questions/4052581/dynamically-generate-tabs-with-primefaces). i'd avoid if possible capable use pf components declaratively in .jsf view.

we had same issue in our latest project , and solved in simple yet little crude way:

we have created 2 (nested) tabviews. top 1 includes 2 tabs. 1 showing dynamic tabs having nested second (dynamic) tabview. second 1 showing fixed tab. (in our case fixed 1 not create new tabs shows final result calculated dynamic tabs).

it workaround maybe helps.


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -