Re: [appfuse-user] Problem with mvn appfuse:gen and modified org.appfuse.model.User

2007-09-07 Thread Rob Hills
Hi again Matt, Just came across another problem with this one - there's also a UserActionTest class generated, also with an incorrect package declaration. Again, the source was put in the correct location (src/test/java/org/appfuse/webapp/action) but the package declaration said au.com.medimo

Re: [appfuse-user] login.xml not well formed

2007-09-07 Thread Matt Raible
It's your project, feel free to do whatever you like. ;-) Is .inc a standard name for included XML files - like jspf for JSPs? Matt On 9/7/07, Thomas Ramapuram <[EMAIL PROTECTED]> wrote: > Hi, > Is it possible to rename login.xml to login.inc? Technically > speaking login.xml is not well fo

Re: [appfuse-user] Problem with mvn appfuse:gen and modified org.appfuse.model.User

2007-09-07 Thread Rob Hills
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

[appfuse-user] login.xml not well formed

2007-09-07 Thread Thomas Ramapuram
Hi, Is it possible to rename login.xml to login.inc? Technically speaking login.xml is not well formed since it does not have a root element. Will there be any issues if we rename it to login.inc? This causes an error to be shown on eclipse ide. Regards, Thomas Ramapuram ---

Re: [appfuse-user] Issue running spring-modular-spring following the Spring+MVC tutorial

2007-09-07 Thread Matt Raible
You need to add it to core/src/main/resources/hibernate.cfg.xml. Matt On 9/7/07, dev dev <[EMAIL PROTECTED]> wrote: > Using appfuse-modular-spring as the base, i'm trying to create a Person > screen following the tutorials and for web framework, i use > http://appfuse.org/display/APF/Using+Spring

Re: [appfuse-user] Problem with mvn appfuse:gen and modified org.appfuse.model.User

2007-09-07 Thread Matt Raible
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. 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 come

Re: [appfuse-user] tutorial on appfuse-modular-spring with FreeMarker as the view?

2007-09-07 Thread dev dev
OK. I'm just thinking about using FreeMarker as the view instead of JSP 2.0+EL (since we have been using FreeMarker for a while) and keep all the rest untouched. On 9/7/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > I should mention that there's nothing to prevent you from using > FreeMarker with

[appfuse-user] Issue running spring-modular-spring following the Spring+MVC tutorial

2007-09-07 Thread dev dev
Using appfuse-modular-spring as the base, i'm trying to create a Person screen following the tutorials and for web framework, i use http://appfuse.org/display/APF/Using+Spring+MVC tutorial. Run mvn integration-test at the end to the tutorial and everything build successfully. However, got this erro

Re: [appfuse-user] Problem with mvn appfuse:gen and modified org.appfuse.model.User

2007-09-07 Thread Rob Hills
Hi Matt, Thanks for the prompt reply as allways. Firstly, I've worked around the problem, for the record, by simply changing the import statement in the generated main/java/org/appfuse/webapp/action/UserAction.java to: import org.appfuse.model.User; and now all my appfuse:gen commands work OK

Re: [appfuse-user] tutorial on appfuse-modular-spring with FreeMarker as the view?

2007-09-07 Thread Matt Raible
I should mention that there's nothing to prevent you from using FreeMarker with Spring MVC or Struts 2. However, you will need to keep the existing JSP ViewResolver in place for Spring if you want to use any of the current functionality. Matt On 9/7/07, Matt Raible <[EMAIL PROTECTED]> wrote: > On

Re: [appfuse-user] Problem with mvn appfuse:gen and modified org.appfuse.model.User

2007-09-07 Thread Matt Raible
This is probably a bug. Since you have amp.fullSource set to true, it thinks the appfusepackage is your groupId. Hopefully it's easy enough for you to change. Nevertheless, it's something we should fix. If you add it to JIRA, we'll try to fix it before 2.0. http://issues.appfuse.org/browse/APF Ma

Re: [appfuse-user] tutorial on appfuse-modular-spring with FreeMarker as the view?

2007-09-07 Thread Matt Raible
On 9/7/07, dev dev <[EMAIL PROTECTED]> wrote: > Any particular reasons why FreeMarker is not supported in Appfuse? How about > Velocity templates? Because we haven't taken the time to do it. If you'd like to contribute FreeMarker or Velocity views and support them, we'd be happy to add them. With

[appfuse-user] Problem with mvn appfuse:gen and modified org.appfuse.model.User

2007-09-07 Thread Rob Hills
Hi All, I have followed the instructions at: http://www.appfuse.org/display/APF/AppFuse+Core+Classes so I could add an attribute to the org.appfuse.model.User class that's required for my application. I've not removed anything from the User class. I now have problems with mvn appfuse:gen If

Re: [appfuse-user] tutorial on appfuse-modular-spring with FreeMarker as the view?

