Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: src/main/webapp/resources/org.richfaces.showcase/test.xhtml
- ===================================================================
- --- src/main/webapp/resources/org.richfaces.showcase/test.xhtml (revision 22032)
- +++ src/main/webapp/resources/org.richfaces.showcase/test.xhtml (working copy)
- @@ -6,24 +6,26 @@
- xmlns:ui="http://java.sun.com/jsf/facelets"
- xmlns:c="http://java.sun.com/jsp/jstl/core"
- xmlns:composite="http://java.sun.com/jsf/composite"
- - xmlns:a4j="http://richfaces.org/a4j">
- + xmlns:a4j="http://richfaces.org/a4j"
- + xmlns:rich="http://richfaces.org/rich"
- + >
- <head>
- <title>panel</title>
- </head>
- <body>
- <composite:interface>
- - <composite:attribute name="style" required="false" />
- - <composite:attribute name="styleClass" required="false" />
- </composite:interface>
- <composite:implementation>
- - <h:outputStylesheet library="org.richfaces.showcase" name="messages.css" />
- - <a4j:outputPanel ajaxRendered="true">
- - <h:messages layout="#{cc.attrs.layout}"
- - showSummary="true" style="color:red; #{cc.attrs.style}"
- - styleClass="rich-message #{cc.attrs.styleClass}" />
- - </a4j:outputPanel>
- + <h:panelGrid columns="3">
- + <h:outputText value="Enter new password:" />
- + <h:inputSecret value="#{cc.attrs.password}" id="pass" />
- + <rich:message for="pass" />
- + <h:outputText value="Confirm the new password:" />
- + <h:inputSecret value="#{cc.attrs.confirmation}" id="conf" />
- + <rich:message for="conf" />
- + </h:panelGrid>
- </composite:implementation>
- </body>
- </html>
- Index: src/main/webapp/resources/org.richfaces.showcase/test1.xhtml
- ===================================================================
- --- src/main/webapp/resources/org.richfaces.showcase/test1.xhtml (revision 0)
- +++ src/main/webapp/resources/org.richfaces.showcase/test1.xhtml (revision 0)
- @@ -0,0 +1,34 @@
- +<!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:c="http://java.sun.com/jsp/jstl/core"
- + xmlns:composite="http://java.sun.com/jsf/composite"
- + xmlns:a4j="http://richfaces.org/a4j"
- + xmlns:rich="http://richfaces.org/rich"
- + >
- +<head>
- +<title>panel</title>
- +</head>
- +<body>
- +
- +<composite:interface>
- + <composite:valueHolder targets="pass,conf" name="xxx" />
- +</composite:interface>
- +
- +<composite:implementation>
- + #{cc.attrs.bean} a
- +
- + <h:panelGrid columns="3">
- + <h:outputText value="Enter new password:" />
- + <h:inputSecret value="#{cc.attrs.bean.password}" id="pass" />
- + <rich:message for="pass" />
- + <h:outputText value="Confirm the new password:" />
- + <h:inputSecret value="#{cc.attrs.bean.confirm}" id="conf" />
- + <rich:message for="conf" />
- + </h:panelGrid>
- +</composite:implementation>
- +</body>
- +</html>
- Index: src/main/webapp/richfaces/graphValidator/samples/passwordValidation-sample.xhtml
- ===================================================================
- --- src/main/webapp/richfaces/graphValidator/samples/passwordValidation-sample.xhtml (revision 22064)
- +++ src/main/webapp/richfaces/graphValidator/samples/passwordValidation-sample.xhtml (working copy)
- @@ -4,7 +4,8 @@
- 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">
- + xmlns:rich="http://richfaces.org/rich"
- + xmlns:rc="http://java.sun.com/jsf/composite/org.richfaces.showcase">
- <style>
- .red {
- @@ -16,21 +17,68 @@
- }
- </style>
- <h:form>
- + <a4j:region>
- + Simple
- <rich:graphValidator value="#{passwordValidationBean}" id="gv">
- - <rich:panel header="Change password" style="width:500px">
- - <rich:messages for="gv"/>
- - <rich:messages globalOnly="true"/>
- - <h:panelGrid columns="3">
- - <h:outputText value="Enter new password:" />
- - <h:inputSecret value="#{passwordValidationBean.password}" id="pass" />
- - <rich:message for="pass" />
- - <h:outputText value="Confirm the new password:" />
- - <h:inputSecret value="#{passwordValidationBean.confirm}" id="conf" />
- - <rich:message for="conf" />
- - </h:panelGrid>
- - <a4j:commandButton value="Store changes"
- - action="#{passwordValidationBean.storeNewPassword}" />
- - </rich:panel>
- + <rich:messages />
- + <h:panelGrid columns="3">
- + <h:outputText value="Enter new password:" />
- + <h:inputSecret value="#{passwordValidationBean.password}" id="pass" />
- + <rich:message for="pass" />
- + <h:outputText value="Confirm the new password:" />
- + <h:inputSecret value="#{passwordValidationBean.confirm}" id="conf" />
- + <rich:message for="conf" />
- + </h:panelGrid>
- +
- + <!--
- + <rc:test password="#{passwordValidationBean.password}" confirmation="#{passwordValidationBean.confirm}" />
- + <rc:test1 bean="#{passwordValidationBean}" />
- + -->
- +
- +
- + <a4j:commandButton value="Store changes"
- + action="#{passwordValidationBean.storeNewPassword}" />
- </rich:graphValidator>
- + </a4j:region>
- </h:form>
- + <hr />
- + <h:form>
- + <a4j:region>
- + Test
- + <rich:graphValidator value="#{passwordValidationBean}" id="gv">
- + <rich:messages />
- + <rc:test password="#{passwordValidationBean.password}"
- + confirmation="#{passwordValidationBean.confirm}" />
- +
- +
- + <a4j:commandButton value="Store changes"
- + action="#{passwordValidationBean.storeNewPassword}" />
- + </rich:graphValidator>
- + </a4j:region>
- + </h:form>
- + <hr />
- + <h:form>
- + <a4j:region>
- + Test A
- + <rich:graphValidator value="#{passwordValidationBean}" id="gv">
- + <rich:messages />
- + <rc:test />
- +
- + <a4j:commandButton value="Store changes"
- + action="#{passwordValidationBean.storeNewPassword}" />
- + </rich:graphValidator>
- + </a4j:region>
- + </h:form>
- + <hr />
- + <h:form>
- + <a4j:region>
- + Test1
- + <rich:graphValidator value="#{passwordValidationBean}" id="gv">
- + <rich:messages />
- + <rc:test1 bean="#{passwordValidationBean}" />
- + <a4j:commandButton value="Store changes"
- + action="#{passwordValidationBean.storeNewPassword}" />
- + </rich:graphValidator>
- + </a4j:region>
- + </h:form>
- </ui:composition>
- \ No newline at end of file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement