rich:popupPanel with a4j:ajax
sinvaldo Feb 1, 2012 6:55 AMIs there some problem to use a ajax request with a4j:ajax inside a Popup Panel like this ?
<rich:popupPanel id="helpMe" modal="true"
styleClass="formDiv" style="width:520px;">
<f:facet name="header">
<h:outputText value="Inclusão de ocorrência" styleClass="legend" />
</f:facet>
<div id="div_pop_ocorr" class="formDiv" style="width: 500px;">
<h:panelGrid id="grid_inclusao_ocorr" columns="3">
<h:outputLabel value="Tipo de ocorrência: " styleClass="label" />
<h:selectOneRadio value="#{ocorrenciaMB.joe}"
valueChangeListener="#{ocorrenciaMB.exibirTipoErosaoAjax}"
styleClass="radioOption">
<a4j:ajax event="valueChange" render="formTipoErosaoAjax" />
<f:selectItems value="#{ocorrenciaMB.radioTipoErosao}" />
</h:selectOneRadio>
<a4j:outputPanel id="formTipoErosaoAjax" layout="block">
<h:panelGroup rendered="#{ocorrenciaMB.tipoErosaoFlag == true}">
<h:outputLabel value="Frequência" styleClass="label" />
<br />
<h:outputLabel value="Ocasional" styleClass="label" />
<h:selectBooleanCheckbox
value="#{ocorrenciaMB.ocorrenciaCorrente.qtdeOcasional}" />
<h:outputLabel value="Frequente" styleClass="label" />
<h:selectBooleanCheckbox
value="#{ocorrenciaMB.ocorrenciaCorrente.qtdeFrequente}" />
</a4j:outputPanel>
</h:panelGrid>
<h:commandButton onclick="#{rich:component('helpMe')}.hide();"
value="Cancelar" styleClass="btnLabel" />
</div>
</rich:popupPanel>
Thanks,
Sinvaldo Junior