• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Richfaces orderingLIst converter

 
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Can anyone help me in the concept of the converter class , like how it functions, both the getAsObject() and getAsString().


Regards,
Amarshi
 
Saloon Keeper
Posts: 28410
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
amarshi mohanty
Ranch Hand
Posts: 110
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks.
 
There will be plenty of time to discuss your objections when and if you return. The cargo is this tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
reply
    Bookmark Topic Watch Topic
  • New Topic