Letractively / jcatapult

Automatically exported from code.google.com/p/jcatapult
0 stars 0 forks source link

Scaffolder recommends path names which don't work #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a new project
2. Create a domain entity with a two-word, camel-case name like
"EvolutionAccounts"
3. Run the scaffolder with the "crud" argument
4. Use all of the suggested information for that entity name. Here's what
my default recommendations were:
    Type: crud
    Domain class: com.texturemedia.boogerface.domain.EvolutionAccount
    URL: /admin/evolutionAccounts
    Action package: com.texturemedia.boogerface.action.admin.evolutionAccounts
    Service package: com.texturemedia.boogerface.service
5. Go to /admin/evolutionAccounts/. It works. Go to
/admin/evolutionAccounts/add. It works. Submit info for a new evolution
account, and it responds with:

Struts Problem Report

Struts has detected an unhandled exception:
# Messages:     There is no Action mapped for namespace
/admin/evolutionAccounts and action name save.
...stack trace ensues...

What version of the product are you using? On what operating system?
1.0-RC1, WinXPSP2

Please provide any additional information below.
leafknode and I were talking about this, and we thought one possible
solution was to just make AbstractScaffolder.makePropertyName() return a
toLowerCase()d version of the String you give it. But I tried it and it
breaks something else. I get a "Error!" page when visiting the crud URL (I
don't know why at the moment).

I'm happy to provide more details if you need.

Original issue reported on code.google.com by rtgam...@gmail.com on 20 May 2008 at 6:08

GoogleCodeExporter commented 8 years ago
We have implemented better suggestion handling.  Hopefully this resolves all 
the issues.

Original comment by leafkn...@gmail.com on 21 May 2008 at 8:35