Problem After updated version Richfaces 3.2.0 ---> 3.2.2
bala7 Jan 8, 2009 1:25 AMHi
I updated my Richfaces 3.2.2.
Problem is after update , the modal panel messages and where ever i kept a4j close button are not working properly.
In Richfaces 3.2.0 , it works fine.
I attached the code for ur reference.
[color=444444]optincreate.xhtml
<h:panelGroup id="formbuttongroup">
<a4j:commandButton action="#{formmanager.createUpdateOptinForm}" value="Create Opt-in Form" rendered="#{formmanager.optinForm.id == 0}" reRender="optinfform, formcontent" limitToList="true" oncomplete="#{rich:component('messagepanel')}.show()"/>
<a4j:commandButton action="#{formmanager.createUpdateOptinForm}" value="Update Opt-in Form" rendered="#{formmanager.optinForm.id gt 0}" reRender="optinfform, formcontent" limitToList="true" oncomplete="#{rich:component('messagepanel')}.show()"/>
<f:verbatim>Â Â </f:verbatim>
[color=444444]<a4j:commandButton value="Close" action="#{formmanager.cancel}" ajaxSingle="true" reRender="formpanelgroup"/>
<f:verbatim>Â Â </f:verbatim>
<a4j:status>
<f:facet name="start">
<h:graphicImage value="../images/processing.gif"/>
</f:facet>
</a4j:status>
</h:panelGroup>
[color=444444][color=blue]Index.xhtml
<a4j:outputPanel id="formpanelgroup" ajaxRendered="true">
<h:form>
<a4j:include viewId="/forms/optinview.xhtml"/>
</h:form>
<a4j:form>
<a4j:jsFunction name="closeModal" action="#{formmanager.closeModal}" ajaxSingle="true" reRender="optinlist" oncomplete="#{rich:component('delete')}.hide()"/>
</a4j:form>
<h:panelGroup rendered="#{action eq 'OPTIN'}">
<h:form id="optincreate">
<a4j:region>
<a4j:include id="includeoptin" viewId="/forms/optincreate.xhtml"/>
</a4j:region>
</h:form>
</h:panelGroup>
<h:panelGroup rendered="#{action eq 'GLOBALOPTIN'}">
<h:form id="globaloptincreate">
<a4j:region>
<a4j:include id="includeglobal" viewId="/forms/globaloptinform.xhtml"/>
</a4j:region>
</h:form>
</h:panelGroup>
<h:panelGroup rendered="#{action eq 'OPTOUT'}">
<h:form id="optoutform">
<a4j:region>
<a4j:outputPanel style="float:right" >
<h:graphicImage value="../images/ico_tooltip.gif" />
<rich:toolTip direction="top-right" followMouse="true" showDelay="500" layout="block" styleClass="tooltip" value="#{tooltip['forms.optout']}"/>
<f:verbatim>Â </f:verbatim>
</a4j:outputPanel>
<h3>Update Opt-out Form</h3>
<h:outputLabel value="Opt Out Form Details" styleClass="headings" />
<h:panelGrid columns="2" border="0">
<h:outputLabel value="Confirmation Page : " styleClass="wizard"/><h:inputText value="#{formmanager.optoutForm.redirectUrl}" size="50"/>
<h:outputLabel value="Global Unsubscribe: " styleClass="wizard"/><h:selectBooleanCheckbox value="#{formmanager.globalUnsub}"/>
</h:panelGrid>
<a4j:commandButton value="Update Form" action="#{formmanager.updateOptOutForm}" reRender="optinfform" limitToList="true" oncomplete="#{rich:component('messagepanel')}.show()"/>
<f:verbatim>Â Â </f:verbatim>
<a4j:commandButton value="Cancel" action="#{formmanager.cancel}" reRender="formpanelgroup"/>
</a4j:region>
</h:form>
</h:panelGroup>
<h:panelGroup rendered="#{action eq 'FORWARD'}">
<h:form id="forwardform">
<a4j:region>
<a4j:outputPanel style="float:right" >
<h:graphicImage value="../images/ico_tooltip.gif" />
<rich:toolTip direction="bottom-left" followMouse="true" showDelay="500" layout="block" styleClass="tooltip" value="#{tooltip['forms.forward']}"/>
<f:verbatim>Â </f:verbatim>
</a4j:outputPanel>
<h3>Update Forward to a Friend Form</h3>
<h:outputLabel value="Forward Form Details" styleClass="headings" />
<h:panelGrid columns="2" border="0">
<h:outputLabel value="Form Content: " styleClass="wizard"/>
<h:inputTextarea id="formtext" value="#{formmanager.forwardForm.formContent}" cols="100" rows="10" />
<h:outputLabel value="Initial Page : " styleClass="wizard"/><h:inputText value="#{formmanager.forwardForm.redirectUrl}" size="50"/>
<h:outputLabel value="Final Page : " styleClass="wizard"/><h:inputText value="#{formmanager.forwardForm.finalUrl}" size="50"/>
</h:panelGrid>
<h:commandButton value="Preview" onmousedown="getFormContent()" onclick="preview_form()" />
<f:verbatim>Â Â </f:verbatim>
<a4j:commandButton value="Update Form" action="#{formmanager.updateForwardForm}" reRender="optinfform" limitToList="true" oncomplete="#{rich:component('messagepanel')}.show()"/>
<f:verbatim>Â Â </f:verbatim>
<a4j:commandButton value="Cancel" action="#{formmanager.cancel}" reRender="formpanelgroup"/>
</a4j:region>
</h:form>
</h:panelGroup>
</a4j:outputPanel>
thanks
Balaji