modalPanel doesn't work in 3.1.4 on Firefox
todd.nash Mar 4, 2008 10:56 PMWe attempted to upgrade to 3.1.4 only to find that none of our modal panels worked anymore. We have only tested this on firefox, to date.
Our aplication uses Seam 2.0.1GA on JBoss 4.2.2.
I created a simple page with a modal panel for someone to test.
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:s="http://jboss.com/products/seam/taglib" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:rich="http://richfaces.ajax4jsf.org/rich" xmlns:f="http://java.sun.com/jsf/core" xmlns:a4j="http://richfaces.org/a4j" template="../layout/template.xhtml"> <a4j:loadStyle src="/stylesheet/er2.css"/> <ui:define name="body"> <rich:panel headerClass="sub_portlet_header" styleClass="sub_portlet_header"> <f:facet name="header"> <h:outputText value="Modal Panel Example"/> </f:facet> <rich:panel> <f:facet name="header"> <h:panelGroup> <h:outputText id="portletTitle_expanded" value="#{PortletManager.documentListTitle}" style="font-weight: bold;"/> </h:panelGroup> </f:facet> <h:panelGrid columns="1" style="width: 300px;"> <rich:panel headerClass="portlet_header" styleClass="rich-panel-body"> <f:facet name="header"> <h:outputText value="ER recommends you upload the following documents:"/> </f:facet> <rich:panel headerClass="sub_portlet_header_ppt" styleClass="rich_panel_no_border"> <a4j:form id="recommendedDocumentsForm"> <h:panelGrid columns="1"> <s:formattedText value=" "/> <ui:repeat var="recommendedDocument" value="#{RecommendedDocumentList.resultList}"> <h:panelGroup> <s:link value="#{recommendedDocument.title}" view="/documents/#{recommendedDocument.viewPage}.xhtml" style="text-decoration: none; text-align: right; width: 100%; padding-right: 5px;"> <f:param name="recommendedDocumentId" value="#{recommendedDocument.id}"/> <f:param name="title" value="#{recommendedDocument.title}"/> </s:link> - Click here to add<br/> </h:panelGroup> </ui:repeat> </h:panelGrid> </a4j:form> <s:formattedText value=" "/> <h:panelGrid styleClass="centeredButtonPanel" cellpadding="0" cellspacing="0" width="100%"> <f:verbatim> <a href="javascript:Richfaces.showModalPanel('birthcertpanel',{left:'auto', top:'auto'})"> Add New Document</a> </f:verbatim> </h:panelGrid> </rich:panel> </rich:panel> </h:panelGrid> </rich:panel> <h:panelGroup> <!-- Define javascript method for invoking the modal panel --> <f:verbatim> <a href="javascript:Richfaces.showModalPanel('birthcertpanel',{left:'auto', top:'auto'})">Show Modal Panel (via javascript)</a> </f:verbatim> <!--- End modal panel invocation link --> </h:panelGroup> <ui:include src="birthCertificatePanel.xhtml"/> </rich:panel> </ui:define> </ui:composition>