if I use some components like tabView they are completly unstyled. I found out that no javascript files are included in my response.
As far as I understood JSF 2 and Primefaces would include the dependecies automatically as soon as I use a component.
My code looks like that
Code: Select all
<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:rich="http://richfaces.org/rich" xmlns:p="http://primefaces.prime.com.tr/ui" >
<h:form id="test">
<p:tabView dynamic="true" cache="true">
<p:tab title="Caption Tab 1">
<h:panelGrid columns="2" cellpadding="10">
<h:outputText value="Test Tabs 1" />
</h:panelGrid>
</p:tab>
<p:tab title="Caption Tab 2">
<h:panelGrid columns="2" cellpadding="10">
<h:outputText value="Test Tabs 2" />
</h:panelGrid>
</p:tab>
</p:tabView>
</h:form>
</ui:composition>