• Post Reply Bookmark Topic Watch Topic
  • New Topic

converting JSF componenets in to Hibernate POJO

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
values of view state is retrieved by backing bean stores them in JSF specific component object.

values in <h:inputText> can be retrieved by backing bean with UIInput object but problems comes here.

may i know how JSF components like this can be converted(UIInput) into simple Strings or Hibernate POJO attributes to persist the values into database(Oracle database table).




thanks,
rahul.
 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rauhl Roy wrote:values of view state is retrieved by backing bean stores them in JSF specific component object.

values in <h:inputText> can be retrieved by backing bean with UIInput object but problems comes here.

may i know how JSF components like this can be converted(UIInput) into simple Strings or Hibernate POJO attributes to persist the values into database(Oracle database table).




thanks,
rahul.



may i know how
 
Tim Holloway
Bartender
Posts: 18408
58
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's not recommended to use Data Model POJOs as JSF backing beans. It doesn't work well. For details, search this forum for earlier discussions on this subject. There's been 2 or 3 of them already this year.

Incidentally, we'd prefer you not "bump". It won't get you answers any faster. We're all unpaid volunteers here, so we check in when we can, not 24x7. If you don't get an answer within 2-3 business days (some of us take the weekends/holidays off), it means that probably nobody else knows the answer either. It happens occasionally, alas.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!