[richfaces-issues] [JBoss JIRA] (RF-12217) At the second time popup not displayed at the center of the page (At first time popup is displayed properly)

Artur Mioduszewski (JIRA) jira-events at lists.jboss.org
Sat Apr 28 07:41:17 EDT 2012


     [ https://issues.jboss.org/browse/RF-12217?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Artur Mioduszewski updated RF-12217:
------------------------------------

    Workaround Description: 
I just have found workaround: 

Making <rich:popupPanel attribute domElementAttachment="form" solving problem. 

  was:Resignation from template usage :(

                Workaround: Workaround Exists

    
> At the second time popup not displayed at the center of the page (At first time popup is displayed properly)
> ------------------------------------------------------------------------------------------------------------
>
>                 Key: RF-12217
>                 URL: https://issues.jboss.org/browse/RF-12217
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-output
>    Affects Versions: 4.2.1.Final
>         Environment: JDK1.6,
> JBoss 6.0.Final,
> richfaces 4.1.0.Final/4.2.0.Final
> seam 3.1
> Chrome_18.0.1025.162, Firefox_12 (In Explorer 9.0 problem does not exist !!!!! )
>            Reporter: Artur Mioduszewski
>
> At the second time popup not displayed at the center of the page (At first time popup is displayed properly)
> Popup is populated in xhtml file started from <ui:composition tag inside <ui:define ...>
> (In Explorer 9.0 problem does not exist !!!!! )
> Something like below:
> {code:title=Example of xhtml file construction with populated popup}
>         <ui:composition template="/WEB-INF/content-pages/common/layout/template2.xhtml"
>                         xmlns="http://www.w3.org/1999/xhtml"
>                         xmlns:ui="http://java.sun.com/jsf/facelets"
>                         xmlns:rich="http://richfaces.org/rich"
>                         xmlns:a4j="http://richfaces.org/a4j"
>                 >
>             <ui:define name="content">
>                 <rich:panel>
>                     <f:facet name="header">
>                         <h:outputText
>                                 value="#{bundles.messages.header_addSurfaceDefaultMedia}"/>
>                     </f:facet>
>                     <a4j:commandLink styleClass="no-decor" render="addDefaultMediaGrid"
>                                      action="#{defaultMediaAction.initializePopup}" execute="@this"
>                                      oncomplete="#{rich:component('addDefaultMediaPane22')}.show();">
>                         <h:graphicImage value="/images/icons/new-ic.gif"
>                                         alt="#{bundles.messages.alt_new}"/>
>                     </a4j:commandLink>
>                 </rich:panel>
>                 <rich:popupPanel
>                         header="#{bundles.messages.popupHeader_addDefaultMediaFile}" id="addDefaultMediaPane22"
>                         domElementAttachment="parent"
>                         width="580"
>                         height="530" modal="true" resizeable="false" moveable="true">
>                     <a4j:commandButton value="#{bundles.messages.button_cancelClose}"
>                                        action="#{defaultMediaAction.cancelSaveDefaultFiles}"
>                                        render="groupedDefaultMediaFilesTableId"
>                                        onclick="#{rich:component('addDefaultMediaPane22')}.hide(); return false;"/>
>                 </rich:popupPanel>
>             </ui:define>
>         </ui:composition>
> {code}
> How to force displaying popup always at the center of page ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list