Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse JavaServer Faces Tooling User Guide
Previous Page Home Next Page

Adding a Converter

You can add a converter to your Web application. A converter is used in the conversion model, each component can be associated with server-side model object data. The component data can have two views, model and presentation, and the data can be converted between the model view and the presentation view. For example, use a converter to have the output be object to string and the input be string to object.

To add a converter:

  1. Select faces-config.xml in the Project Explorer of the J2EE perspective.

    The JSF Application Configuration editor opens.

  2. Select the Component tab of the editor.

  3. Expand the Converters section.

    A list of defined converters displays..

  4. Click Add.

    A new converter is added to the Converters list x .

  5. (Optional) Change the default converter name to a unique, descriptive name in the Display name field of the General section.

  6. (Optional) Type a description in the Description field.

  7. Do one of the following:

    • Type an ID in the Converter ID field.

    • Select a Converter for Class:

      1. Click the Browse button adjacent to the Converter for Class field.

        The Select Type dialog box appears.

      2. Select the matching type that you want to use and click OK.

  8. Click Browse and select a Converter Class.

  9. Click Add in the Attributes section to add an attribute.

  10. Click Add in the Properties section to add a property.


Related concepts


Related reference


Faces Config Editor

Related tasks

Tutorial


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire