Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getAsString method  RSS feed

 
MaheshS Kumbhar
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got to know the use of getAsObject method, to convert the data from presentation view to model view. But what is the use of getAsString to convert the model data to presentation view.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JSF, the most commonly-used rendering choice is to create web pages. Web pages are HTML and HTML is text. So getAsString (or toString) is necessary to convert non-string objects to text.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!