[
https://issues.jboss.org/browse/RF-11736?page=com.atlassian.jira.plugin.s...
]
Mahendher M commented on RF-11736:
----------------------------------
Hi All
I have found the solution for this problem , even i have faced same issue with
project ,then after googling a lot i have found out the solution in rich faces
http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=hashPar...
<!DOCTYPE html 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:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
<rich:popupPanel id="pp" resizeable="true" header="Popup
panel shown using rich:componentControl and rich:hashParam">
<f:facet name="controls">
<h:outputLink value="#"
onclick="#{rich:component('pp')}.hide(); return false;">
X
</h:outputLink>
</f:facet>
<h:outputText value="Settings applied by hashParam tag:" />
<h:panelGrid columns="2">
<h:outputText value="Width:" />
<h:outputText value="500" />
<h:outputText value="Height:" />
<h:outputText value="300" />
<h:outputText value="minWidth:" />
<h:outputText value="300" />
<h:outputText value="minHeight:" />
<h:outputText value="150" />
</h:panelGrid>
<p>The panel is getting centered by using:</p>
<p><a4j:param noEscape="true" name="left"
value="(window.width/2)-250"/></p>
<p><a4j:param noEscape="true" name="top"
value="(window.height/2)-150"/></p>
<fieldset>
<legend>
<b>NOTE:</b>
</legend>
<p>Notice that the show() api method requires an event parameter to be
first according to signature. So we
passed it before the hashParam.</p>
</fieldset>
</rich:popupPanel>
<h:commandButton value="Show popup">
<rich:componentControl target="pp" operation="show">
<a4j:param noEscape="true" value="event" />
<rich:hashParam>
<f:param name="width" value="500" />
<f:param name="height" value="300" />
<f:param name="minWidth" value="300" />
<f:param name="minHeight" value="150" />
<a4j:param noEscape="true" name="left"
value="(jQuery(window).width()/2)-250" />
<a4j:param noEscape="true" name="top"
value="(jQuery(window).height()/2)-150" />
</rich:hashParam>
</rich:componentControl>
</h:commandButton>
</ui:composition>
rich:popupPanel x domElementAttachment="parent"
-----------------------------------------------
Key: RF-11736
URL:
https://issues.jboss.org/browse/RF-11736
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-panels-layout-themes
Affects Versions: 4.0.0.Final
Environment: NetBeans 7.0.0 + GlassFish 3.1.1 + JSF2 + CDI + RF4 + Hibernate3
Reporter: Edilmar Alves
Fix For: 4.3-Tracking
rich:popupPanel repositions after second click when we use
domElementAttachment="parent"
--
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