-
1. Re: Richfaces 4, rich:popupPanel, autosize, and IE.
whistlinjoe Mar 28, 2012 5:06 PM (in response to whistlinjoe)Not sure why it cut my code snippet out....I hope this works:
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
template="/templates/noMenuLayout.xhtml">
<ui:define name="pageTitle">TEST</ui:define>
<ui:define name="content">
<a4j:outputPanel id="testGrid">
<h:form>
<h:panelGrid columns="1" width="100%">
<h:panelGrid columns="1" styleClass="center-content">
<h:outputText value="Hi from Test Page" />
</h:panelGrid>
<h:panelGrid columns="1" styleClass="center-content">
<a4j:commandButton execute="@this" render="testPopup" oncomplete="#{rich:component('testPopup')}.show();return false;" value="Test PopUp" />
</h:panelGrid>
</h:panelGrid>
<rich:popupPanel id="testPopup" domElementAttachment="form" modal="true" autosized="true" onmaskclick="#{rich:component('testPopup')}.hide()">
<f:facet name="header">
<h:outputText value="Test Popup" />
</f:facet>
<f:facet name="controls">
<h:outputLink value="#" onclick="#{rich:component('testPopup')}.hide(); return false;">X</h:outputLink>
</f:facet>
<h:panelGrid columns="1">
<h:outputText value="Hi from Test Popup" />
</h:panelGrid>
<h:panelGrid columns="1" styleClass="center-content">
<a4j:commandButton render="testGrid" execute="testPopup" oncomplete="#{rich:component('testPopup')}.hide();" value="Ok"/>
</h:panelGrid>
</rich:popupPanel>
</h:form>
</a4j:outputPanel>
</ui:define>
</ui:composition>