Author: ppitonak(a)redhat.com
Date: 2011-03-16 05:30:52 -0400 (Wed, 16 Mar 2011)
New Revision: 22240
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/formInsidePanel.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml
Log:
sample for popup panel updated
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/formInsidePanel.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/formInsidePanel.xhtml 2011-03-16
05:20:46 UTC (rev 22239)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/formInsidePanel.xhtml 2011-03-16
09:30:52 UTC (rev 22240)
@@ -37,6 +37,17 @@
</ui:define>
<ui:define name="component">
+ domElementAttachment:
+ <h:selectOneRadio id="attachmentInput"
value="#{richPopupPanelBean.attributes['domElementAttachment'].value}">
+ <f:selectItem itemValue="" itemLabel="null"/>
+ <f:selectItem itemValue="body"
itemLabel="body"/>
+ <f:selectItem itemValue="form"
itemLabel="form"/>
+ <f:selectItem itemValue="parent"
itemLabel="parent"/>
+ <a4j:ajax event="change" render="popupPanel"/>
+ </h:selectOneRadio>
+
+ <br/><br/>
+
input1 <h:inputText id="input1"
value="#{richPopupPanelBean.value1}"/>
<br/><br/>
@@ -45,7 +56,8 @@
<rich:componentControl target="popupPanel"
operation="show" />
</h:commandButton>
- <rich:popupPanel id="popupPanel" modal="true"
header="header">
+ <rich:popupPanel id="popupPanel" header="header"
+
domElementAttachment="#{richPopupPanelBean.attributes['domElementAttachment'].value}">
<f:facet name="controls">
<h:outputLink value="#"
onclick="#{rich:component('popupPanel')}.hide(); return
false;">X</h:outputLink>
</f:facet>
@@ -55,7 +67,7 @@
input3 <h:inputText id="input3"
value="#{richPopupPanelBean.value3}"/>
</h:panelGrid>
- <a4j:commandButton action="#{richPopupPanelBean.save}"
value="Save"
+ <a4j:commandButton action="#{richPopupPanelBean.save}"
value="Save"
render="output1 output2 output3"
execute="input1 input2 input3"/>
</rich:popupPanel>
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml 2011-03-16
05:20:46 UTC (rev 22239)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richPopupPanel/list.xhtml 2011-03-16
09:30:52 UTC (rev 22240)
@@ -39,6 +39,10 @@
Simple page that contains a <b>rich:popupPanel</b> outside
form and input boxes for all its attributes.
</metamer:testPageLink>
+ <metamer:testPageLink id="formInsidePanel"
outcome="formInsidePanel" value="Inputs Inside">
+ Simple page that contains a <b>rich:popupPanel</b> with
several inputs inside.
+ </metamer:testPageLink>
+
</ui:define>
</ui:composition>
Show replies by date