Re: [appfuse-user] Struts2; override user validator

2008-07-14 Thread Matt Raible
Where did you put User-validation.xml? It should be in src/main/resources/org/appfuse/model. If it's there, Struts is probably loading one from a JAR instead. Matt On Mon, Jul 14, 2008 at 11:55 PM, Martin Homik <[EMAIL PROTECTED]> wrote: > > Matt, > > there is no Address-validator.xml in AppFuse.

Re: [appfuse-user] Struts2; override user validator

2008-07-14 Thread Martin Homik
Matt, there is no Address-validator.xml in AppFuse. There is only User-validation.xml which I copied to the right place beneath 'src' folder. Any other suggestion? Thanks, Martin mraible wrote: > > You'll need to copy the Address-validator.xml from > target/yourproject-version/WEB-INF/

Re: [appfuse-user] how to hide menu items only for ROLE_ADMIN users

2008-07-14 Thread pedro_burglin
Hi Oscar, That was a helpful idea, thanks! But I still think AppFuse should be able to handle this scenario with just standard configurations in menu-config.xml. I think ROLE_ANONYMOUS should work the same way ROLE_USER and ROLE_ADMIN do in menu-config.xml to prevent hacking in menu.jsp but... L

Re: [appfuse-user] adding model classes in different packages

2008-07-14 Thread Matt Raible
Yes, this should be possible. However, if you want to use AMP to generate your classes, you'll have to put them in the model package initially and then refactor them after generating your code. Matt On Mon, Jul 14, 2008 at 2:01 AM, alibehzadian <[EMAIL PROTECTED]> wrote: > > Hi, > > I want to cre

Re: [appfuse-user] Struts2; override user validator

2008-07-14 Thread Matt Raible
You'll need to copy the Address-validator.xml from target/yourproject-version/WEB-INF/classes to src/main/resources. HTH, Matt On Mon, Jul 14, 2008 at 8:16 AM, Martin Homik <[EMAIL PROTECTED]> wrote: > > I'd like to change the user information in signup/profile. In principle, I'd > like to hide

[appfuse-user] Struts2; override user validator

2008-07-14 Thread Martin Homik
I'd like to change the user information in signup/profile. In principle, I'd like to hide the State/Provence input field. So I did the following steps: 1. copied User validation from target to src folder 2. out-commented the field with name "user.address.province" in the user validator 3. copied

[appfuse-user] adding model classes in different packages

2008-07-14 Thread alibehzadian
Hi, I want to create some packages for my domain model, one for core entities and one for other entities. Is it possible? I am using AppFuse 2.0.2. Thanks, Ali Behzadian Nejad. -- View this message in context: http://www.nabble.com/adding-model-classes-in-different-packages-tp18439153s2369p18