Author: jpapouse
Date: 2011-10-20 05:00:54 -0400 (Thu, 20 Oct 2011)
New Revision: 22830
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/moreStacks.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/validation.xhtml
Log:
fixed samples for notify component
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/moreStacks.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/moreStacks.xhtml 2011-10-19
21:20:04 UTC (rev 22829)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/moreStacks.xhtml 2011-10-20
09:00:54 UTC (rev 22830)
@@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!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:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">>
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich">
+>
- <!--
+<!--
JBoss, Home of Professional Open Source
Copyright 2010-2011, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
@@ -26,142 +27,122 @@
02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-->
- <ui:composition template="/templates/template.xhtml">
-
- <ui:define name="view">
- <f:metadata>
- <f:viewParam name="templates"
value="#{templateBean.templates}">
- <f:converter converterId="templatesListConverter" />
- </f:viewParam>
- </f:metadata>
- </ui:define>
-
- <ui:define name="component">
- <h:form>
- <rich:notifyMessages ajaxRendered="true"
-
animationSpeed="#{notifyBean.attributesNotifyMessages['animationSpeed'].value}"
-
appearAnimation="#{notifyBean.attributesNotifyMessages['appearAnimation'].value}"
-
delay="#{notifyBean.attributesNotifyMessages['delay'].value}"
- execute="{@form}"
- for="number1"
-
globalOnly="#{notifyBean.attributesNotifyMessages['delay'].value}"
-
hideAnimation="#{notifyBean.attributesNotifyMessages['hideAnimation'].value}"
-
keepTransient="#{notifyBean.attributesNotifyMessages['keepTransient'].value}"
-
interval="#{notifyBean.attributesNotifyMessages['interval'].value}"
-
nonblocking="#{notifyBean.attributesNotifyMessages['nonBlocking'].value}"
-
nonblockingOpacity="#{notifyBean.attributesNotifyMessages['nonBlockingOpacity'].value}"
-
rendered="#{notifyBean.attributesNotifyMessages['rendered'].value}"
-
showCloseButton="#{notifyBean.attributesNotifyMessages['showCloseButton'].value}"
-
showDetail="#{notifyBean.attributesNotifyMessages['showDetail'].value}"
-
showHistory="#{notifyBean.attributesNotifyMessages['showHistory'].value}"
-
showShadow="#{notifyBean.attributesNotifyMessages['showShadow'].value}"
-
showSummary="#{notifyBean.attributesNotifyMessages['showSummary'].value}"
- stack="topRightStack"
-
stayTime="#{notifyBean.attributesNotifyMessages['stayTime'].value}"
-
sticky="#{notifyBean.attributesNotifyMessages['sticky'].value}"
-
styleClass="#{notifyBean.attributesNotifyMessages['styleClass'].value}"
- />
- <rich:notifyMessages ajaxRendered="true"
-
animationSpeed="#{notifyBean.attributesNotifyMessages['animationSpeed'].value}"
-
appearAnimation="#{notifyBean.attributesNotifyMessages['appearAnimation'].value}"
-
delay="#{notifyBean.attributesNotifyMessages['delay'].value}"
- execute="{@form}"
- for="number2"
-
globalOnly="#{notifyBean.attributesNotifyMessages['delay'].value}"
-
hideAnimation="#{notifyBean.attributesNotifyMessages['hideAnimation'].value}"
-
keepTransient="#{notifyBean.attributesNotifyMessages['keepTransient'].value}"
-
interval="#{notifyBean.attributesNotifyMessages['interval'].value}"
-
nonblocking="#{notifyBean.attributesNotifyMessages['nonBlocking'].value}"
-
nonblockingOpacity="#{notifyBean.attributesNotifyMessages['nonBlockingOpacity'].value}"
-
rendered="#{notifyBean.attributesNotifyMessages['rendered'].value}"
-
showCloseButton="#{notifyBean.attributesNotifyMessages['showCloseButton'].value}"
-
showDetail="#{notifyBean.attributesNotifyMessages['showDetail'].value}"
-
showHistory="#{notifyBean.attributesNotifyMessages['showHistory'].value}"
-
showShadow="#{notifyBean.attributesNotifyMessages['showShadow'].value}"
-
showSummary="#{notifyBean.attributesNotifyMessages['showSummary'].value}"
- stack="bottomRightStack"
-
stayTime="#{notifyBean.attributesNotifyMessages['stayTime'].value}"
-
sticky="#{notifyBean.attributesNotifyMessages['sticky'].value}"
-
styleClass="#{notifyBean.attributesNotifyMessages['styleClass'].value}"
- />
-
- <rich:notify
animationSpeed="#{notifyBean.attributesNotify['animationSpeed'].value}"
-
appearAnimation="#{notifyBean.attributesNotify['appearAnimation'].value}"
- detail="Stack 2 -
#{notifyBean.attributesNotify['detail'].value}"
-
delay="#{notifyBean.attributesNotify['delay'].value}"
-
hideAnimation="#{notifyBean.attributesNotify['hideAnimation'].value}"
-
nonblocking="#{notifyBean.attributesNotify['nonBlocking'].value}"
-
nonblockingOpacity="#{notifyBean.attributesNotify['nonBlockingOpacity'].value}"
-
rendered="#{notifyBean.attributesNotify['rendered'].value}"
-
showCloseButton="#{notifyBean.attributesNotify['showCloseButton'].value}"
-
showHistory="#{notifyBean.attributesNotify['showHistory'].value}"
-
showShadow="#{notifyBean.attributesNotify['showShadow'].value}"
- stack="topRightStack"
-
stayTime="#{notifyBean.attributesNotify['stayTime'].value}"
-
sticky="#{notifyBean.attributesNotify['sticky'].value}"
-
styleClass="#{notifyBean.attributesNotify['styleClass'].value}"
- summary="Stack 2 -
#{notifyBean.attributesNotify['summary'].value}"
- />
- <rich:notify
animationSpeed="#{notifyBean.attributesNotify['animationSpeed'].value}"
-
appearAnimation="#{notifyBean.attributesNotify['appearAnimation'].value}"
-
delay="#{notifyBean.attributesNotify['delay'].value}"
- detail="Stack 2 -
#{notifyBean.attributesNotify['detail'].value}"
-
hideAnimation="#{notifyBean.attributesNotify['hideAnimation'].value}"
-
nonblocking="#{notifyBean.attributesNotify['nonBlocking'].value}"
-
nonblockingOpacity="#{notifyBean.attributesNotify['nonBlockingOpacity'].value}"
-
rendered="#{notifyBean.attributesNotify['rendered'].value}"
-
showCloseButton="#{notifyBean.attributesNotify['showCloseButton'].value}"
-
showHistory="#{notifyBean.attributesNotify['showHistory'].value}"
-
showShadow="#{notifyBean.attributesNotify['showShadow'].value}"
- stack="bottomRightStack"
-
stayTime="#{notifyBean.attributesNotify['stayTime'].value}"
-
sticky="#{notifyBean.attributesNotify['sticky'].value}"
-
styleClass="#{notifyBean.attributesNotify['styleClass'].value}"
- summary="Stack 2 -
#{notifyBean.attributesNotify['summary'].value}"
- />
-
- <rich:notifyStack id="topRightStack"
-
direction="#{notifyBean.attributesNotifyStackFirst['direction'].value}"
-
method="#{notifyBean.attributesNotifyStackFirst['method'].value}"
-
position="#{notifyBean.attributesNotifyStackFirst['position'].value}"
-
rendered="#{notifyBean.attributesNotifyStackFirst['rendered'].value}"
-
styleClass="#{notifyBean.attributesNotifyStackFirst['styleClass'].value}"
- />
-
- <rich:notifyStack id="bottomRightStack"
-
direction="#{notifyBean.attributesNotifyStackSecond['direction'].value}"
-
method="#{notifyBean.attributesNotifyStackSecond['method'].value}"
-
position="#{notifyBean.attributesNotifyStackSecond['position'].value}"
-
rendered="#{notifyBean.attributesNotifyStackSecond['rendered'].value}"
-
styleClass="#{notifyBean.attributesNotifyStackSecond['styleClass'].value}"
- />
-
- <h:outputLabel for="number1" value="Number for Stack 1
(from 5 to 10)"/>
- <h:inputText id="number1" required="true">
- <f:validateLongRange minimum="5"
maximum="10"/>
- </h:inputText>
- <br />
- <h:outputLabel for="number2" value="Number for Stack 2
(from 5 to 10)"/>
- <h:inputText id="number2" required="true">
- <f:validateLongRange minimum="5"
maximum="10"/>
- </h:inputText>
- <br />
- <h:commandButton action="@form" value="h:commandButton
Submit" id="hCommandButtonSubmit" />
- <a4j:commandButton action="@form"
value="a4j:commandButton Submit" id="a4jCommandButtonSubmit" />
-
- </h:form>
- </ui:define>
-
- <ui:define name="outOfTemplateAfter">
- <h2>Attributes - Notify</h2>
- <metamer:attributes value="#{notifyBean.attributesNotify}"
id="attributesNotify" render="panel"/>
- <h2>Attributes - Notify Messages</h2>
- <metamer:attributes
value="#{notifyBean.attributesNotifyMessages}"
id="attributesNotifyMessages" render="panel"/>
- <h2>Attributes - Notify Stack 1</h2>
- <metamer:attributes
value="#{notifyBean.attributesNotifyStackFirst}"
id="attributesNotifyStack1" render="panel"/>
- <h2>Attributes - Notify Stack 2</h2>
- <metamer:attributes
value="#{notifyBean.attributesNotifyStackSecond}"
id="attributesNotifyStack2" render="panel"/>
- </ui:define>
- </ui:composition>
-
+<ui:composition template="/templates/template.xhtml">
+
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:notifyMessages
animationSpeed="#{notifyBean.attributesNotifyMessages['animationSpeed'].value}"
+
appearAnimation="#{notifyBean.attributesNotifyMessages['appearAnimation'].value}"
+
delay="#{notifyBean.attributesNotifyMessages['delay'].value}"
execute="{@form}" for="number1"
+
globalOnly="#{notifyBean.attributesNotifyMessages['delay'].value}"
+
hideAnimation="#{notifyBean.attributesNotifyMessages['hideAnimation'].value}"
+
keepTransient="#{notifyBean.attributesNotifyMessages['keepTransient'].value}"
+
interval="#{notifyBean.attributesNotifyMessages['interval'].value}"
+
nonblocking="#{notifyBean.attributesNotifyMessages['nonBlocking'].value}"
+
nonblockingOpacity="#{notifyBean.attributesNotifyMessages['nonBlockingOpacity'].value}"
+
rendered="#{notifyBean.attributesNotifyMessages['rendered'].value}"
+
showCloseButton="#{notifyBean.attributesNotifyMessages['showCloseButton'].value}"
+
showDetail="#{notifyBean.attributesNotifyMessages['showDetail'].value}"
+
showHistory="#{notifyBean.attributesNotifyMessages['showHistory'].value}"
+
showShadow="#{notifyBean.attributesNotifyMessages['showShadow'].value}"
+
showSummary="#{notifyBean.attributesNotifyMessages['showSummary'].value}"
stack="topRightStack"
+
stayTime="#{notifyBean.attributesNotifyMessages['stayTime'].value}"
+
sticky="#{notifyBean.attributesNotifyMessages['sticky'].value}"
+
styleClass="#{notifyBean.attributesNotifyMessages['styleClass'].value}"
/>
+ <rich:notifyMessages
animationSpeed="#{notifyBean.attributesNotifyMessages['animationSpeed'].value}"
+
appearAnimation="#{notifyBean.attributesNotifyMessages['appearAnimation'].value}"
+
delay="#{notifyBean.attributesNotifyMessages['delay'].value}"
execute="{@form}" for="number2"
+
globalOnly="#{notifyBean.attributesNotifyMessages['delay'].value}"
+
hideAnimation="#{notifyBean.attributesNotifyMessages['hideAnimation'].value}"
+
keepTransient="#{notifyBean.attributesNotifyMessages['keepTransient'].value}"
+
interval="#{notifyBean.attributesNotifyMessages['interval'].value}"
+
nonblocking="#{notifyBean.attributesNotifyMessages['nonBlocking'].value}"
+
nonblockingOpacity="#{notifyBean.attributesNotifyMessages['nonBlockingOpacity'].value}"
+
rendered="#{notifyBean.attributesNotifyMessages['rendered'].value}"
+
showCloseButton="#{notifyBean.attributesNotifyMessages['showCloseButton'].value}"
+
showDetail="#{notifyBean.attributesNotifyMessages['showDetail'].value}"
+
showHistory="#{notifyBean.attributesNotifyMessages['showHistory'].value}"
+
showShadow="#{notifyBean.attributesNotifyMessages['showShadow'].value}"
+
showSummary="#{notifyBean.attributesNotifyMessages['showSummary'].value}"
stack="bottomRightStack"
+
stayTime="#{notifyBean.attributesNotifyMessages['stayTime'].value}"
+
sticky="#{notifyBean.attributesNotifyMessages['sticky'].value}"
+
styleClass="#{notifyBean.attributesNotifyMessages['styleClass'].value}"
/>
+
+ <rich:notify
animationSpeed="#{notifyBean.attributesNotify['animationSpeed'].value}"
+
appearAnimation="#{notifyBean.attributesNotify['appearAnimation'].value}"
+ detail="Stack 2 -
#{notifyBean.attributesNotify['detail'].value}"
+
delay="#{notifyBean.attributesNotify['delay'].value}"
+
hideAnimation="#{notifyBean.attributesNotify['hideAnimation'].value}"
+
nonblocking="#{notifyBean.attributesNotify['nonBlocking'].value}"
+
nonblockingOpacity="#{notifyBean.attributesNotify['nonBlockingOpacity'].value}"
+
rendered="#{notifyBean.attributesNotify['rendered'].value}"
+
showCloseButton="#{notifyBean.attributesNotify['showCloseButton'].value}"
+
showHistory="#{notifyBean.attributesNotify['showHistory'].value}"
+
showShadow="#{notifyBean.attributesNotify['showShadow'].value}"
stack="topRightStack"
+
stayTime="#{notifyBean.attributesNotify['stayTime'].value}"
sticky="#{notifyBean.attributesNotify['sticky'].value}"
+
styleClass="#{notifyBean.attributesNotify['styleClass'].value}"
+ summary="Stack 2 -
#{notifyBean.attributesNotify['summary'].value}" />
+ <rich:notify
animationSpeed="#{notifyBean.attributesNotify['animationSpeed'].value}"
+
appearAnimation="#{notifyBean.attributesNotify['appearAnimation'].value}"
+
delay="#{notifyBean.attributesNotify['delay'].value}"
+ detail="Stack 2 -
#{notifyBean.attributesNotify['detail'].value}"
+
hideAnimation="#{notifyBean.attributesNotify['hideAnimation'].value}"
+
nonblocking="#{notifyBean.attributesNotify['nonBlocking'].value}"
+
nonblockingOpacity="#{notifyBean.attributesNotify['nonBlockingOpacity'].value}"
+
rendered="#{notifyBean.attributesNotify['rendered'].value}"
+
showCloseButton="#{notifyBean.attributesNotify['showCloseButton'].value}"
+
showHistory="#{notifyBean.attributesNotify['showHistory'].value}"
+
showShadow="#{notifyBean.attributesNotify['showShadow'].value}"
stack="bottomRightStack"
+
stayTime="#{notifyBean.attributesNotify['stayTime'].value}"
sticky="#{notifyBean.attributesNotify['sticky'].value}"
+
styleClass="#{notifyBean.attributesNotify['styleClass'].value}"
+ summary="Stack 2 -
#{notifyBean.attributesNotify['summary'].value}" />
+
+ <rich:notifyStack id="topRightStack"
direction="#{notifyBean.attributesNotifyStackFirst['direction'].value}"
+
method="#{notifyBean.attributesNotifyStackFirst['method'].value}"
+
position="#{notifyBean.attributesNotifyStackFirst['position'].value}"
+
rendered="#{notifyBean.attributesNotifyStackFirst['rendered'].value}"
+
styleClass="#{notifyBean.attributesNotifyStackFirst['styleClass'].value}"
/>
+
+ <rich:notifyStack id="bottomRightStack"
direction="#{notifyBean.attributesNotifyStackSecond['direction'].value}"
+
method="#{notifyBean.attributesNotifyStackSecond['method'].value}"
+
position="#{notifyBean.attributesNotifyStackSecond['position'].value}"
+
rendered="#{notifyBean.attributesNotifyStackSecond['rendered'].value}"
+
styleClass="#{notifyBean.attributesNotifyStackSecond['styleClass'].value}"
/>
+ <h:form>
+ <h:outputLabel for="number1" value="Number for Stack 1
(from 5 to 10)" />
+ <h:inputText id="number1" required="true">
+ <f:validateLongRange minimum="5" maximum="10"
/>
+ </h:inputText>
+ <br />
+ <h:outputLabel for="number2" value="Number for Stack 2
(from 5 to 10)" />
+ <h:inputText id="number2" required="true">
+ <f:validateLongRange minimum="5" maximum="10"
/>
+ </h:inputText>
+ <br />
+ <h:commandButton action="@form" value="h:commandButton
Submit" id="hCommandButtonSubmit" />
+ <a4j:commandButton action="@form" value="a4j:commandButton
Submit" id="a4jCommandButtonSubmit" />
+
+ </h:form>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <h2>Attributes - Notify</h2>
+ <metamer:attributes value="#{notifyBean.attributesNotify}"
id="attributesNotify" render="panel" />
+ <h2>Attributes - Notify Messages</h2>
+ <metamer:attributes value="#{notifyBean.attributesNotifyMessages}"
id="attributesNotifyMessages" render="panel" />
+ <h2>Attributes - Notify Stack 1</h2>
+ <metamer:attributes value="#{notifyBean.attributesNotifyStackFirst}"
id="attributesNotifyStack1" render="panel" />
+ <h2>Attributes - Notify Stack 2</h2>
+ <metamer:attributes
value="#{notifyBean.attributesNotifyStackSecond}"
id="attributesNotifyStack2" render="panel" />
+ </ui:define>
+</ui:composition>
+
</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/simple.xhtml 2011-10-19
21:20:04 UTC (rev 22829)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/simple.xhtml 2011-10-20
09:00:54 UTC (rev 22830)
@@ -38,57 +38,50 @@
</ui:define>
<ui:define name="component">
- <h:form>
- <a4j:outputPanel ajaxRendered="true">
-
- <rich:notifyStack id="exampleNotifyStack"
-
direction="#{notifyBean.attributesNotifyStackFirst['direction'].value}"
-
method="#{notifyBean.attributesNotifyStackFirst['method'].value}"
-
position="#{notifyBean.attributesNotifyStackFirst['position'].value}"
-
rendered="#{notifyBean.attributesNotifyStackFirst['rendered'].value}"
-
styleClass="#{notifyBean.attributesNotifyStackFirst['styleClass'].value}"
- />
- <rich:notify
animationSpeed="#{notifyBean.attributesNotify['animationSpeed'].value}"
-
appearAnimation="#{notifyBean.attributesNotify['appearAnimation'].value}"
-
delay="#{notifyBean.attributesNotify['delay'].value}"
-
detail="#{notifyBean.attributesNotify['detail'].value}"
-
hideAnimation="#{notifyBean.attributesNotify['hideAnimation'].value}"
-
nonblocking="#{notifyBean.attributesNotify['nonBlocking'].value}"
-
nonblockingOpacity="#{notifyBean.attributesNotify['nonBlockingOpacity'].value}"
-
rendered="#{notifyBean.attributesNotify['rendered'].value}"
-
showCloseButton="#{notifyBean.attributesNotify['showCloseButton'].value}"
-
showHistory="#{notifyBean.attributesNotify['showHistory'].value}"
-
showShadow="#{notifyBean.attributesNotify['showShadow'].value}"
- stack="exampleNotifyStack"
-
stayTime="#{notifyBean.attributesNotify['stayTime'].value}"
-
sticky="#{notifyBean.attributesNotify['sticky'].value}"
-
styleClass="#{notifyBean.attributesNotify['styleClass'].value}"
-
summary="#{notifyBean.attributesNotify['summary'].value}"
- />
- <rich:notifyMessages
animationSpeed="#{notifyBean.attributesNotifyMessages['animationSpeed'].value}"
-
appearAnimation="#{notifyBean.attributesNotifyMessages['appearAnimation'].value}"
-
delay="#{notifyBean.attributesNotifyMessages['delay'].value}"
- execute="{@form}"
-
for="#{notifyBean.attributesNotifyMessages['for'].value}"
-
globalOnly="#{notifyBean.attributesNotifyMessages['delay'].value}"
-
hideAnimation="#{notifyBean.attributesNotifyMessages['hideAnimation'].value}"
-
keepTransient="#{notifyBean.attributesNotifyMessages['keepTransient'].value}"
-
interval="#{notifyBean.attributesNotifyMessages['interval'].value}"
-
nonblocking="#{notifyBean.attributesNotifyMessages['nonBlocking'].value}"
-
nonblockingOpacity="#{notifyBean.attributesNotifyMessages['nonBlockingOpacity'].value}"
-
rendered="#{notifyBean.attributesNotifyMessages['rendered'].value}"
-
showCloseButton="#{notifyBean.attributesNotifyMessages['showCloseButton'].value}"
-
showDetail="#{notifyBean.attributesNotifyMessages['showDetail'].value}"
-
showHistory="#{notifyBean.attributesNotifyMessages['showHistory'].value}"
-
showShadow="#{notifyBean.attributesNotifyMessages['showShadow'].value}"
-
showSummary="#{notifyBean.attributesNotifyMessages['showSummary'].value}"
- stack="exampleNotifyStack"
-
stayTime="#{notifyBean.attributesNotifyMessages['stayTime'].value}"
-
sticky="#{notifyBean.attributesNotifyMessages['sticky'].value}"
-
styleClass="#{notifyBean.attributesNotifyMessages['styleClass'].value}"
- />
- </a4j:outputPanel>
- <a4j:commandButton id="produceError" value="Produce
Error" action="#{notifyBean.produceError}" execute="@form"/>
+
+ <a4j:outputPanel>
+
+ <rich:notifyStack id="exampleNotifyStack"
direction="#{notifyBean.attributesNotifyStackFirst['direction'].value}"
+
method="#{notifyBean.attributesNotifyStackFirst['method'].value}"
+
position="#{notifyBean.attributesNotifyStackFirst['position'].value}"
+
rendered="#{notifyBean.attributesNotifyStackFirst['rendered'].value}"
+
styleClass="#{notifyBean.attributesNotifyStackFirst['styleClass'].value}"
/>
+ <rich:notify
animationSpeed="#{notifyBean.attributesNotify['animationSpeed'].value}"
+
appearAnimation="#{notifyBean.attributesNotify['appearAnimation'].value}"
+
delay="#{notifyBean.attributesNotify['delay'].value}"
detail="#{notifyBean.attributesNotify['detail'].value}"
+
hideAnimation="#{notifyBean.attributesNotify['hideAnimation'].value}"
+
nonblocking="#{notifyBean.attributesNotify['nonBlocking'].value}"
+
nonblockingOpacity="#{notifyBean.attributesNotify['nonBlockingOpacity'].value}"
+
rendered="#{notifyBean.attributesNotify['rendered'].value}"
+
showCloseButton="#{notifyBean.attributesNotify['showCloseButton'].value}"
+
showHistory="#{notifyBean.attributesNotify['showHistory'].value}"
+
showShadow="#{notifyBean.attributesNotify['showShadow'].value}"
stack="exampleNotifyStack"
+
stayTime="#{notifyBean.attributesNotify['stayTime'].value}"
+
sticky="#{notifyBean.attributesNotify['sticky'].value}"
+
styleClass="#{notifyBean.attributesNotify['styleClass'].value}"
+
summary="#{notifyBean.attributesNotify['summary'].value}" />
+ <rich:notifyMessages
animationSpeed="#{notifyBean.attributesNotifyMessages['animationSpeed'].value}"
+
appearAnimation="#{notifyBean.attributesNotifyMessages['appearAnimation'].value}"
+
delay="#{notifyBean.attributesNotifyMessages['delay'].value}"
execute="{@form}"
+
for="#{notifyBean.attributesNotifyMessages['for'].value}"
+
globalOnly="#{notifyBean.attributesNotifyMessages['delay'].value}"
+
hideAnimation="#{notifyBean.attributesNotifyMessages['hideAnimation'].value}"
+
keepTransient="#{notifyBean.attributesNotifyMessages['keepTransient'].value}"
+
interval="#{notifyBean.attributesNotifyMessages['interval'].value}"
+
nonblocking="#{notifyBean.attributesNotifyMessages['nonBlocking'].value}"
+
nonblockingOpacity="#{notifyBean.attributesNotifyMessages['nonBlockingOpacity'].value}"
+
rendered="#{notifyBean.attributesNotifyMessages['rendered'].value}"
+
showCloseButton="#{notifyBean.attributesNotifyMessages['showCloseButton'].value}"
+
showDetail="#{notifyBean.attributesNotifyMessages['showDetail'].value}"
+
showHistory="#{notifyBean.attributesNotifyMessages['showHistory'].value}"
+
showShadow="#{notifyBean.attributesNotifyMessages['showShadow'].value}"
+
showSummary="#{notifyBean.attributesNotifyMessages['showSummary'].value}"
stack="exampleNotifyStack"
+
stayTime="#{notifyBean.attributesNotifyMessages['stayTime'].value}"
+
sticky="#{notifyBean.attributesNotifyMessages['sticky'].value}"
+
styleClass="#{notifyBean.attributesNotifyMessages['styleClass'].value}"
/>
+ </a4j:outputPanel>
+ <h:form>
+ <a4j:commandButton id="produceError" value="Produce
Error" action="#{notifyBean.produceError}" execute="@form" />
<a4j:commandButton id="produceFatal" value="Produce
Fatal" action="#{notifyBean.produceFatal}" execute="@form"/>
<a4j:commandButton id="produceInfo" value="Produce
Info" action="#{notifyBean.produceInfo}" execute="@form"/>
<a4j:commandButton id="produceWarn" value="Produce
Warn" action="#{notifyBean.produceWarn}" execute="@form"/>
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/validation.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/validation.xhtml 2011-10-19
21:20:04 UTC (rev 22829)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richNotify/validation.xhtml 2011-10-20
09:00:54 UTC (rev 22830)
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!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:rich="http://richfaces.org/rich"
-
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:a4j="http://richfaces.org/a4j">
+
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:rich="http://richfaces.org/rich"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
xmlns:a4j="http://richfaces.org/a4j">
- <!--
+<!--
JBoss, Home of Professional Open Source
Copyright 2010-2011, Red Hat, Inc. and individual contributors
by the @authors tag. See the copyright.txt in the distribution for a
@@ -26,84 +26,74 @@
02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-->
- <ui:composition template="/templates/template.xhtml">
+<ui:composition template="/templates/template.xhtml">
- <ui:define name="view">
- <f:metadata>
- <f:viewParam name="templates"
value="#{templateBean.templates}">
- <f:converter converterId="templatesListConverter" />
- </f:viewParam>
- </f:metadata>
- </ui:define>
+ <ui:define name="view">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ </f:metadata>
+ </ui:define>
- <ui:define name="component">
- <h:form>
- <rich:notifyMessages ajaxRendered="true"
-
animationSpeed="#{notifyBean.attributesNotifyMessages['animationSpeed'].value}"
-
appearAnimation="#{notifyBean.attributesNotifyMessages['appearAnimation'].value}"
-
delay="#{notifyBean.attributesNotifyMessages['delay'].value}"
- execute="{@form}"
- for="number"
-
globalOnly="#{notifyBean.attributesNotifyMessages['delay'].value}"
-
hideAnimation="#{notifyBean.attributesNotifyMessages['hideAnimation'].value}"
-
keepTransient="#{notifyBean.attributesNotifyMessages['keepTransient'].value}"
-
interval="#{notifyBean.attributesNotifyMessages['interval'].value}"
-
nonblocking="#{notifyBean.attributesNotifyMessages['nonBlocking'].value}"
-
nonblockingOpacity="#{notifyBean.attributesNotifyMessages['nonBlockingOpacity'].value}"
-
rendered="#{notifyBean.attributesNotifyMessages['rendered'].value}"
-
showCloseButton="#{notifyBean.attributesNotifyMessages['showCloseButton'].value}"
-
showDetail="#{notifyBean.attributesNotifyMessages['showDetail'].value}"
-
showHistory="#{notifyBean.attributesNotifyMessages['showHistory'].value}"
-
showShadow="#{notifyBean.attributesNotifyMessages['showShadow'].value}"
-
showSummary="#{notifyBean.attributesNotifyMessages['showSummary'].value}"
- stack="exampleNotifyStack"
-
stayTime="#{notifyBean.attributesNotifyMessages['stayTime'].value}"
-
sticky="#{notifyBean.attributesNotifyMessages['sticky'].value}"
-
styleClass="#{notifyBean.attributesNotifyMessages['styleClass'].value}"
- />
-
- <rich:notify
animationSpeed="#{notifyBean.attributesNotify['animationSpeed'].value}"
-
appearAnimation="#{notifyBean.attributesNotify['appearAnimation'].value}"
-
delay="#{notifyBean.attributesNotify['delay'].value}"
-
detail="#{notifyBean.attributesNotify['detail'].value}"
-
hideAnimation="#{notifyBean.attributesNotify['hideAnimation'].value}"
-
nonblocking="#{notifyBean.attributesNotify['nonBlocking'].value}"
-
nonblockingOpacity="#{notifyBean.attributesNotify['nonBlockingOpacity'].value}"
-
rendered="#{notifyBean.attributesNotify['rendered'].value}"
-
showCloseButton="#{notifyBean.attributesNotify['showCloseButton'].value}"
-
showHistory="#{notifyBean.attributesNotify['showHistory'].value}"
-
showShadow="#{notifyBean.attributesNotify['showShadow'].value}"
- stack="exampleNotifyStack"
-
stayTime="#{notifyBean.attributesNotify['stayTime'].value}"
-
sticky="#{notifyBean.attributesNotify['sticky'].value}"
-
styleClass="#{notifyBean.attributesNotify['styleClass'].value}"
- summary="
#{notifyBean.attributesNotify['title'].value}"
- />
-
- <rich:notifyStack id="exampleNotifyStack"
-
direction="#{notifyBean.attributesNotifyStackFirst['direction'].value}"
-
method="#{notifyBean.attributesNotifyStackFirst['method'].value}"
-
position="#{notifyBean.attributesNotifyStackFirst['position'].value}"
-
rendered="#{notifyBean.attributesNotifyStackFirst['rendered'].value}"
-
styleClass="#{notifyBean.attributesNotifyStackFirst['styleClass'].value}"
/>
-
- <h:outputLabel for="number" value="Number (from 5 to
10)"/>
- <h:inputText id="number" required="true">
- <f:validateLongRange minimum="5"
maximum="10"/>
- <a4j:ajax event="change" execute="@form"/>
- </h:inputText>
-
- </h:form>
- </ui:define>
-
- <ui:define name="outOfTemplateAfter">
- <h2>Attributes - Notify</h2>
- <metamer:attributes value="#{notifyBean.attributesNotify}"
id="attributesNotify" render="panel"/>
- <h2>Attributes - Notify Messages</h2>
- <metamer:attributes
value="#{notifyBean.attributesNotifyMessages}"
id="attributesNotifyMessages" render="panel"/>
- <h2>Attributes - Notify Stack</h2>
- <metamer:attributes
value="#{notifyBean.attributesNotifyStackFirst}"
id="attributesNotifyStack" render="panel"/>
- </ui:define>
- </ui:composition>
-
+ <ui:define name="component">
+
+ <rich:notifyMessages
animationSpeed="#{notifyBean.attributesNotifyMessages['animationSpeed'].value}"
+
appearAnimation="#{notifyBean.attributesNotifyMessages['appearAnimation'].value}"
+
delay="#{notifyBean.attributesNotifyMessages['delay'].value}"
execute="{@form}" for="number"
+
globalOnly="#{notifyBean.attributesNotifyMessages['delay'].value}"
+
hideAnimation="#{notifyBean.attributesNotifyMessages['hideAnimation'].value}"
+
keepTransient="#{notifyBean.attributesNotifyMessages['keepTransient'].value}"
+
interval="#{notifyBean.attributesNotifyMessages['interval'].value}"
+
nonblocking="#{notifyBean.attributesNotifyMessages['nonBlocking'].value}"
+
nonblockingOpacity="#{notifyBean.attributesNotifyMessages['nonBlockingOpacity'].value}"
+
rendered="#{notifyBean.attributesNotifyMessages['rendered'].value}"
+
showCloseButton="#{notifyBean.attributesNotifyMessages['showCloseButton'].value}"
+
showDetail="#{notifyBean.attributesNotifyMessages['showDetail'].value}"
+
showHistory="#{notifyBean.attributesNotifyMessages['showHistory'].value}"
+
showShadow="#{notifyBean.attributesNotifyMessages['showShadow'].value}"
+
showSummary="#{notifyBean.attributesNotifyMessages['showSummary'].value}"
stack="exampleNotifyStack"
+
stayTime="#{notifyBean.attributesNotifyMessages['stayTime'].value}"
+
sticky="#{notifyBean.attributesNotifyMessages['sticky'].value}"
+
styleClass="#{notifyBean.attributesNotifyMessages['styleClass'].value}"
/>
+
+ <rich:notify
animationSpeed="#{notifyBean.attributesNotify['animationSpeed'].value}"
+
appearAnimation="#{notifyBean.attributesNotify['appearAnimation'].value}"
+
delay="#{notifyBean.attributesNotify['delay'].value}"
detail="#{notifyBean.attributesNotify['detail'].value}"
+
hideAnimation="#{notifyBean.attributesNotify['hideAnimation'].value}"
+
nonblocking="#{notifyBean.attributesNotify['nonBlocking'].value}"
+
nonblockingOpacity="#{notifyBean.attributesNotify['nonBlockingOpacity'].value}"
+
rendered="#{notifyBean.attributesNotify['rendered'].value}"
+
showCloseButton="#{notifyBean.attributesNotify['showCloseButton'].value}"
+
showHistory="#{notifyBean.attributesNotify['showHistory'].value}"
+
showShadow="#{notifyBean.attributesNotify['showShadow'].value}"
stack="exampleNotifyStack"
+
stayTime="#{notifyBean.attributesNotify['stayTime'].value}"
sticky="#{notifyBean.attributesNotify['sticky'].value}"
+
styleClass="#{notifyBean.attributesNotify['styleClass'].value}"
+ summary="
#{notifyBean.attributesNotify['title'].value}" />
+
+ <rich:notifyStack id="exampleNotifyStack"
direction="#{notifyBean.attributesNotifyStackFirst['direction'].value}"
+
method="#{notifyBean.attributesNotifyStackFirst['method'].value}"
+
position="#{notifyBean.attributesNotifyStackFirst['position'].value}"
+
rendered="#{notifyBean.attributesNotifyStackFirst['rendered'].value}"
+
styleClass="#{notifyBean.attributesNotifyStackFirst['styleClass'].value}"
/>
+ <h:form>
+ <h:outputLabel for="number" value="Number (from 5 to
10)" />
+ <h:inputText id="number" required="true">
+ <f:validateLongRange minimum="5" maximum="10"
/>
+ <a4j:ajax event="change" execute="@form" />
+ </h:inputText>
+
+ </h:form>
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <h2>Attributes - Notify</h2>
+ <metamer:attributes value="#{notifyBean.attributesNotify}"
id="attributesNotify" render="panel" />
+ <h2>Attributes - Notify Messages</h2>
+ <metamer:attributes value="#{notifyBean.attributesNotifyMessages}"
id="attributesNotifyMessages" render="panel" />
+ <h2>Attributes - Notify Stack</h2>
+ <metamer:attributes value="#{notifyBean.attributesNotifyStackFirst}"
id="attributesNotifyStack" render="panel" />
+ </ui:define>
+</ui:composition>
+
</html>
\ No newline at end of file