[appfuse-user] Struts2 Many-to-one New Record Save problem (JSP Drop down)

2009-05-08 Thread sudhakargupta
Hi Matt, In appfuse2 struts i written the many-to-one relationship code like this Purchase.java @ManyToOne (targetEntity=User.class) @JoinColumn (name="user_id", nullable=flase) private User user; PurchaseAction.java: (appended code) public List getUsers() { return userManager.getUsers(ne

[appfuse-user] Turn off CLEAN_INSERT behaviour (appfuse, dbunit)

2009-05-08 Thread malteseunderdog
Hi can anyone tell me how to turn off the automatic dropping and re-creation of the tables (who wants this ? after spending half an hour importing test data!). This is really annoying and you would think this question FAQ material (it is not). I looked all over the place for an answer - I must

Re: [appfuse-user] Turn off CLEAN_INSERT behaviour (appfuse, dbunit)

2009-05-08 Thread Bini MukundanVisalakshy
In the pom.xml, just comment out dbunit-maven-plugin This is what i did to avoid that. see the following section for example:It worked out for me. But when you build you can it is trying create the table and unsuccessful messages. It won't create any build error. I couldn't find out the section

Re: [appfuse-user] Turn off CLEAN_INSERT behaviour (appfuse, dbunit)

2009-05-08 Thread Bini MukundanVisalakshy
In the pom.xml, just comment out dbunit-maven-plugin This is what i did to avoid that. see the following section for example:It worked out for me. But when you build you can see it is trying create the table and unsuccessful messages. It won't create any build error. I couldn't find out the sec

[appfuse-user] OC4J

2009-05-08 Thread Bini MukundanVisalakshy
Is anyone able to deploy Appfuse 2.0 -struts using OC4J? CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally privileged information. It is solely for the use of the intended recipient(s). Unauthorized interception, review, use or disclosure is

[appfuse-user] [Appfuse-Users] AppFuse or Patterns Manual to develop

2009-05-08 Thread Leonardo CastaƱo
Can anyone recommend a good manual of appfuse or techniques for working with their patterns used in it???I dont know where put what ... The appfuse project have a lot of packages and I like know how to use every one of this packages and for what ... I have already read the www.appfuse.org and stil

Re: [appfuse-user] OC4J

2009-05-08 Thread DUSTIN PEARCE
What error are you getting? That being said OC4J kind of stinks. On May 8, 2009, at 1:27 PM, "Bini MukundanVisalakshy" > wrote: Is anyone able to deploy Appfuse 2.0 -struts using OC4J? CONFIDENTIALITY NOTICE: This communication with its contents may contain confidential and/or legally pr

Re: [appfuse-user] Turn off CLEAN_INSERT behaviour (appfuse, dbunit)

2009-05-08 Thread DUSTIN PEARCE
There are a few things you can do. The first is move dbunit and hibernate to their own profiles. Then when you want them you can include -Pdb-setup or -Pdb-reset or whatever you name the profiles. So if I want to create the production database and seed it with data you would use -Pprod,

Re: [appfuse-user] Struts2 Many-to-one New Record Save problem (JSP Drop down)

2009-05-08 Thread DUSTIN PEARCE
If you want the new User account to save automatically when you save the purchase the add cascade=CascadeType.MERGE to your @ManyToOne. Although usually in a Many to One the "one" exists first but you pattern could be different. If cascade is not going to work for you then you need to save

Re: [appfuse-user] Struts2 Many-to-one New Record Save problem (JSP Drop down)

2009-05-08 Thread sudhakargupta
This is not solve the problem but it shows an error like not null values of the user object on save, please suggest me to solve this problem. dusty wrote: > > If you want the new User account to save automatically when you save > the purchase the add cascade=CascadeType.MERGE to your @ManyTo

[appfuse-user] If - else sentences

2009-05-08 Thread foward
Hello everyone, I have one question: how can i get the If - else sentences with ? I ask that because when I try to do, for example : do something http://www.nabble.com/If---else-sentences-%3Cc%3A-tag-tp23457756s2369p23457756.html Sent from the AppFuse - User mailing list archive at Nabble