[
http://jira.jboss.com/jira/browse/JBSEAM-1661?page=comments#action_12368997 ]
Matt Drees commented on JBSEAM-1661:
------------------------------------
Another potential situation for duplication:
You have a table A with foreign keys to both tables B and C.
Both b.xhtml and c.xhtml will have a rich:tab with a rich:datatable listing the a's
they're associated with. This code is identical, except for the references to bHome
and cHome.
This would be a perfect situation to split the listing code into a separate file.
Use more templating in seam-gen
-------------------------------
Key: JBSEAM-1661
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1661
Project: JBoss Seam
Issue Type: Feature Request
Affects Versions: 2.0.0.BETA1
Reporter: Matt Drees
Priority: Minor
Seam-gen'ed apps tend to look very copy-pasted, which makes it difficult to tweak
things once created. It'd be nice if it used more templating and/or source tags
(maybe going as far as using Rick Hightower's <a:field fieldName="title"
entity="#{CDManagerBean.cd}" /> tag (see
http://www.ibm.com/developerworks/java/library/j-facelets/index.html and
http://www.ibm.com/developerworks/java/library/j-facelets2.html)).
Also, I think it would be good for people new to JSF to see good patterns in an example
app. The downside is it's more complex, but I think it's worth it.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira