Hi,
I have a problem with a4j:commandLink. Am calling a a4j:jsfunction on click of the a4j:commandLink to render the a4j:outputpanel containing a modalpanel, and on complete am opening the modalpanel.
But this scenario is not working as expected.
code:
a4j:outputpanel
<a4j:outputPanel id="rmoverViewID" ajaxRendered="true" keepTransient="true">
<c:if test="${frontController.modalpanelToRenderFirstDrillDown ne ''}">
<rich:modalPanel id="maturities" autosized="true" minWidth="907"
moveable="false" resizeable="false" styleClass="dashboardModal"
keepVisualState="true" zindex="1010">
<a4j:include id="rmoverViewIDInclude" layout="block" ajaxRendered="true"
viewId="/views/includes/modalInclude/maturities_include.xhtml"></a4j:include>
</rich:modalPanel>
</c:if>
</a4j:outputPanel>
a4j:commandLink
<a4j:commandLink action="#{frontController.processRequest}"
styleClass="popupLink"
oncomplete="MatshowModalPanelDashboard('maturityDiv',this); closemenus();"
value="#{msg.db_ui_table_column_header_maturities}"
reRender="maturities,globalMessages,outputTextId" onclick="renderModalPanelToShow('maturities');"
limitToList="true" status="waitStatus">
<f:param name="beanToInvoke" value="maturitiesBean" />
<f:param name="methodName" value="actionCallForManturities" />
<f:param name="modalpanelToRender" value="maturities" />
</a4j:commandLink>
a4j:jsfunction
<a4j:jsFunction name="renderModalPanelToShow"
reRender="rmoverViewID" limitToList="true" ajaxSingle="true" immediate="true" >
<a4j:actionparam name="modalpanelToRender" value="${param.modalpanelToRender}" />
<f:setPropertyActionListener value="${param.modalpanelToRender}" target="#{frontController.modalpanelToRenderFirstDrillDown}"/>
</a4j:jsFunction>
Thanks for your suggestions in advance...
Ravi Kuchika