This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes converting JSF componenets in to Hibernate POJO Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "converting JSF componenets in to Hibernate POJO" Watch "converting JSF componenets in to Hibernate POJO" New topic
Author

converting JSF componenets in to Hibernate POJO

Rauhl Roy
Ranch Hand

Joined: Aug 01, 2006
Posts: 401

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

Joined: Aug 01, 2006
Posts: 401

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
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14568
    
    7

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: converting JSF componenets in to Hibernate POJO
 
Similar Threads
Best Practices for JSF-Spring-Hibernate
MVC Model and Domain Model
where is the action class in JSF??
f:selectItems and List - managed property
can JSF BB be used as Hibernate POJO