Problem in rendering a panel inside a modal panel
sandhyaradhakrishnan Jul 28, 2011 8:37 AMHi All,
Am tring to render a include component inside a modalPanel . But is it is not getting rendered. Pls help me on ths.
Snippet:
<c:if test="#{tabBean.tabName=='transactions'}">
<a4j:commandButton styleClass="bnpButtons" style="width:auto" id="upload" value="+ Upload New File"
oncomplete="Richfaces.showModalPanel('fileUploadPanel',{width:600, top:60});">
<a4j:support event="onclick" reRender="pg" actionListener="#{fileUploadBean.setManualFileUpload}" ></a4j:support>
</a4j:commandButton>
</c:if>
<rich:modalPanel id="fileUploadPanel" height="600"
style="overflow-y:auto !important ;overflow-x:auto !important;">
<h:panelGrid columns="3">
<h:outputText styleClass="screenHeader" value="File Upload"></h:outputText>
<rich:spacer width="400px"></rich:spacer>
<h:panelGrid columns="2">
<a4j:commandLink value="Close" id="hidelink" styleClass="stglMarker"
oncomplete="Richfaces.hideModalPanel('fileUploadPanel');">
<a4j:support event="onclick" action="#{fileUploadBean.closeManualFileUpload}"></a4j:support>
</a4j:commandLink>
<h:graphicImage value="/images/ico-close.gif" style="border:none" />
</h:panelGrid>
</h:panelGrid>
<rich:spacer height="20px" />
<a4j:outputPanel id="op">
<h:outputText styleClass="screenHeader" value="insidepanel"></h:outputText>
<a4j:keepAlive beanName="fileUploadBean" ajaxOnly="true"/>
<h:panelGrid id="pg" columns="1" rendered="#{fileUploadBean.showManaulFileUpload}">
<a4j:keepAlive beanName="fileUploadBean" ajaxOnly="true"/>
<h:outputText styleClass="screenHeader" value="before include"></h:outputText>
<ui:include id="include" src="/facelets/invoice/invoiceUpload.xhtml"/>
<h:outputText styleClass="screenHeader" value="after include"></h:outputText>
</h:panelGrid>
</a4j:outputPanel>
<rich:spacer height="20px" />
</rich:modalPanel>