File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes Richfaces orderingLIst converter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Richfaces orderingLIst converter" Watch "Richfaces orderingLIst converter" New topic

Richfaces orderingLIst converter

amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
Hi All,
Can anyone help me in the concept of the converter class , like how it functions, both the getAsObject() and getAsString().


SCJP (97%), SCWCD (95%))
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 17410

JSF is an abstract system which allows (or actually more like requires) you to separate the View generation (rendering) from the other functions. In the vast majority of cases, the renderer that is employed is the HTML renderer.

HTML is a text-only markup language. Everything in an HTML request input stream is text, and everything in an HTML response stream is also text. However, the actual application may be dealing with binary objects such as integer and Date items.

Some object types are automatically converted by the JSF framework itself. However, JSF doesn't know how to properly convert user-defined types (classes), so for those items, you need to supply a converter of your own.

The converter is just a simple class with 2 methods. One converts the binary object to text, the other method does the exact opposite.

An IDE is no substitute for an Intelligent Developer.
amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
I agree. Here's the link:
subject: Richfaces orderingLIst converter
jQuery in Action, 3rd edition