

- #Primeface tabview loading logic how to
- #Primeface tabview loading logic update
- #Primeface tabview loading logic code
I have found this link that implements the behaviour of the TabView.

#Primeface tabview loading logic how to
How to use a Primefaces TabView for input. JSF :: Primefaces / Creating Custom Tabs In TabView? Nov 5, 2014

#Primeface tabview loading logic update
The command button calls the update for panelGroup "equipmentWrapper".

The method findAssociatedEquipment() is called when it recieves a selected project to display. I have managed to get it to load the proper number of tabs and content, but the first tab title displays the title of the first tab from the previous query.Īnd the method handling the content and number of tabs: I have a TabView that generates the numbers of tabs, titles and content based off of the selected project from another field. This seems to cause the issue where both tabs are loaded into the same tab, which most likely is messing up the parameters later on.JSF :: Updating Primefaces TabView Title Mar 5, 2014 With the tabs being dynamic, and the ajax event firing, the tabs are changed and subsequently the ajax updates the tabs. The first two times this is set correctly, but on changing back to the tab it is not set, hence not being able to find the tab and the subsequent NPEs. Any ideas about what could be wrong?Īfter some more investigation, I see that on a tab change the tab that should be changed to is specified via the request parameter with the client ID with _newTab appended to it. The tab index is set on the tabview though. As we do not use one, it is null, so it goes into the new tab branch.
#Primeface tabview loading logic code
It seems that the code checks if the var parameter is set on the TabView. I'm not certain that it should be in the branch of logic that deals with new tabs either. Looking at the PrimeFaces source code, it seems that it's when trying to work with the tabToLoad variable that is retrieved with the generated tabClientId. Making the contents of the tabs minimal (just a line of text), I can see that the contents of the tabs are being appended onto each other. The tab view seems to work correctly in the first two tab changes, but on the third I get a null-pointer as in Īt .TabViewRenderer.encodeEnd(TabViewRenderer.java:59)Īlso, TabChangeEvents have null data at this point.
