Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JSF - EJB implementations?  RSS feed

 
will lopez
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Has anyone played around with a JSF EJB implementation? I'm not sure I'm totally sold on the whole server-side validation concept when some javascript could take care of it but at the same time it would be nice to not have to worry about scripting some of the basic tedious checks.
Anyway, does the book cover such an implementation (JSF-EJB)? Even if it doesn't I'd like to hear about design recommendations.
Thanks
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65826
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure I'm totally sold on the whole server-side validation concept when some javascript could take care of it

How can you possibly guarantee that client-side validation has taken place? I recommend you read through this topic.
[ March 03, 2004: Message edited by: Bear Bibeault ]
 
will lopez
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that falls in the camp of "whether to use javascript at all argument" that, IMHO, always ends in a stalemate due to the individualism (is that a word :-) of each application. In my case, I solely develop for an intranet environment where everyting is controled and the app is one that is data intensive so for that case I wouldn't use the validation capability of JSF but maybe for a different situation I would. I'm not a hard-liner for anything...I like to keep my options open...use what best fits the need but thanks your opinion.
 
Bill Dudney
Author
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Will,
One of the chapters in the book takes you through implementing an application in a 2 tier manner (web tier, db) and a three tier (web, ejb, db). The validation should probably be done in both places, front and back. I know that's tedious but it probably needs to be done even in very controlled situations. You just never know when something weird might happen on the client side...
But maybe I'm just paranoid
I'd love for someone to do an XDoclet bit that generates the tedious stuff. Any takers
 
will lopez
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...that sounds good...I'm off to pick me up a copy...thanks!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!