2007-09-07 Thread dev dev
Any particular reasons why FreeMarker is not supported in Appfuse? How about Velocity templates? Thanks dev On 9/7/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > No - FreeMarker is not supported in AppFuse. It is supported in AppFuse > Light. > > Matt > > > On 9/7/07, dev dev <[EMAIL PROTECTED]>

Re: [appfuse-user] tutorial on appfuse-modular-spring with FreeMarker as the view?

2007-09-07 Thread Matt Raible
No - FreeMarker is not supported in AppFuse. It is supported in AppFuse Light. Matt On 9/7/07, dev dev <[EMAIL PROTECTED]> wrote: > Thanks > dev > -- http://raibledesigns.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

[appfuse-user] tutorial on appfuse-modular-spring with FreeMarker as the view?

2007-09-07 Thread dev dev
Thanks dev

Re: [appfuse-user] Debugger does not stop at breakpoints when maven goal test -Dtest=UserDaoTest is run within eclipse

2007-09-07 Thread dev dev
it works. Thanks Matt. Another good article on it. http://docs.codehaus.org/display/MAVENUSER/Dealing+with+Eclipse-based+IDE On 9/7/07, Matt Raible <[EMAIL PROTECTED]> wrote: > > Try appending -Dsurefire.debug=true to your command or set your > MAVEN_OPTS to have your IDEs debug params. > > Hope

Re: [appfuse-user] after user signup there is username placed as principal, why not user pojo?

2007-09-07 Thread Matt Raible
I would try it. If it works, please open an issue in JIRA and attach the patch. Matt On 9/7/07, carbon60 <[EMAIL PROTECTED]> wrote: > > > mraible wrote: > > > > I'm fine with normalizing it - patches welcome. > > > > Two things then: > > 1. Create a static method somewhere: getCurrentUser() that

Re: [appfuse-user] Debugger does not stop at breakpoints when maven goal test -Dtest=UserDaoTest is run within eclipse

2007-09-07 Thread Matt Raible
Try appending -Dsurefire.debug=true to your command or set your MAVEN_OPTS to have your IDEs debug params. Hope this helps, Matt On 9/7/07, dev dev <[EMAIL PROTECTED]> wrote: > It seems to run fine except it doesn't stop at the breakpoints (2.0 RC1 > appfuse-modular-spring). I must be missing s

[appfuse-user] Re: Debugger does not stop at breakpoints when maven goal test -Dtest=UserDaoTest is run within eclipse

2007-09-07 Thread dev dev
BTW, i'm using m2eclipse plugin http://m2eclipse.codehaus.org/ . On 9/7/07, dev dev <[EMAIL PROTECTED]> wrote: > > It seems to run fine except it doesn't stop at the breakpoints (2.0 RC1 > appfuse-modular-spring). I must be missing some simple steps here. > > Any ideas? > > dev >

[appfuse-user] Debugger does not stop at breakpoints when maven goal test -Dtest=UserDaoTest is run within eclipse

2007-09-07 Thread dev dev
It seems to run fine except it doesn't stop at the breakpoints (2.0 RC1 appfuse-modular-spring). I must be missing some simple steps here. Any ideas? dev

Re: [appfuse-user] after user signup there is username placed as principal, why not user pojo?

2007-09-07 Thread carbon60
mraible wrote: > > I'm fine with normalizing it - patches welcome. > Two things then: 1. Create a static method somewhere: getCurrentUser() that basically contains the same code as posted previously; Does that sound about right? Where would you like the method? 2. Modify SignupController, a

Re: [appfuse-user] Setting Hibernate show_sql

2007-09-07 Thread Matt Raible
If you look in log4j.xml, you can change the logging for org.hibernate.SQL. Either that or drop a hibernate.properties into src/main/resources and override properties that way. Matt On 9/7/07, Bob Fleischman <[EMAIL PROTECTED]> wrote: > > Is there a way to set the HIbernate property show_sql to t

[appfuse-user] Setting Hibernate show_sql

2007-09-07 Thread Bob Fleischman
Is there a way to set the HIbernate property show_sql to true without running the mvn appfuse full-source command? I'm trying to debug a method and I don't need all the source to appfuse. Thanks Bob -- View this message in context: http://www.nabble.com/Setting-Hibernate-show_sql-tf4403209s23

Re: [appfuse-user] Best way to add to org.appfuse.model.User

2007-09-07 Thread Matt Raible
No, it's not possible to only include one class. The good news is these classes are unlikely to change in the future. Maybe cosmetically (javadocs, polishing, etc), but no signatures will change. Matt On 9/7/07, Rob Hills <[EMAIL PROTECTED]> wrote: > H > > On 7 Sep 2007 at 15:56, Michael Horwitz

Re: [appfuse-user] Best way to add to org.appfuse.model.User

