Author: ppitonak(a)redhat.com
Date: 2010-08-17 07:48:36 -0400 (Tue, 17 Aug 2010)
New Revision: 18703
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/outsideForm.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/simple.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
Log:
https://jira.jboss.org/browse/RFPL-676
* added two pages for rich:popupPanel
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-08-17
11:21:01 UTC (rev 18702)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-08-17
11:48:36 UTC (rev 18703)
@@ -117,6 +117,7 @@
components.put("richJQuery", "Rich jQuery");
components.put("richList", "Rich List");
components.put("richPanel", "Rich Panel");
+ components.put("richPopupPanel", "Rich Popup Panel");
components.put("richSubTable", "Rich Subtable");
components.put("richSubTableToggleControl", "Rich Subtable Toggle
Control");
components.put("richToggleControl", "Rich Toggle Control");
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java 2010-08-17
11:48:36 UTC (rev 18703)
@@ -0,0 +1,82 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.bean;
+
+import java.io.Serializable;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.SessionScoped;
+import org.richfaces.component.UIPopupPanel;
+
+import org.richfaces.tests.metamer.Attributes;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * Managed bean for rich:popupPanel.
+ *
+ * @author <a href="mailto:ppitonak@redhat.com">Pavol Pitonak</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "richPopupPanelBean")
+@SessionScoped
+public class RichPopupPanelBean implements Serializable {
+
+ private static final long serialVersionUID = -1L;
+ private static Logger logger;
+ private Attributes attributes;
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(getClass());
+ logger.debug("initializing bean " + getClass().getName());
+
+ attributes = Attributes.getUIComponentAttributes(UIPopupPanel.class,
getClass());
+
+ attributes.setAttribute("header", "popup panel header");
+ attributes.setAttribute("height", 300);
+ attributes.setAttribute("left", "auto");
+ attributes.setAttribute("maxHeight", 500);
+ attributes.setAttribute("maxWidth", 500);
+ attributes.setAttribute("minHeight", 300);
+ attributes.setAttribute("minWidth", 300);
+ attributes.setAttribute("moveable", true);
+ attributes.setAttribute("rendered", true);
+ attributes.setAttribute("resizeable", true);
+ attributes.setAttribute("top", "auto");
+ attributes.setAttribute("trimOverlayedElements", true);
+ attributes.setAttribute("width", 500);
+
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+}
Property changes on:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichPopupPanelBean.java
___________________________________________________________________
Name: svn:keywords
+ Revision
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml 2010-08-17
11:48:36 UTC (rev 18703)
@@ -0,0 +1,45 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <ui:composition template="/templates/list.xhtml">
+
+ <ui:define name="pageTitle">Rich Popup Panel</ui:define>
+
+ <ui:define name="links">
+
+ <metamer:testPageLink id="simple" outcome="simple"
value="Simple">
+ Simple page that contains a <b>rich:popupPanel</b> and input
boxes for all its attributes.
+ </metamer:testPageLink>
+
+ <metamer:testPageLink id="outsideForm"
outcome="outsideForm" value="Outside Form">
+ Simple page that contains a <b>rich:popupPanel</b> outside
form and input boxes for all its attributes.
+ </metamer:testPageLink>
+
+ </ui:define>
+
+ </ui:composition>
+
+</html>
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/outsideForm.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/outsideForm.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/outsideForm.xhtml 2010-08-17
11:48:36 UTC (rev 18703)
@@ -0,0 +1,123 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
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:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:c="http://java.sun.com/jsp/jstl/core">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ <c:set var="dontRenderForm" value="#{true}"/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:commandButton value="Call the popup">
+ <rich:componentControl target="popupPanel"
operation="show" />
+ </h:commandButton>
+
+ <rich:popupPanel id="popupPanel"
+
ZIndex="#{richPopupPanelBean.attributes['ZIndex'].value}"
+
autosized="#{richPopupPanelBean.attributes['autosized'].value}"
+
controlsClass="#{richPopupPanelBean.attributes['controlsClass'].value}"
+
domElementAttachment="#{richPopupPanelBean.attributes['domElementAttachment'].value}"
+
followByScroll="#{richPopupPanelBean.attributes['followByScroll'].value}"
+
header="#{richPopupPanelBean.attributes['header'].value}"
+
headerClass="#{richPopupPanelBean.attributes['headerClass'].value}"
+
height="#{richPopupPanelBean.attributes['height'].value}"
+
keepVisualState="#{richPopupPanelBean.attributes['keepVisualState'].value}"
+
left="#{richPopupPanelBean.attributes['left'].value}"
+
maxHeight="#{richPopupPanelBean.attributes['maxHeight'].value}"
+
maxWidth="#{richPopupPanelBean.attributes['maxWidht'].value}"
+
minHeight="#{richPopupPanelBean.attributes['minHeight'].value}"
+
minWidht="#{richPopupPanelBean.attributes['minWidht'].value}"
+
modal="#{richPopupPanelBean.attributes['modal'].value}"
+
moveable="#{richPopupPanelBean.attributes['moveable'].value}"
+ onbeforehide =
"#{richPopupPanelBean.attributes['onbeforehide'].value}"
+ onbeforeshow =
"#{richPopupPanelBean.attributes['onbeforeshow'].value}"
+ onhide =
"#{richPopupPanelBean.attributes['onhide'].value}"
+ onmaskclick =
"#{richPopupPanelBean.attributes['onmaskclick'].value}"
+ onmaskcontextmenu =
"#{richPopupPanelBean.attributes['onmaskcontextmenu'].value}"
+ onmaskdblclick =
"#{richPopupPanelBean.attributes['onmaskdblclick'].value}"
+ onmaskmousedown =
"#{richPopupPanelBean.attributes['onmaskmousedown'].value}"
+ onmaskmousemove =
"#{richPopupPanelBean.attributes['onmaskmousemove'].value}"
+ onmaskmouseout =
"#{richPopupPanelBean.attributes['onmaskmouseout'].value}"
+ onmaskmouseover =
"#{richPopupPanelBean.attributes['onmaskmouseover'].value}"
+ onmaskmouseup =
"#{richPopupPanelBean.attributes['onmaskmouseup'].value}"
+ onmove =
"#{richPopupPanelBean.attributes['onmove'].value}"
+ onresize =
"#{richPopupPanelBean.attributes['onresize'].value}"
+ onshow =
"#{richPopupPanelBean.attributes['onshow'].value}"
+
overlapEmbedObjects="#{richPopupPanelBean.attributes['overlapEmbedObjects'].value}"
+
rendered="#{richPopupPanelBean.attributes['rendered'].value}"
+
resizeable="#{richPopupPanelBean.attributes['resizeable'].value}"
+
shadowDepth="#{richPopupPanelBean.attributes['shadowDepth'].value}"
+
shadowOpacity="#{richPopupPanelBean.attributes['shadowOpacity'].value}"
+
show="#{richPopupPanelBean.attributes['show'].value}"
+
top="#{richPopupPanelBean.attributes['top'].value}"
+
trimOverlayedElements="#{richPopupPanelBean.attributes['trimOverlayedElements'].value}"
+
visualOptions="#{richPopupPanelBean.attributes['visualOptions'].value}"
+
width="#{richPopupPanelBean.attributes['width'].value}"
+ >
+ <f:facet name="controls">
+ <h:outputLink value="#"
onclick="#{rich:component('popupPanel')}.hide(); return
false;">X</h:outputLink>
+ </f:facet>
+
+ <p>
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
bibendum magna non
+ justo eleifend ullamcorper. Nulla id libero consectetur mauris rutrum
tincidunt. Vestibulum
+ nibh elit, aliquam eget aliquet non, consequat cursus odio. Aenean et
libero et lorem sollicitudin
+ ultrices ullamcorper nec odio. Etiam enim sapien, pellentesque at
cursus ut, commodo ut tortor.
+ Proin ut urna et risus varius lobortis eget in urna. Integer vitae
tortor quis purus volutpat aliquet.
+ Maecenas ultrices magna placerat elit pretium varius. Etiam vitae
metus orci, non laoreet metus.
+ Fusce velit lectus, feugiat ullamcorper dictum ut, egestas quis ante.
Nulla a ante in ligula euismod
+ ullamcorper nec pulvinar diam. Mauris vitae diam nec diam imperdiet
suscipit in ac sem. In hac habitasse
+ platea dictumst. Suspendisse potenti. Ut consectetur, elit in blandit
consequat, neque orci aliquet
+ ligula, sit amet sagittis sapien velit a ante. Phasellus mollis, urna
sit amet congue ultrices, tortor
+ quam viverra metus, nec ornare nunc mi vitae lacus. Proin quis lectus
nunc, id accumsan elit. Donec
+ vitae lorem ac diam molestie condimentum. Suspendisse tempor orci a
ligula condimentum non congue
+ urna facilisis.
+
+ <br/>
+
+ <a href="#"
onclick="#{rich:component('popupPanel')}.hide()">hide this
panel</a>
+ </p>
+ </rich:popupPanel>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <h:form id="form">
+ <metamer:attributes value="#{richPopupPanelBean.attributes}"
id="attributes" render="log"/>
+ </h:form>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file
Added:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/simple.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/simple.xhtml 2010-08-17
11:48:36 UTC (rev 18703)
@@ -0,0 +1,119 @@
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+-->
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
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:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:rich="http://richfaces.org/rich">
+
+ <ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+ <h:commandButton value="Call the popup">
+ <rich:componentControl target="popupPanel"
operation="show" />
+ </h:commandButton>
+
+ <rich:popupPanel id="popupPanel"
+
ZIndex="#{richPopupPanelBean.attributes['ZIndex'].value}"
+
autosized="#{richPopupPanelBean.attributes['autosized'].value}"
+
controlsClass="#{richPopupPanelBean.attributes['controlsClass'].value}"
+
domElementAttachment="#{richPopupPanelBean.attributes['domElementAttachment'].value}"
+
followByScroll="#{richPopupPanelBean.attributes['followByScroll'].value}"
+
header="#{richPopupPanelBean.attributes['header'].value}"
+
headerClass="#{richPopupPanelBean.attributes['headerClass'].value}"
+
height="#{richPopupPanelBean.attributes['height'].value}"
+
keepVisualState="#{richPopupPanelBean.attributes['keepVisualState'].value}"
+
left="#{richPopupPanelBean.attributes['left'].value}"
+
maxHeight="#{richPopupPanelBean.attributes['maxHeight'].value}"
+
maxWidth="#{richPopupPanelBean.attributes['maxWidht'].value}"
+
minHeight="#{richPopupPanelBean.attributes['minHeight'].value}"
+
minWidht="#{richPopupPanelBean.attributes['minWidht'].value}"
+
modal="#{richPopupPanelBean.attributes['modal'].value}"
+
moveable="#{richPopupPanelBean.attributes['moveable'].value}"
+
onbeforehide="#{richPopupPanelBean.attributes['onbeforehide'].value}"
+
onbeforeshow="#{richPopupPanelBean.attributes['onbeforeshow'].value}"
+
onhide="#{richPopupPanelBean.attributes['onhide'].value}"
+
onmaskclick="#{richPopupPanelBean.attributes['onmaskclick'].value}"
+
onmaskcontextmenu="#{richPopupPanelBean.attributes['onmaskcontextmenu'].value}"
+
onmaskdblclick="#{richPopupPanelBean.attributes['onmaskdblclick'].value}"
+
onmaskmousedown="#{richPopupPanelBean.attributes['onmaskmousedown'].value}"
+
onmaskmousemove="#{richPopupPanelBean.attributes['onmaskmousemove'].value}"
+
onmaskmouseout="#{richPopupPanelBean.attributes['onmaskmouseout'].value}"
+
onmaskmouseover="#{richPopupPanelBean.attributes['onmaskmouseover'].value}"
+
onmaskmouseup="#{richPopupPanelBean.attributes['onmaskmouseup'].value}"
+
onmove="#{richPopupPanelBean.attributes['onmove'].value}"
+
onresize="#{richPopupPanelBean.attributes['onresize'].value}"
+
onshow="#{richPopupPanelBean.attributes['onshow'].value}"
+
overlapEmbedObjects="#{richPopupPanelBean.attributes['overlapEmbedObjects'].value}"
+
rendered="#{richPopupPanelBean.attributes['rendered'].value}"
+
resizeable="#{richPopupPanelBean.attributes['resizeable'].value}"
+
shadowDepth="#{richPopupPanelBean.attributes['shadowDepth'].value}"
+
shadowOpacity="#{richPopupPanelBean.attributes['shadowOpacity'].value}"
+
show="#{richPopupPanelBean.attributes['show'].value}"
+
top="#{richPopupPanelBean.attributes['top'].value}"
+
trimOverlayedElements="#{richPopupPanelBean.attributes['trimOverlayedElements'].value}"
+
visualOptions="#{richPopupPanelBean.attributes['visualOptions'].value}"
+
width="#{richPopupPanelBean.attributes['width'].value}"
+ >
+ <f:facet name="controls">
+ <h:outputLink value="#"
onclick="#{rich:component('popupPanel')}.hide(); return
false;">X</h:outputLink>
+ </f:facet>
+
+ <p>
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum
bibendum magna non
+ justo eleifend ullamcorper. Nulla id libero consectetur mauris rutrum
tincidunt. Vestibulum
+ nibh elit, aliquam eget aliquet non, consequat cursus odio. Aenean et
libero et lorem sollicitudin
+ ultrices ullamcorper nec odio. Etiam enim sapien, pellentesque at
cursus ut, commodo ut tortor.
+ Proin ut urna et risus varius lobortis eget in urna. Integer vitae
tortor quis purus volutpat aliquet.
+ Maecenas ultrices magna placerat elit pretium varius. Etiam vitae
metus orci, non laoreet metus.
+ Fusce velit lectus, feugiat ullamcorper dictum ut, egestas quis ante.
Nulla a ante in ligula euismod
+ ullamcorper nec pulvinar diam. Mauris vitae diam nec diam imperdiet
suscipit in ac sem. In hac habitasse
+ platea dictumst. Suspendisse potenti. Ut consectetur, elit in blandit
consequat, neque orci aliquet
+ ligula, sit amet sagittis sapien velit a ante. Phasellus mollis, urna
sit amet congue ultrices, tortor
+ quam viverra metus, nec ornare nunc mi vitae lacus. Proin quis lectus
nunc, id accumsan elit. Donec
+ vitae lorem ac diam molestie condimentum. Suspendisse tempor orci a
ligula condimentum non congue
+ urna facilisis.
+
+ <br/>
+
+ <a href="#"
onclick="#{rich:component('popupPanel')}.hide()">hide this
panel</a>
+ </p>
+ </rich:popupPanel>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <metamer:attributes value="#{richPopupPanelBean.attributes}"
id="attributes" render="log"/>
+ </ui:define>
+
+ </ui:composition>
+</html>
\ No newline at end of file