Re: [appfuse-user] appfuse 2 - Can I use the @spring.validator tag?

2007-09-09 Thread Matt Raible
We plan on supporting some sort of validation annotations in the future, possibly Hibernate's Validation framework. For now, you'll need to edit validation.xml. If you add specify a property is not-null using JPA annotations - a required rule will be generated for you when using AMP. Matt On 9/10

Re: [appfuse-user] How to pass parameters from 1 action to another, 1 JSP to another with WW2?

2007-09-09 Thread Matt Raible
If you use a "chain" type of result, it should pass everything to the next Action. Matt On 9/10/07, BruceLee <[EMAIL PROTECTED]> wrote: > > Team, > > When I search in this form, I actually found the same question, which asked > for a Spring solution. However, I'd like a simpler way, e.g. some con

Re: [appfuse-user] Spring MVC : Multiple Form in One View?

2007-09-09 Thread Matt Raible
Your "commandClass" would have two nested objects with getters and setters. Then in your JSP, you would refer to them as command.nested1.property and command.nested2.property. Matt On 9/10/07, BruceLee <[EMAIL PROTECTED]> wrote: > > May I ask how to do that? My experiment appears not to work. Whe

Re: [appfuse-user] Deleting tables

2007-09-09 Thread Matt Raible
The hibernate3-maven-plugin drops tables by default. Comment out the true in your pom.xml to change this behavior. Matt On 9/10/07, TransWebT <[EMAIL PROTECTED]> wrote: > > I am a new user of AppFuse 2.0 (RC1). I'm having the same problem - every > time I restart the server using mvn jetty:run,

Re: [appfuse-user] Appfuse application developpement

2007-09-09 Thread Matt Raible
What's the URL the menu is trying to go to? What web framework are you using? On 9/10/07, ramcis <[EMAIL PROTECTED]> wrote: > > I'm using appfuse 1.9.4, I'm trying to build an application to manage books. > I just created a class Book and I generated all stuff needed for CRUD > operation. but when

[appfuse-user] How to pass parameters from 1 action to another, 1 JSP to another with WW2?

2007-09-09 Thread BruceLee
Team, When I search in this form, I actually found the same question, which asked for a Spring solution. However, I'd like a simpler way, e.g. some config in xwork.xml and in JSP. When passing parameter requests to a controller (as request parameters in the URL), is there a way for passing those

Re: [appfuse-user] Spring MVC : Multiple Form in One View?

2007-09-09 Thread BruceLee
May I ask how to do that? My experiment appears not to work. When I click the inner form 'Submit', it still calls outer form's action. Thanks! -Bruce mraible wrote: > > You should be able to nest two forms (or data holders) in a parent data > holder. > > Matt > > On 9/9/07, BruceLee <[EMAIL

Re: [appfuse-user] Deleting tables

2007-09-09 Thread TransWebT
I am a new user of AppFuse 2.0 (RC1). I'm having the same problem - every time I restart the server using mvn jetty:run, the default tables (i.e. user table) are dropped and recreated. Since 2.0 uses maven, how would I go about performing an operation similar to the ant script edit described bel

[appfuse-user] Appfuse application developpement

2007-09-09 Thread ramcis
I'm using appfuse 1.9.4, I'm trying to build an application to manage books. I just created a class Book and I generated all stuff needed for CRUD operation. but when I clicked on menu item to view the list of books I get the following error : page not found. I didn't change any of generated cod

Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-09 Thread nessus
Joe, thank you very much, you cleared my burning issue. But would show us the commands you succeeded step by step? I dont know when to run mvn clean and others. That is, I need a manual clear like the QuickStart. thanks again for your fabulous work and kindest regards, Nessus. jkrugler wrote:

[appfuse-user] appfuse 2 - Can I use the @spring.validator tag?

2007-09-09 Thread Bob Fleischman
or is there anything like it? I know you've dropped xdoclet but editing validation.xml is messy and I'd love to just put the support in the bean. Bob -- View this message in context: http://www.nabble.com/appfuse-2---Can-I-use-the-%40spring.validator-tag--tf4411626s2369.html#a12585146 Sent fro

