2 Replies Latest reply on Mar 2, 2011 9:09 AM by Pradeep Nayak

    Popup not displayed at the center of the page in IE

    Pradeep Nayak Newbie

      I'm using richfaces4   M5 .

      I need  to display a popup on click of a  button.


      popup code is like this


                               <rich:popupPanel id="confirmation" domElementAttachment="parent"



                                          <h:panelGrid columns="2">

                                              <h:outputText value="#{label.PlanHist_Popup_msg}"

                                                  style="FONT-SIZE: large;" />



                                              <h:commandButton type="button"


                                                  styleClass="button buttonFormat"

                                                  onclick="#{rich:component('confirmation')}.hide();reverse(); return false;">



                              <h:commandButton type="button" value="#{label.PlanHist_Popup_N}"

                                                  styleClass="button buttonFormat"

                                                  onclick="#{rich:component('confirmation')}.hide();return false" />





      I invoke the popup like this


                                         <a4j:commandLink rendered="#{history.reversible}"


                                              <a4j:param value="#{history.txdId}"

                                                  assignTo="#{planHistoryUIBean.txnId}" />


                                              <h:graphicImage id="image2"


                                                  url="/images/u240.png" style="border:none;" />

                                              <h:outputText value="#{history.txdId}" />






      Popup is getting displayed properly in forefox.

      But in IE 7  its not displayed at the center of the page. Its getting displayed as a panal at the bottom of the page.

      Any idea am I doing something wrong ?