• Post Reply Bookmark Topic Watch Topic
  • New Topic

Property binding architecture  RSS feed

 
Dave Robe
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey, we've been using JSF for awhile now, and have run into a recurring issue. So, our project currently uses JSF to bind to properties on our data model directly. For example, if there was a Person class in our data model, a JSF page may look like: <h:inputText value="#{person.firstName}" />, etc. The issue we've run into is that whenever we change something in our data model, and don't thoroughly test the user interface (JSF pages) there is a potential for regression. I'm wondering if others with more experience, or more knowledge using JSF, use this technique, or have found another pattern that works better in practice. Ideally, we'd like to know that a page is broken if we modify something in our data model. We also recognize that GUI tests would identify this problem, but just wondering if others are using different ways of doing this.

Thanks
 
Tim Holloway
Bartender
Posts: 18715
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Dave!

The major problem is is the same on you have with the "Git 'R Dun!" scripting languages. Since the EL expressions aren't interpreted until the page is actually invoked, you can have pretty much random garbage in them and not be able to tell.

UI testing is something I've struggled with for a long time and I have no silver bullet. Currently I have a browser plugin that can be used. I've also used automated facilities such as Cactus. I found a stand-alone Windows-only application. I've commiserated with a friend who struggled with a horribly expensive product from a major corporation who appeared to have outsourced the system to the freshman class at IIT with the demand that it be delivered in a week's time and with no chai breaks.

Nothing has really helped that much. For UI and database testing, I can pretty much use the tests to develop the code, but I've never managed to achieve any synergy when attempting that for the UI. Maybe others have done better.
 
Dave Robe
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply. I will continue to look at this issue
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!