[appfuse-user] ValidWhen/RequiredIf

2007-09-09 Thread Aled Rhys Jones
Hi all I need to validate some fields only if the user has specific roles. How do I do this? For example, I don't want to force the user to have to specify a country unless they're an administrator. I've had a look at requiredIf and validwhen, I think requiredIf is now depricated. I'm not

Re: [appfuse-user] Redirect Action doesn't like in Struts 2 archetype

2007-09-09 Thread dusty
The solution from Mike works. My variables in struts.xml that were getting replaced were ${provider.id} and ${id}. It was weird because something like ${contact.provider.id} would not get replaced. How can I look at what is replaced with filter=true in the process-resources goal? -D Mike Hor

Re: [appfuse-user] pass parameter at sumbit form

2007-09-09 Thread Matt Raible
If you want the result to have that URL, you can do a redirect. Struts 2 allows the redirect parameters to be dynamic. http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect Otherwise, if you want the value to be posted when submit the form - put the name/value in a hidden field. Matt

Re: [appfuse-user] Spring MVC : Multiple Form in One View?

2007-09-09 Thread Matt Raible
You should be able to nest two forms (or data holders) in a parent data holder. Matt On 9/9/07, BruceLee <[EMAIL PROTECTED]> wrote: > > I have same issue. On profile page, I want to upload several files (user's > picture, favorite things). When user clicks "Upload Picture", a choose file > window

Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-09 Thread Matt Raible
On 9/9/07, jkrugler <[EMAIL PROTECTED]> wrote: > > Nessus, > > I have encountered the same issue as you described. I tracked the problem > down to struts.xml being included in > /target/warpath/appfuse-struts-2.0-rc1.warpath.jar. To fix the problem I > added struts.xml to the warpathExcludes of t

[appfuse-user] pass parameter at sumbit form

2007-09-09 Thread BruceLee
Team, I'd like to pass parameter to action at sumbitting a form. However I searched this forum and no luck. e.g when I click 'upload' button, I want to get result url my.com/profileUpload.html?item=myPicture How can I accomplish it from form below? ... " /> Thanks a lot in advance! -

Re: [appfuse-user] Spring MVC : Multiple Form in One View?

2007-09-09 Thread BruceLee
I have same issue. On profile page, I want to upload several files (user's picture, favorite things). When user clicks "Upload Picture", a choose file window pops up, after "OK", it returns the profile page and show the recent uploaded picture. I tried to put a > Hello, > > I would like to ask

Re: [appfuse-user] exception in "mvn jetty:run"

2007-09-09 Thread jkrugler
Nessus, I have encountered the same issue as you described. I tracked the problem down to struts.xml being included in /target/warpath/appfuse-struts-2.0-rc1.warpath.jar. To fix the problem I added struts.xml to the warpathExcludes of the maven-warpath-plugin section of my pom.xml. After makin

Re: [appfuse-user] Error executing database operation: CLEAN_INSERT

2007-09-09 Thread Dale Newfield
Dale Newfield wrote: generator-class="increment" Quoted from http://www.hibernate.org/hib_docs/v3/reference/en/html/mapping.html#mapping-declaration-id-generator: increment generates identifiers of type long, short or int that are unique only when no other process is inserting data into the

Re: [appfuse-user] Error executing database operation: CLEAN_INSERT

2007-09-09 Thread Dale Newfield
Matt Raible wrote: Can you please enter an issue for this in JIRA? Feel free to link back to this thread (via nabble). I don't know if this works in all DBs, and I don't know how to translate to JPA, but I use postgresql, hibernate, and xdoclet to set generator-class="increment" and it magi

Re: [appfuse-user] Error executing database operation: CLEAN_INSERT

2007-09-09 Thread Matt Raible
Can you please enter an issue for this in JIRA? Feel free to link back to this thread (via nabble). Matt On 9/8/07, Rob Hills <[EMAIL PROTECTED]> wrote: > Hi Matt, > > On 8 Sep 2007 at 3:08, Matt Raible wrote: > > > Yeah, negative keys is probably the way to go. Maybe we should have a > > "dev"