rich:modalPanel and a4J:commandButton
rohand Oct 6, 2011 4:51 AMI have following code
<rich:modalPanel id="warning" width="300" height="180">
<f:facet name="header">
<h:panelGroup>
<h:outputText value="Confirm"></h:outputText>
</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/images/close.png" styleClass="hidelink"
id="hideStagelink" />
<rich:componentControl for="deleteStageWarningDialog"
attachTo="hideStagelink" operation="hide" event="onclick" />
</h:panelGroup>
</f:facet>
<h:form id="deleteStageWarningDialogForm"
name="deleteStageWarningDialogForm">
<table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="100" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10%" valign="top">
<!--DWLayoutEmptyCell--> </td>
<td width="80%" height="100" valign="middle"><h:outputText
value="Are you sure you want to delete?" /></td>
<td width="10%" valign="top">
</tr>
</table></td>
</tr>
<tr>
<td height="48" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" height="48" align="right" valign="top">
<a4j:commandButton id="deleteStageWarningButton" value="Yes" action="#{bean.deleteStage}" reRender="tabs"
oncomplete="#{rich:component('warning')}.hide();#{rich:component('panelStage')}.hide();" style="width:75px; margin-right:5px;" /></td>
<td width="150" align="left" valign="top"><a4j:commandButton
id="cancelStageWarningButton" value="No"
onclick="#{rich:component('warning')}.hide();return false;"
style="width:75px; margin-left:5px;" /></td>
</tr>
</table></td>
</tr>
</table>
</h:form>
</rich:modalPanel>
When I click Yes the application just crashes.
Can anyone help me with this?
Thanks