From richfaces-svn-commits at lists.jboss.org Wed Apr 1 06:21:47 2009 Content-Type: multipart/mixed; boundary="===============4251292939237876625==" 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: r13333 - trunk/docs/userguide/en/src/main/docbook/included. Date: Wed, 01 Apr 2009 06:21:47 -0400 Message-ID: --===============4251292939237876625== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: cluts Date: 2009-04-01 06:21:47 -0400 (Wed, 01 Apr 2009) New Revision: 13333 Modified: trunk/docs/userguide/en/src/main/docbook/included/ajaxValidator.xml trunk/docs/userguide/en/src/main/docbook/included/calendar.xml trunk/docs/userguide/en/src/main/docbook/included/columns.xml trunk/docs/userguide/en/src/main/docbook/included/componentControl.xml trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml trunk/docs/userguide/en/src/main/docbook/included/repeat.xml trunk/docs/userguide/en/src/main/docbook/included/status.xml trunk/docs/userguide/en/src/main/docbook/included/support.xml Log: RF-5117 - code samples for some chapters had been updated Modified: trunk/docs/userguide/en/src/main/docbook/included/ajaxValidator.x= ml =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/ajaxValidator.xml 200= 9-04-01 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/ajaxValidator.xml 200= 9-04-01 10:21:47 UTC (rev 13333) @@ -64,8 +64,8 @@ - - + + ...]]> @@ -79,8 +79,7 @@ +...]]>
Details of Usage @@ -113,7 +112,7 @@ - + Modified: trunk/docs/userguide/en/src/main/docbook/included/calendar.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/calendar.xml 2009-04-= 01 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/calendar.xml 2009-04-= 01 10:21:47 UTC (rev 13333) @@ -222,10 +222,10 @@ "ondateselected&quo= t; event as it's shown in the = example below: - - - ...]]> + + + +...]]> Note: @@ -238,8 +238,8 @@ could be used for possibility of= date selection canceling. See an example below: - ...]]> + +...]]> "oncurrentdateselec= ted" @@ -258,8 +258,8 @@ - ...]]> + oncurrentdateselected=3D"alert('month(year) select:'+event.rich.= date.toString());"/> +...]]> How to use these attributes see also on the RichFaces Users Forum. @@ -2039,8 +2039,7 @@ Example: - -]]> + ]]> = This is a result: = Modified: trunk/docs/userguide/en/src/main/docbook/included/columns.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/columns.xml 2009-04-0= 1 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/columns.xml 2009-04-0= 1 10:21:47 UTC (rev 13333) @@ -226,8 +226,7 @@ -... -]]> +...]]> = + -... -]]> +...]]> On the result page the component is rendered to JavaScript code. = This means, that it is possible to invoke the <rich:componentControl> = @@ -127,14 +125,12 @@ -... -]]> +...]]> The generated JavaScript function will look as shown below: +}]]> An important <rich:componentC= ontrol> feature, = is that it allows transferring parameters, with the help of specia= l attribute "params". @@ -144,8 +140,7 @@ -... -]]> +...]]> The alternative way for parameters transferring uses <f:param> attribute. = As the code above, the following code will represent the same functi= onality. @@ -155,10 +150,9 @@ - + -... -]]> +...]]> = = = @@ -316,7 +310,8 @@
- +
Modified: trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlide= r.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/dataFilterSlider.xml = 2009-04-01 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/dataFilterSlider.xml = 2009-04-01 10:21:47 UTC (rev 13333) @@ -50,8 +50,7 @@ -... -]]> +...]]>
Creating the Component Dynamically Using Java @@ -62,8 +61,7 @@ +...]]>
Details of Usage @@ -83,14 +81,12 @@ handleValue=3D"1" for=3D"carIndex" forValRef=3D"inventoryList.carInventory" = - filterBy=3D"getMileage" - /> + filterBy=3D"getMileage" /> ... = - ... = + ... = -... -]]> +...]]> In this example other two attributes are used for filtering: Modified: trunk/docs/userguide/en/src/main/docbook/included/datascroller.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/datascroller.xml 2009= -04-01 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/datascroller.xml 2009= -04-01 10:21:47 UTC (rev 13333) @@ -51,13 +51,12 @@ Example: - ... - - ... - -... -]]> + + ... + + ... + +...]]>
Creating the Component Dynamically Using Java</= title> @@ -68,8 +67,7 @@ <programlisting role=3D"JAVA"><![CDATA[import org.rich= faces.component.html.HtmlDatascroller; ... HtmlDatascroller myScroll =3D new HtmlDatascroller(); -... -]]></programlisting> +...]]></programlisting> </section> <section> <title>Details of Usage @@ -134,16 +132,15 @@ Example: - - - - - - - -... -]]> + + + + + + + + +...]]>
<emphasis role=3D"bold"> <property><rich:datas= croller></property> @@ -211,8 +208,7 @@ </h:panelGroup> </h:panelGrid> </h:form> -... -]]></programlisting> +...]]></programlisting> = <para> In the example above you can enter the page num= ber you want and set it by clicking on the <emphasis role=3D"bold"> @@ -280,11 +276,10 @@ <property>"controlsSeparator&= quot;</property> </emphasis> facet. An example is placed belo= w. </para> <programlisting role=3D"XML"><![CDATA[ ... - <f:facet name=3D"controlsSeparator"> - <h:graphicImage value=3D"/image/sep.png"/> - </f:facet> -... -]]></programlisting> +<f:facet name=3D"controlsSeparator"> + <h:graphicImage value=3D"/image/sep.png"/> +</f:facet> +...]]></programlisting> <para> Starting from 3.2.1 of RichFaces multiple <emph= asis role=3D"bold"> <property><rich:datascroller>= ;</property> </emphasis> instances behavior and page bind= ings are corrected. 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= 09-04-01 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/graphValidator.xml 20= 09-04-01 10:21:47 UTC (rev 13333) @@ -63,10 +63,10 @@ </para> <programlisting role=3D"XML"><![CDATA[... <h:outputText value=3D"Name:" /> - <h:inputText value=3D"#{userBean.name}" id=3D"name" required=3D"tru= e"> - <f:validateLength minimum=3D"3" maximum=3D"12"/> - <rich:graphValidator event=3D"onblur"/> - </h:inputText> +<h:inputText value=3D"#{userBean.name}" id=3D"name" required=3D"true"> + <f:validateLength minimum=3D"3" maximum=3D"12"/> + <rich:graphValidator event=3D"onblur"/> +</h:inputText> ...]]></programlisting> </section> = @@ -79,8 +79,7 @@ <programlisting role=3D"JAVA"><![CDATA[import org.rich= faces.component.html.HtmlCalendar; = ... HtmlgraphValidator mygraphValidator=3D new HtmlgraphValidator(); -... -]]></programlisting> +...]]></programlisting> = = </section> @@ -134,15 +133,13 @@ = <programlisting role=3D"XML"><![CDATA[... <rich:graphValidator summary=3D"Invalid values: " value=3D"#{dayStatistics= }"> -<a4j:repeat value=3D"#{dayStatistics.dayPasstimes}" var=3D"pt" id=3D"table= "> -<h:outputText value=3D"#{pt.title}" /> -<rich:inputNumberSpinner minValue=3D"0" maxValue=3D"24" value=3D"#{pt.time= }" id=3D"time"> -</rich:inputNumberSpinner> -<rich:message for=3D"time" /> -</a4j:repeat> + <a4j:repeat value=3D"#{dayStatistics.dayPasstimes}" var=3D"pt" i= d=3D"table"> + <h:outputText value=3D"#{pt.title}" /> + <rich:inputNumberSpinner minValue=3D"0" maxValue=3D"24= " value=3D"#{pt.time}" id=3D"time" /> + <rich:message for=3D"time" /> + </a4j:repeat> </rich:graphValidator> -... -]]></programlisting> +...]]></programlisting> = = <para>Hence, the given above code will provide the functionality that is i= llustrated on the images below.</para> Modified: trunk/docs/userguide/en/src/main/docbook/included/repeat.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/repeat.xml 2009-04-01= 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/repeat.xml 2009-04-01= 10:21:47 UTC (rev 13333) @@ -103,11 +103,10 @@ <programlisting role=3D"XML"><![CDATA[<ul> <a4j:repeat ...> <li>...<li/> - ... + ... <li>...<li/> </a4j:repeat> -</ul> -]]></programlisting> +</ul>]]></programlisting> <para>All other general attributes are defined accordi= ng to the similar attributes of iterative components (<emphasi= s role=3D"bold"> <property><h:dataTable></pro= perty> Modified: trunk/docs/userguide/en/src/main/docbook/included/status.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/status.xml 2009-04-01= 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/status.xml 2009-04-01= 10:21:47 UTC (rev 13333) @@ -51,12 +51,12 @@ <listitem><para> With <emphasis><property>"Start"</property></emphasi= s>/<emphasis><property>"Stop"</property></emphasis > facets defin= ition:</para> <programlisting role=3D"XML"><![CDATA[<a4j:status for=3D"stat2"> - <f:facet name=3D"start"> - <h:graphicImage value=3D"ajax_process.png" /> - </f:facet> - <f:facet name=3D"stop"> - <h:graphicImage value=3D"ajax_stoped.png" /> - </f:facet> + <f:facet name=3D"start"> + <h:graphicImage value=3D"ajax_process.png" /> + </f:facet> + <f:facet name=3D"stop"> + <h:graphicImage value=3D"ajax_stoped.png" /> + </f:facet> </a4j:status>]]></programlisting> <para>In this case, the elements are generated for each statu= s and correspond the facets content.</para> </listitem> Modified: trunk/docs/userguide/en/src/main/docbook/included/support.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/support.xml 2009-04-0= 1 10:21:24 UTC (rev 13332) +++ trunk/docs/userguide/en/src/main/docbook/included/support.xml 2009-04-0= 1 10:21:47 UTC (rev 13333) @@ -130,8 +130,7 @@ <f:selectItem itemValue=3D"First Item" itemLabel=3D"First Item"/> <f:selectItem itemValue=3D" Second Item" itemLabel=3D"Second Item"/> <f:selectItem itemValue=3D" Third Item" itemLabel=3D"Third Item"/> - <a4j:support event=3D"onblur" reRender=3D"panel" onsubmit=3D"if(!confirm= ('Are you sure to change the option ?')) = - {form.reset(); return false;}" oncomplete=3D"alert('Value succesfully= stored')"/> + <a4j:support event=3D"onblur" reRender=3D"panel" onsubmit=3D"if(!confirm= ('Are you sure to change the option ?')) {form.reset(); return false;}" onc= omplete=3D"alert('Value succesfully stored')"/> </h:selectOneMenu>]]></programlisting> <para>In example there is the condition checking (conf= irm) is used before request sending and message printing after t= he request processing is @@ -235,8 +234,7 @@ </para> <programlisting role=3D"XML"><![CD= ATA[<h:form> <h:inputText value=3D"#{person.name}"> - <a4j:support event=3D"onkeyup" reRender=3D"test" = - requestDelay=3D"1000" ignoreDupResponces=3D"true" eventsQueue=3D"myQue= ue"/> + <a4j:support event=3D"onkeyup" reRender=3D"test" requestDelay= =3D"1000" ignoreDupResponces=3D"true" eventsQueue=3D"myQueue"/> </h:inputText> <h:outputText value=3D"#{person.name}" id=3D"test"/> </form>]]></programlisting> --===============4251292939237876625==--