2007-09-07 Thread Rob Hills
H On 7 Sep 2007 at 15:56, Michael Horwitz wrote: > On 9/7/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > > > Hi Michael, > > > > On 7 Sep 2007 at 14:50, Michael Horwitz wrote: > > > > > For AppFuse 2.0.X the easiest approach is simply to include the code for > > the > > > User class and modify as r

Re: [appfuse-user] after user signup there is username placed as principal, why not user pojo?

2007-09-07 Thread Matt Raible
I'm fine with normalizing it - patches welcome. Matt On 9/7/07, carbon60 <[EMAIL PROTECTED]> wrote: > > > ros wrote: > > > > Is it possible to place User pojo as principal on successful signup. > > Currently there is user name placed on signup and User pojo on login. > > > > I just ran into exact

Re: [appfuse-user] after user signup there is username placed as principal, why not user pojo?

2007-09-07 Thread carbon60
ros wrote: > > Is it possible to place User pojo as principal on successful signup. > Currently there is user name placed on signup and User pojo on login. > I just ran into exactly the same thing. This means that the following code from UserSecurityAdvice will not always work: private U

RE: [appfuse-user] transaction manager

2007-09-07 Thread benoit moraillon
Thanks ! -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Matt Raible Envoyé : vendredi 7 septembre 2007 16:40 À : users@appfuse.dev.java.net Objet : Re: [appfuse-user] transaction manager If you need a JTA transaction manager, you need to configure it i

Re: [appfuse-user] Best way to add to org.appfuse.model.User

2007-09-07 Thread Michael Horwitz
On 9/7/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi Michael, > > On 7 Sep 2007 at 14:50, Michael Horwitz wrote: > > > For AppFuse 2.0.X the easiest approach is simply to include the code for > the > > User class and modify as required: > > http://www.appfuse.org/display/APF/AppFuse+Core+Classes

Re: [appfuse-user] Best way to add to org.appfuse.model.User

2007-09-07 Thread Rob Hills
Hi Michael, On 7 Sep 2007 at 14:50, Michael Horwitz wrote: > For AppFuse 2.0.X the easiest approach is simply to include the code for the > User class and modify as required: > http://www.appfuse.org/display/APF/AppFuse+Core+Classes Thanks for that suggestion and the link. I'd obviously not loo

Re: [appfuse-user] How to Appfuse2 RC1 without Internet?

2007-09-07 Thread Matt Raible
https://appfuse.dev.java.net/servlets/ProjectDocumentList?folderID=7992 On 9/6/07, Matt Raible <[EMAIL PROTECTED]> wrote: > I need to create this download - I'll try to do it today. > > Matt > > On 9/6/07, davidOnAppfuse <[EMAIL PROTECTED]> wrote: > > > > After successfully trying M5 on a laptop o

Re: [appfuse-user] transaction manager

2007-09-07 Thread Matt Raible
If you need a JTA transaction manager, you need to configure it in Jetty. This is possible, but unnecessary since Spring provides the transaction manager. Matt On 9/7/07, benoit moraillon <[EMAIL PROTECTED]> wrote: > > > Hi appfusers, > Could you explain the following statement when jetty is laun

[appfuse-user] Best way to add to org.appfuse.model.User

2007-09-07 Thread Rob Hills
Hi All, I need to add a single attribute to the user class and was wondering what was the "recommended" way to go about this. I had thought to extend org.appfuse.model.User adding my own attributes, getters and setters, but had concerns about a couple of things: 1. What hibernate annotati

Re: [appfuse-user] execute junit tests in eclipse

2007-09-07 Thread Abel Muiño
Hi! arief wrote: > > Maybe Abel was right, that i need to configure the .classpath file > correctly so that everything can be resolved perfectly by eclipse-junit. > But i'm not sure how to do that in Candy. > Well, at the moment Candy just creates the AppFuse project, so there's no special s

Re: [appfuse-user] Best way to add to org.appfuse.model.User

2007-09-07 Thread Michael Horwitz
For AppFuse 2.0.X the easiest approach is simply to include the code for the User class and modify as required: http://www.appfuse.org/display/APF/AppFuse+Core+Classes Mike On 9/7/07, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > I need to add a single attribute to the user class and was

[appfuse-user] transaction manager

2007-09-07 Thread benoit moraillon
Hi appfusers, Could you explain the following statement when jetty is launched : 2007-09-07 11:52:10.682::INFO: No Transaction manager found - if your webapp re quires one, please configure one. Thanks, -- Benoît Moraillon

Re: [appfuse-user] Problem with Spring exception mapping: UnexpectedRollbackException

2007-09-07 Thread Michael Horwitz
Bad choice of words on my part! I was refering to your own transaction advice as illustrated in the Spring configuration snippet you posted. I'm not entirely sure which version of AppFuse you are using, but by default AppFuse provides a transaction advice that is configured like so:

