aspose file tools*
The moose likes JSP and the fly likes JSF and Dynamic Forms Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSF and Dynamic Forms" Watch "JSF and Dynamic Forms" New topic
Author

JSF and Dynamic Forms

Michael Sullivan
Ranch Hand

Joined: Dec 26, 2003
Posts: 235
Bill,
I apologize for my ignorance. That said, I've just had a primer to struts via my workplace, and last night I sat down with one of the few JSF texts at my local bookstore. One of the issues I face regularly is dynamic forms, created via values from a database. Struts handled this by using hash tables. How does JSF handle them?

Thanks,
Michael
Bill Dudney
Author
Ranch Hand

Joined: Sep 05, 2003
Posts: 234
Hi Michael,
JSF will work quite well with data fetched from the db. One place in the JSF spec to look at is the UIData component.
If you are referring to the concept of DynaActionForms in Struts then there is nothing specifically in place to replace DynaActionForms. However achieving the same effect is relatively easy with the EL syntax for value references. You could for example use #{myBean.dynaProps[attr1]} which would ask the bean 'myBean' for a Map with getDynaProps then issue a get with attr1 as the key.
In my opinion the Dyna* stuff in Struts always seemed like a hack to get around inflexibility. Just my $0.02 worth though...
Hope this helps.


TTFN,<br /> <br />-bd-<br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/0471449156/qid=1064343733/sr=2-1/ref=sr_2_1/002-8375300-3666449" target="_blank" rel="nofollow">Jakarta Pitfalls</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471146153/qid=1064343733/sr=1-2/ref=sr_1_2/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">J2EE AntiPatterns</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471462071/qid=1064343733/sr=1-3/ref=sr_1_3/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">Mastering JavaServer Faces</a> | <a href="http://bill.dudney.net/roller/page/bill" target="_blank" rel="nofollow">Blog</a> | <a href="http://www.jroller.com/page/BillDudney" target="_blank" rel="nofollow">Eclipse Blog</a> | <a href="http://www.sourcebeat.com/TitleAction.do?id=2" target="_blank" rel="nofollow">Eclipse 3 Live</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF and Dynamic Forms