The Artima Developer Community
Sponsored Link

Agile Buzz Forum
More fun with JSF

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Dominik Wei-Fieg

Posts: 60
Nickname: dominikwei
Registered: Aug, 2005

Dominik Wei-Fieg is a software developer living and working in Freiburg, Germany
More fun with JSF Posted: Jan 23, 2007 10:09 AM
Reply to this message Reply

This post originated from an RSS feed registered with Agile Buzz by Dominik Wei-Fieg.
Original Post: More fun with JSF
Feed Title: Ars Subtilior
Feed URL: http://typo.ars-subtilior.com/articles.rss
Feed Description: Finest Handmade Code Random thoughts about agile software development as an art
Latest Agile Buzz Posts
Latest Agile Buzz Posts by Dominik Wei-Fieg
Latest Posts From Ars Subtilior

Advertisement

I’m getting into the flow of JSF at last. OK, flow might be too big a word, maybe it’s more like walk or stumble, but I’m diverting.

My official work these last days has been the creation of a generic component for CRUD operations in JSF, something that is fed with an interface or an class, configured and which then provides views for CRUD operations, lists and Searching and a controller which delegates the work of providing the right instances to a middle tier.

Such a component comes in handy when you have a huge domain model and need CRUD functionality for all domain classes. Sure, it is possible to generate the backing beans and views, but as long as the domain model is still a moving target, you need to regenerate those beans and classes each time a property or association is added to or removed from one of the domain classes. The company I’m working at has profound knowledge of everything that has to do with generation, but we also know that there are situations in which you can simply overdo things (the old problem that to someone who owns (only) a hammer, everything is a nail).

So we decided on a component which does the heavy lifting in this case. We will (most likely) still generate the classes needed to configure the crud component for the different domain classes, but after that we are not forced to touch the views or the backing bean when the domain class changes.

Maybe I’ll come back to write some more about this later on.

Read: More fun with JSF

Topic: More DRM Stupidity Previous Topic   Next Topic Topic: A Day at MGM

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use