[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2321) only generate-entities creates views that begin with uppercase
Dan Allen (JIRA)
jira-events at lists.jboss.org
Thu Nov 29 03:22:02 EST 2007
[ http://jira.jboss.com/jira/browse/JBSEAM-2321?page=comments#action_12389755 ]
Dan Allen commented on JBSEAM-2321:
-----------------------------------
Unfortunately, fixing this is going to be tricky because hbmtemplate doesn't support the idea of a custom name. The best it can do is replace {class-name} with the short name of the class. If we are dedicated to fixing this, I have prototyped a solution that does a file move operation to rename the files.
first pass: StudentEdit.xhtml#seamgen
second pass: studentEdit.xhtml
I have implemented a FileNameMapper that lowercases the first character of the filename. The reason I use the #seamgen extension is so that we know which files to operate on so that we don't disrupt existing files that might already be in the directory (does it really matter?)
> only generate-entities creates views that begin with uppercase
> --------------------------------------------------------------
>
> Key: JBSEAM-2321
> URL: http://jira.jboss.com/jira/browse/JBSEAM-2321
> Project: JBoss Seam
> Issue Type: Bug
> Components: Tools
> Affects Versions: 2.0.0.GA
> Reporter: Dan Allen
> Fix For: 2.0.x
>
> Original Estimate: 2 hours
> Remaining Estimate: 2 hours
>
> This is a blaring bug that has someone been overlooked up until now. The generate-entities command (now generate-ui) creates pages using the naming pattern FooBar.xhtml whereas all of the other commands use the naming pattern fooBar.xhtml. We should definitely bring generate-entities in line with the rest of the crowd. It is very unconventional to start pages with uppercase characters (going by experience)
--
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
More information about the seam-issues
mailing list