Hi Matt,

On 7 Sep 2007 at 23:23, Matt Raible wrote:

> So you're saying that UserAction is being ovewritten by appfuse:gen?
> That seems like a bug in itself. AMP should never overwrite any
> AppFuse core classes.

Yes, that's what seems to be happening.  In case it helps, I noticed after 
sending my previous email that the 
package for the UserAction class was wrong - it was my app package rather than 
the org.appfuse.webapp.action 
package that it should have been - noticed that when I opened it in Eclipse.  
The class was in the correct folder (ie 
org/appfuse/webapp/action) but the package declaration inside was wrong.

> It's likely that you're trying to do something with "User" in relation
> to generating things and that's somewhat of a reserved word when it
> comes to AppFuse. In Java, it's not because of packages and such.
> However, I don't think we've done anything special to handle this.
> 
> Did you generate code for your own User POJO?

Originally I'd tried to create my own User class extending the AppFuse one.  
Obviously that didn't work and so I 
deleted my User class and followed the AppFuse Core Classes tutorial instead.  
I had done a mvn clean in the 
interim (though I expect that mvn clean wouldn't clear out artifacts generated 
by appfuse:gen) and manually deleted 
the generated Java artifacts, but maybe there was something left lurking around 
from my original foray with my own 
User class.

HTH,
Rob Hills
Waikiki, Western Australia
Mobile +61 (412) 904-357
Fax: +61 (8) 9529-2137

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to