aspose 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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 15641
    
  15

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
 
Similar Threads
Converter Servlets
.NET convert to Java
PPT to PDF?
Builder design pattern example
Validation before conversion