have an issue here, that can't be the correct way .
I have a page (a little bit complex, so no example for now. maybe i will produce a short one later), where i use a p:panel to output a various number of panels.
On the first visit of the pages, the user have to select an date range, so no p:panel - Components whould be rendered at first time.
After the user submittet the dates, i have an ajax - partielle rerendering of the Grid where the p:panels are shown.
In general that worked, but primeFaces seems not including the (default) style-informationens for the panels, if at first rendering-time no p:panels are present. If i place a dummy p:panel component outside of the re-Rendering-Grid (so that at the first visit we have immediatly one p:panel present) the styles work fine.
In a not complete coding looks like:
Code: Select all
<h:form>
<!-- Some input -->
<h:commandButton action="#{fakturHandler.aktualisiereAufgaben()}" value="Refresh">
<f:ajax ... render=":panel" />
</h:commandButton>
</h:form>
<h:panelGroup id="panel">
<c:forEach items="..." var="item">
<p:panel ...>
</p:panel>
</c:forEach>
</h:panelGroup>
<!-- UnComment this, will do the right styling for this panel and the ReloadedPanels above too! -->
<!-- <p:panel ...>-->
<!-- <h:form>-->
<!-- <h:outputText value="Demo" />-->
<!-- </h:form>-->
<!-- </p:panel>-->
thanks a lot
Dom
System:
primefaces 2.0.2
jsf 2.0
on Glassfish v3