Re: [appfuse-user] Problem with Spring exception mapping: UnexpectedRollbackException

2007-09-07 Thread Marco Papini
Uhm... I don't think I've added any custom interceptor, but may be I've introduced the issue while upgrading the appfuse version... can you suggest me where to start looking? Il giorno 07/set/07, alle ore 10:33, Michael Horwitz ha scritto: Delved into this the only way I know how - took a qu

Re: [appfuse-user] Dynamic forms with Spring MVC

2007-09-07 Thread Michael Horwitz
On 9/7/07, gederer <[EMAIL PROTECTED]> wrote: > > > Looks like there are problems with LazyList and Hibernate: > > http://forum.springframework.org/showthread.php?p=140315 > http://forum.springframework.org/showthread.php?p=140315 > > Could I avoid LazyList by overriding a Spring controller method.

Re: [appfuse-user] Problem with Spring exception mapping: UnexpectedRollbackException

2007-09-07 Thread Michael Horwitz
Delved into this the only way I know how - took a quick dip in the Spring source code. Judging by the exception message you have, it seems Spring is not recognising the exception being thrown as one it should roll back the transaction for and is still trying to commit the transaction. You config lo

Re: [appfuse-user] Dynamic forms with Spring MVC

2007-09-07 Thread gederer
Looks like there are problems with LazyList and Hibernate: http://forum.springframework.org/showthread.php?p=140315 http://forum.springframework.org/showthread.php?p=140315 Could I avoid LazyList by overriding a Spring controller method. Looking at the docs, I see that bindAndValidate() is a fi

Re: [appfuse-user] Dynamic forms with Spring MVC

2007-09-07 Thread gederer
Thanks for the reply. I've seen this page. It provides a useful starting point; though, it doesn't specifically address building forms dynamically in the browser (it builds forms dynamically in JSP). If I just add form elements with names like commandObj.collection[index].propName, will my Simpl

Re: [appfuse-user] appfuse:full-source works on modular projects on Appfuse2.0 RC1?

2007-09-07 Thread fadhli
Thanks for the tip. My spring-modular full source ran smoothly. On 9/7/07, dev dev <[EMAIL PROTECTED]> wrote: > > will do Thanks Matt. To work around it, just run "dos2unix" (assuming you > have cygwin installed on your machine) against all the pom.xml and > everything should work fine. > > dev. >

[appfuse-user] Problem with Spring exception mapping: UnexpectedRollbackException

2007-09-07 Thread Marco Papini
Hi all, I wish to report an issue I can't completely understand. In my application I created a BusinessManager to hold all business- logic methods that need to be ran in the same transaction, and declared it in applicationContext-service.xml to rollback on a BusinessMethodException

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

2007-09-07 Thread nessus
Matt, yes, exactly the same problem. I have runmvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0-rc1 -DgroupId=com.mycompany.app -DartifactId=myproject and succes

Re: [appfuse-user] many-to-many self-reference with JPA

2007-09-07 Thread Matt Raible
Thanks for sharing. Matt On 9/7/07, gederer <[EMAIL PROTECTED]> wrote: > > Hi, > > I figured this out with some help from the persistence-glassfish folks (who > can make JPA do back flips, and are terrific helpers!) > > Here's the solution, in case anyone's interested: > > @ManyToMany >

Re: [appfuse-user] Dynamic forms with Spring MVC

2007-09-07 Thread Michael Horwitz
Presumably you would hold the references to the addresses in a list, in which case you simply use an index to reference them and Spring will be able to bind your objects at will. An example/discussion here: http://mattfleming.com/node/134 Mike On 9/7/07, gederer <[EMAIL PROTECTED]> wrote: > > > H

[appfuse-user] Dynamic forms with Spring MVC

2007-09-07 Thread gederer
Hi, I have a form that requires managing master-detail relationships. A simplified example would be a person form where a person can have many addresses. What I'd like to to do is use JavaScript to add new address detail sub-forms to the person form on the same page. So, the user would click an

Re: [appfuse-user] running 2.0 RC1 with Eclipse Europa WTP

2007-09-07 Thread Michael Horwitz
Many people use AppFuse successfully with Eclipse. What is the specific problem? And have you set up Eclipse to work with Maven: http://maven.apache.org/plugins/maven-eclipse-plugin/usage.html? The latter is the most common issue in using AppFuse with Eclipse. Mike On 9/6/07, dev dev <[EMAIL PROT

Re: [appfuse-user] many-to-many self-reference with JPA

2007-09-07 Thread gederer
Hi, I figured this out with some help from the persistence-glassfish folks (who can make JPA do back flips, and are terrific helpers!) Here's the solution, in case anyone's interested: @ManyToMany @JoinTable( name="parent_child_category", [EMAIL PRO