Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Complex form : Which is the best design approach?  RSS feed

 
partha naveen
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a requirement where I am required to design several pages that consisit of online forms which are quite large and complex. There is not must business logic though, most of these forms are directly linked with table columns in the database.

Would JSF be of help to map such complex forms with DB tables? Or is there a better approach for this?

Thanks
PN
 
Tim Holloway
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JSF is ideal for that kind of stuff. For one thing, it has built-in primitives for tabular data display. Although pageable tables aren't part of core JSF almost every JSF extension tagset (Tomahawk, RichFaces, IceFaces, ADF, etc.) adds that ability. JSF is all about forms and their interrelationships, and it's about as close to true MVC as you can get on an HTTP transport.

Normally you'd put the business logic in a lower tier, but the JSF backing beans are the place for view model objects. When used in conjunction with a good ORM, you can reference domain objects directly or semi-directly straight from the view when using JSF.

 
Samuel March
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the system is a proper J2EE server and its other services are J2EE, thats ok, but not for the sake of it.
As forms are, the leverage is application integration when throwing around data or between VM's as in EJB.
If your not validating, that would be a bit extravagent but not in true terms if other services do use such J2EE
levels.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!