From richfaces-svn-commits at lists.jboss.org Thu Aug 14 04:47:00 2008 Content-Type: multipart/mixed; boundary="===============9134834146099218413==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r10085 - trunk/docs/userguide/en/src/main/docbook/included. Date: Thu, 14 Aug 2008 04:47:00 -0400 Message-ID: --===============9134834146099218413== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: artdaw Date: 2008-08-14 04:47:00 -0400 (Thu, 14 Aug 2008) New Revision: 10085 Modified: trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.xml trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml Log: https://jira.jboss.org/jira/browse/RF-3903 Added info about graphValidator Modified: trunk/docs/userguide/en/src/main/docbook/included/graphValidator.= desc.xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.x= ml 2008-08-14 08:46:44 UTC (rev 10084) +++ trunk/docs/userguide/en/src/main/docbook/included/graphValidator.desc.x= ml 2008-08-14 08:47:00 UTC (rev 10085) @@ -9,7 +9,7 @@ Description The <rich:ajaxGraph> = - is a component designed to provide ajax validation insi= de for JSF inputs. + component allows to register Hibernate Validators for = multiple input components. =
Modified: trunk/docs/userguide/en/src/main/docbook/included/graphValidator.= xml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml 20= 08-08-14 08:46:44 UTC (rev 10084) +++ trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml 20= 08-08-14 08:47:00 UTC (rev 10085) @@ -81,7 +81,57 @@ HtmlgraphValidator mygraphValidator=3D new HtmlgraphValidator(); ... ]]> + = + =
+ = + The + <rich:graphValidator>component b= ehaves basically the same way as the + <rich:beanValidator> = + The deference between these two components is that in order to validat= e some input data with a + <rich:beanValidator> component= , it should be a nested element of an input component, whereas + <rich:graphValidator> wraps = multiple input components and validates the data received from them. + = + The following example demonstrate a pattern of how the + <rich:graphValidator> can be use= d. + + + + + + + + + + + + + ... +]]> + = + The data validation can be also performed using Hibernate Validato= r, the same way as it is done with + <rich:beanValidator>. + = = + + The components's architecture provides an option to bind the = component to a managed bean, which is done with the + <value> attribute. The attribute= ensures that the entered data is valid after the model is updated by reva= lidating the bean properties. + Please look at the example below. + = + = + + < + + + = + + ... +]]> + = + + + --===============9134834146099218413==--