File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Richfaces orderingLIst converter" Watch "Richfaces orderingLIst converter" New topic
Author

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().


Regards,
Amarshi


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

Joined: Jun 25, 2001
Posts: 16019
    
  20

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
amarshi mohanty
Ranch Hand

Joined: Jul 01, 2008
Posts: 110
Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Richfaces orderingLIst converter