I am trying to design calendar in two separate tabs.I am unable to open calendar popup after navigating to different tab Main.xhtml(Where Tabs are designed)
<p:tabView id="CRE_CI" widgetVar="TabV" prependId="false" cache="false" dynamic="true">
<p:tab title="CRE Residential Input" style="outline: 0;">
<ui:include src="CRE//abc.xhtml" />
</p:tab>
<p:tab title="CRE Commercial Analysis" style="outline: 0;">
<ui:include src="CRE//xyz.xhtml" />
</p:tab>
</p:tabView>
abc.xhtml
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Commercial Analysis</title>
</h:head>
<div id="CRECommAnalysis">
<h:body>
<h:form id="crecommform">
<p:calendar id="commcal1" navigator="true" pattern="MM/dd/yy"style="width:100%" >
</p:calendar>
</h:form>
</h:body>
</div>
</html>
xyz.xhtml
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
<title>Commercial Analysis</title>
</h:head>
<div id="CRECommA">
<h:body>
<h:form id="crecomm">
<p:calendar id="commcal2"/>
</h:form>
</h:body>
</div>
</html>
Please note that it's working fine when dynamic="true" from Main.xhtml is removed