[appfuse-user] Catch HibernateException in Service Layer

2007-12-26 Thread Rene Guenther
How can I catch exceptions thrown by hibernate, like ConstraintViolationException in the service layer. This one is converted by Spring to DataIntegrityViolationException. But I can only catch it in *.webapp.action.*Form.java Regards René -- View this message in context: http://www.nabble.com/C

[appfuse-user] PDF report is blank using the Tutorial of springMVC and JasperReport with appfuse 1.9.4

2007-12-26 Thread srinu_037
Hi I am using appfuse1.9.4 followed the tutorial on springMVC with JasperReport the testcase is runnig successful and the pdf report generated is blank. Code: inline; filename=report.html inline; filename=report.csv inline; filenam

Re: [appfuse-user] "LEFT JOIN" in hibernate

2007-12-26 Thread Dale Newfield
[EMAIL PROTECTED] wrote: Is there specific annotation to tell hibernate to use "LEFT JOIN" relation ? I don't understand your question, as a relationship is amongst data. "Left join" is a term talking about the structure of a query to retrieve data. I've tried @JoinColumn(name = "OtherId",

Re: [appfuse-user] Better way to modify User/UserDao/UserManager

2007-12-26 Thread [EMAIL PROTECTED]
Just to report back. After a couple of hours of changes I got everything to compile, but the unit tests were failing. It involved quite a bit of selectively copying User-related/impacted source to my projects source tree, then the imports usually needed modification. I think at this point I will

Re: [appfuse-user] Help with Spring 2.5 annotation

2007-12-26 Thread Le Anh Tuan
Hi Matt, I tried as you suggest, but the problem is Spring can not @Autowired property value, such as:   . I read through Spring 2.5 reference docs (Chapter 3 The IoC containner) but could not find example for this case. I know this is not Spring mailling list but any more suggestion should hel

[appfuse-user] AspectJ syntax for Appfuse 2

2007-12-26 Thread dev dev
what is this wildcard expression "*..service" mean and can someone point me to the documentation on pointcut language and its regular expression definition? in the applicationContext-service.xml, Thanks dev

Re: [appfuse-user] Help with Spring 2.5 annotation

2007-12-26 Thread Matt Raible
You might try the following: I believe the first detects @Controller, @Service and @Repository. Matt On 12/26/07, Le Anh Tuan <[EMAIL PROTECTED]> wrote: > Hello, > I have upgraded to AppFuse 2.0.1 with Spring 2.5 and found that Spring > 2.5 annotation feature is great. I w

RE: [appfuse-user] xfire defines all fields in wsdl

2007-12-26 Thread GAFFAR Abdul Khaliq
Fred, I have also encountered the same problem .This happens with userService Web service which ships with appfuse.Only way I solved this issue was by defining getter and setter methods. Regards, Khaliq From: Fred Forester [mailto:[EMAIL PROTECTED] Sent:

[appfuse-user] Help with Spring 2.5 annotation

2007-12-26 Thread Le Anh Tuan
Hello, I have upgraded to AppFuse 2.0.1 with Spring 2.5 and found that Spring 2.5 annotation feature is great. I want to change this bean's XML definition below to spring annotation: I configured the class like this: @Service publ

[appfuse-user] "LEFT JOIN" in hibernate

2007-12-26 Thread ernasm
Hi, Is there specific annotation to tell hibernate to use "LEFT JOIN" relation ? I've tried @JoinColumn(name = "OtherId", nullable=true) but does not work and keep giving "object references an unsaved transient instance - save the transient instance before flushing" error when I tried to save obje

[appfuse-user] xfire defines all fields in wsdl

2007-12-26 Thread Fred Forester
Hi All, I have 2 services (hibernate daos) one does a select * works fine. another does a select fld1,fld2 and xfire bombs out with org.codehaus.xfire.XFireRuntimeException: Couldn't get property {http://mode l.reductions.epstrategies.com}adjtime from bean [Ljava.lang.Object;@1301061. seems t

Re: [appfuse-user] Better way to modify User/UserDao/UserManager

2007-12-26 Thread [EMAIL PROTECTED]
Thanks for answering on your vacation Matt. I am going to take a deeper look at the second option, it sounds like just what I want. -- View this message in context: http://www.nabble.com/Better-way-to-modify-User-UserDao-UserManager-tp14499981s2369p14504189.html Sent from the AppFuse - User ma

Re: [appfuse-user] Patches for appfuse generator when using component

2007-12-26 Thread Matt Raible
Did JIRA throw a NPE when you first accessed the site? If so, it's likely cookie-related. If you delete your cookies and try again, it should work. Matt On 12/26/07, Bob Fleischman <[EMAIL PROTECTED]> wrote: > > appfuse Spring MVC Basic - Version 2.01 > > I created a new POJO that had an embedded

[appfuse-user] Patches for appfuse generator when using component

2007-12-26 Thread Bob Fleischman
appfuse Spring MVC Basic - Version 2.01 I created a new POJO that had an embedded Address object. This caused the maven plugin, appfuse:gen, to fault with errors in some of the Freemarker templates. By comparing the Spring templates to the Struts templates I found the problem, a missing test for

Re: [appfuse-user] Import of a JSP

2007-12-26 Thread Matt Raible
You can't load a JSP from outside the webapps directory - unless you use a symlink or use to load it from another running web server. Matt On 12/26/07, soussou97 <[EMAIL PROTECTED]> wrote: > > Hi; > > How to retreive the content of a external JSP located in : C:/jsp/F1.jsp in > another JSP locat

Re: [appfuse-user] Better way to modify User/UserDao/UserManager

2007-12-26 Thread Matt Raible
The easiest thing to do is to run "appfuse:full-source". If you're against that, you could create new versions of these classes, change the package names, and then override the bean definitions in your applicationContext.xml file. Matt On 12/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >

[appfuse-user] Import of a JSP

2007-12-26 Thread soussou97
Hi; How to retreive the content of a external JSP located in : C:/jsp/F1.jsp in another JSP located in the Webapp directory: ../WEB-INF/webapps/jsp/F2.jsp ? Regards; -- View this message in context: http://www.nabble.com/Import-of-a-JSP-tp14503861s2369p14503861.html Sent from the AppFuse - Us

Re: [appfuse-user] Re[appfuse-user] moving unnecessary struts menu from login page

2007-12-26 Thread Matt Raible
If you look in login.jsp - you should see logic that only shows it on the login page. If you add a role attribute to the login menu in menu-config.xml, it'll hide the menu when you're not logged in. Matt On 12/26/07, kagan <[EMAIL PROTECTED]> wrote: > > Hi: > > If you'll take a look at the login

[appfuse-user] Re[appfuse-user] moving unnecessary struts menu from login page

2007-12-26 Thread kagan
Hi: If you'll take a look at the login page you'll recognize that you have a menu with one link to the same page (i.e. login.jsp) I'd like to know how can I remove the menu with that link from login page? Thanks in advance, Roman -- View this message in context: http://www.nabble.com/Removin