From jbosstools-commits at lists.jboss.org Wed Jan 26 23:30:02 2011 Content-Type: multipart/mixed; boundary="===============5525655093950919566==" MIME-Version: 1.0 From: jbosstools-commits at lists.jboss.org To: jbosstools-commits at lists.jboss.org Subject: [jbosstools-commits] JBoss Tools SVN: r28645 - trunk/jsf/docs/jsf_tools_ref_guide/en-US. Date: Wed, 26 Jan 2011 23:30:02 -0500 Message-ID: <201101270430.p0R4U2aQ022286@svn01.web.mwc.hst.phx2.redhat.com> --===============5525655093950919566== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: mcaspers Date: 2011-01-26 23:30:02 -0500 (Wed, 26 Jan 2011) New Revision: 28645 Modified: trunk/jsf/docs/jsf_tools_ref_guide/en-US/creation_and_registration.xml Log: General Updates Modified: trunk/jsf/docs/jsf_tools_ref_guide/en-US/creation_and_registratio= n.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/jsf/docs/jsf_tools_ref_guide/en-US/creation_and_registration.xml = 2011-01-27 03:54:06 UTC (rev 28644) +++ trunk/jsf/docs/jsf_tools_ref_guide/en-US/creation_and_registration.xml = 2011-01-27 04:30:02 UTC (rev 28645) @@ -1,364 +1,272 @@ - - - - JBoss Developer Studio - Eclipse - JSF Tools - Java - JBoss - - - Creation and Registration - = -
- = - Create and Register a Custom Converter - = - It's also possible to create a - custom Converter in order to specify your own converting rules= . Let's look at how you can do this. - = - To create and register a custom converter it's nece= ssary to - go through the following steps: - = - - - In the Project Explorer view open - faces-config.xml - and select - Tree - tab. - - -
- Converters - - - - - -
- - - Select - Converters - and click on - Add - button. - - - On the form type the name of your converter in the <= emphasis> - Converter-id - field and name of the class for - converters. After clicking - Finish - button your custom converter is - registered under the entered name. - - -
- Add Converter Form - - - - - -
- - - Now you can create - "converter" - class. In the Converter section you - should see your - Converter-id - and - Converter-class. - Click on - Converter-class - to generate the source code. - - -
- Generation of Source Code for Converter Class - - - - - -
- = - - - A usual wizard for creating a Java class will appear. - All needed fields here will be adjusted - automatically. Just leave everything without changes - and click - Finish. - - - -
- New Java Class Form - - - - - -
- - - To open a converter class click again on - Converter-class - link in the Converter section. - - -
- Converter Class - - - - - -
- Now you - are able to add a business logic of converter in the - Java editor. -
- = -
- = - Create and Register a Custom Validator - = - It's also quite easy to develop your - own custom Validators. You should perform the actions similar = to the = - previous one. Go through the following steps: - - - In the Project Explorer view open - faces-config.xml - and select - Tree - tab. - - -
- Validator in Faces Config Editor - - - - - -
- - - Select - Validators - and click on - Add - button. - - - Type the name of your validator in the - Validator-id - field and name of the class for - validators. After clicking - Finish - button your custom validator is - registered under the entered name. - - -
- Adding Validator - - - - - -
- = - Now you can create the "validator" class. - - - In the Validator section you can see your - Validator-id - and - Validator-class. To ge= nerate the source code click on - Validator-class. - - - -
- Creating Validator Class - - - - - -
- - - Java class will be created automatically. Leave - everything without changes and click - Finish. - - - -
- New Java Class Form - - - - - -
- - - To open validator class click again on - Validator-Class - link in the Validator section. Now you - are able to write a business logic of validator in - the Java editor. - - -
- Converter Class Editing - - - - - -
-
- = -
- Create and Register Referenced Beans = - = - Creation of Referenced Beans is similar to creation of Custom - Validator as well. To perform this, let's walk through th= e necessary steps. - = - - - In the Project Explorer view open - faces-config.xml - and select - Tree - tab. - - -
- Referenced Beans in Faces Config Editor - - - - - -
- - - Select - Referenced Beans - and click on - Add - button. - - - Type in the name of your Referenced Bean and type in - or select - Referenced-Bean-Class - by using - Browse - button. - - -
- Add Referenced Bean - - - - - -
- - - In the Referenced Bean section you should see your <= emphasis> - Referenced-Bean-Name - and - Referenced-Bean-Class.<= /emphasis> - Click on the link to open the Java creation - wizard. - - -
- Create Referenced Bean Class - - - - - -
- - - Java class will be created automatically. Leave - everything without changes and click - Finish. - - - -
- New Java Class Form - - - - - -
- - - To open Referenced Bean class click again on - Referenced-Bean-Class - in the Referenced Bean section. Now you - are able to write business logic of Referenced Bean - in the Java editor. - - -
- Referenced Bean Class Editing - - - - - -
-
+ + + + JBoss Developer Studio + Eclipse + JSF Tools + Java + JBoss + + + Creation and Registration + +
+ + Create and Register a Custom Converter + + + It's also possible to create a custom Converter in order to spec= ify your own converting rules. Let's look at how you can do this. + + + To create and register a custom converter it is necessary perform = the following steps: + + + + In the Project Explorer view open the faces-config.xml= file and select Tree tab. + + +
+ Converters + + + + + +
+ + + Select Converters and click the = Add button. + + + + On the form type the name of your converter in the Converter-id field and name of the class for conver= ters. After clicking Finish button your custom conve= rter is registered under the entered name. + + + +
+ Add Converter Form + + + + + +
+ + + + Now you can create a "conver= ter" class. In the Converter section you should = see your Converter-id and Converter-class. Click on the Converter-Class link to generat= e the source code. + + + +
+ Generation of Source Code for Converter Class + + + + + +
+ + + + + A usual wizard for creating a Java class will appear. All needed fiel= ds here will be adjusted automatically. Just leave everything without chang= es and click the Finish button. + + + +
+ New Java Class Form + + + + + +
+ + + To open a converter class click again on the Converter= -Class link in the Converter section. + + +
+ Converter Class + + + + + +
+ Now you are able to add a business logic of converter in the Java = editor. +
+ +
+ + Create and Register a Custom Validator + + + It is also quite easy to develop your own custom Validators. The requir= ed steps are similar to those shown previously: + + + + In the Project Explorer view open the faces-config.xml= and select the Tree tab. + + +
+ Validator in Faces Config Editor + + + + + +
+ + + Select the Validators option and click the = Addbutton. + + + + Type the name of your validator in the Validator-id field and name of the class for validators. After clicking the Finish button your custom validator is registered under th= e entered name. + + + +
+ Adding Validator + + + + + +
+ + Now you can create the "validator" class. + + + + In the Validator section you can see your Validator-id and Validator-class. To generate the source cod= e click on Validator-class. + + + +
+ Creating Validator Class + + + + + +
+ + + Java class will be created automatically. Leave everything witho= ut changes and click the Finish. + + +
+ New Java Class Form + + + + + +
+ + + + To open the validator class click on the Validator-Class link in the Validator section. Now you are able to write a busines= s logic of validator in the Java editor. + + + +
+ Converter Class Editing + + + + + +
+
+ +
+ Create and Register Referenced Beans + + + The creation of Referenced Beans is similar to the creation of Custom V= alidators. The steps below show you the steps required to create Referenced= Beans. + + + + + In the Project Explorer view open the faces-config.xml= and select the Tree tab. + + +
+ Referenced Beans in Faces Config Editor + + + + + +
+ + + Select the Referenced Beans option and clic= k on the Add button. + + + + Type in the name of your Referenced Bean and type in or select the Referenced-Bean-Class value by clicking the B= rowse button. + + + +
+ Add Referenced Bean + + + + + +
+ + + + In the Referenced Bean section you should see your Referenc= ed-Bean-Name and Referenced-Bean-Class. Cli= ck on the link to open the Java creation wizard. + + + +
+ Create Referenced Bean Class + + + + + +
+ + + + The Java class will be created automatically. Leave everything with t= heir default values and click the Finish button. + + + +
+ New Java Class Form + + + + + +
+ + + + To open a Referenced Bean class click the Referenced-Bean-C= lass in the Referenced Bean section. Now you are able to write b= usiness logic of Referenced Bean in the Java editor. + + + +
+ Referenced Bean Class Editing + + + + + +
+
\ No newline at end of file --===============5525655093950919566==--