Re: [appfuse-user] Child records get saved by only saving parent record?

2007-04-10 Thread Jong Hian Zin
I disabled OpenSessionInViewFilter, and it seems to work as I expected. Can anyone explain how this OpenSessionInViewFilter actually affect saving? Basically I have a form bean; public class FormBean { private Parent parent; private List children; // with getters and setters } In my

[appfuse-user] how to get message source without dependency Injection?

2007-04-10 Thread thinkboy
sorry for such an ignorance question. how can i get message source from programming API, not via DI. i did the following but failed. the log is not able to show "myapp". pls help. ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(context); String message = ctx

Re: [appfuse-user] Child records get saved by only saving parent record?

2007-04-10 Thread Gary White
You'll probably need to post your code in order to receive help. - Original Message From: Jong Hian Zin <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Tuesday, April 10, 2007 11:57:03 PM Subject: Re: [appfuse-user] Child records get saved by only saving parent record? I have c

Re: [appfuse-user] Child records get saved by only saving parent record?

2007-04-10 Thread Jong Hian Zin
I have checked the hibernate mapping files, there is no relationship defined at all. On 4/11/07, Luke McLean <[EMAIL PROTECTED]> wrote: Check your mapping (I think that 1.9.4 uses XDoclet tags in the classes to define the relationships), it sounds like hibernate has been set up to cascade updat

Re: [appfuse-user] Child records get saved by only saving parent record?

2007-04-10 Thread Luke McLean
Check your mapping (I think that 1.9.4 uses XDoclet tags in the classes to define the relationships), it sounds like hibernate has been set up to cascade updates through a relationship between the two classes (parent/child). Therefore when you update the parent it will automatically cascade that

Re: [appfuse-user] Child records get saved by only saving parent record?

2007-04-10 Thread Jong Hian Zin
1.9.4 On 4/11/07, Matt Raible <[EMAIL PROTECTED]> wrote: What version of AppFuse are you using? On 4/10/07, Jong Hian Zin <[EMAIL PROTECTED]> wrote: > Hi all, > > I did not specify any relationship between tables, but only relate > them in the form bean. In the onSubmit() method, I only want to

Re: [appfuse-user] Child records get saved by only saving parent record?

2007-04-10 Thread Matt Raible
What version of AppFuse are you using? On 4/10/07, Jong Hian Zin <[EMAIL PROTECTED]> wrote: Hi all, I did not specify any relationship between tables, but only relate them in the form bean. In the onSubmit() method, I only want to save the parent record, but all the child records get saved as w

[appfuse-user] Child records get saved by only saving parent record?

2007-04-10 Thread Jong Hian Zin
Hi all, I did not specify any relationship between tables, but only relate them in the form bean. In the onSubmit() method, I only want to save the parent record, but all the child records get saved as well. I wonder how does Spring MVC know the relationship? Is it through the form bean? Thanks,

Re: [appfuse-user] Changing User.java

2007-04-10 Thread bUg. -=[R0CK]=-
Thank you for help. 2007/4/11, Matt Raible <[EMAIL PROTECTED]>: You have to use the same package, but you can alter it using the following instructions: http://appfuse.org/display/APF/AppFuse+Core+Classes Matt On 4/10/07, bUg. -=[R0CK]=- <[EMAIL PROTECTED]> wrote: > I want to replcae org.app

Re: [appfuse-user] Changing User.java

2007-04-10 Thread Matt Raible
You have to use the same package, but you can alter it using the following instructions: http://appfuse.org/display/APF/AppFuse+Core+Classes Matt On 4/10/07, bUg. -=[R0CK]=- <[EMAIL PROTECTED]> wrote: I want to replcae org.appfuse.model.User with my class User. How I can do it? -- http://ra

Re: [appfuse-user] struts2 select

2007-04-10 Thread Matt Raible
Can you try with a LabelValue object as your population mechanism? I believe I read something about how it didn't support Object types in one of the recent releases. Matt On 4/10/07, J. David Mendoza <[EMAIL PROTECTED]> wrote: I just can't seem to make the s:select work, can someone give some

[appfuse-user] Changing User.java

2007-04-10 Thread bUg. -=[R0CK]=-
I want to replcae org.appfuse.model.User with my class User. How I can do it?

[appfuse-user] struts2 select

2007-04-10 Thread J. David Mendoza
I just can't seem to make the s:select work, can someone give some pointers... I keep getting NullPointerExceptions... Thanks... David M. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROT

[appfuse-user] JPA: Adding classes to persistence.xml NOT optional

2007-04-10 Thread citynomad
Just something I noticed while working through the Persistence and JPA tutorials: When I created a new model class, annotated it and ran "mvn compile hibernate3:hbm2ddl", it did not find my class and did not create a table for it. Only when I added the class name to persistence.xml did everythin

Re: [appfuse-user] AppFuse 2.0 AND ACEGI integration

2007-04-10 Thread Matt Raible
I don't know if I'd use this tutorial with the latest version of Acegi. I believe the wrote a new way of doing ACLs. http://acegisecurity.org/docbook/acegi.html#after-invocation-acl-aware Personally, I haven't implemented ACLs in a product application (only in sample applications), so I can't r

[appfuse-user] AppFuse 2.0 AND ACEGI integration

2007-04-10 Thread nmall
Hi, I am looking at http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAcegiACLAddModelsAndHibernate http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAcegiACLAddModelsAndHibernate and realize this is for Appfuse 1.x. Now, does 2.0 M4 have all this integrated into a jar file, since the t

Re: [appfuse-user] SpringMVC can do Generic Controllers

2007-04-10 Thread Ivan Garcia
Well, I'm gonna eat a bit of my own dog food! I'm just starting on a project and I'm planing to use this kind of controllers,one for SearchForms and other for CRUD. I'd take it even a bit further and will try to guess most of the configuration bits just from the command class name ... I know tha

Re: [appfuse-user] contract position

2007-04-10 Thread ros
Hi Clark, Your message posted as a reply on my struts locale problem message. Not sure everyone in the forum got your message. Try to repost the message in the forum root branch. Your offer sounds good to me, except moving to MN - too far :) If outsourcing is acceptable I can participate. Regar

Re: [appfuse-user] Filter ?

2007-04-10 Thread Nathan Anderson
Hehe... I just assumed you remembered since you were involved in the discussion the first time around ;) Sanjiv Jivan wrote: No points for guessing why I found it :) On 4/10/07, *Nathan Anderson* <[EMAIL PROTECTED] > wrote: I knew that came up before... I didn

Re: [appfuse-user] Unable to access article on AppfuseSecurity

2007-04-10 Thread Matt Raible
I believe you're looking for: http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAcegiACL Matt On 4/10/07, nmall <[EMAIL PROTECTED]> wrote: Hi, I am unable to access the following article : How to use Acegi Security to control access to objects with ACLs. It is on the AppfuseSecurity link -

Re: [appfuse-user] database settings multi user

2007-04-10 Thread tibi
what i finaly did is the following: added this into my pom.xml user.properties and check that this is already set: true and in user.properties (which will not be added to source control): jdbc.url=jdbc:mysql://localh

[appfuse-user] Unable to access article on AppfuseSecurity

2007-04-10 Thread nmall
Hi, I am unable to access the following article : How to use Acegi Security to control access to objects with ACLs. It is on the AppfuseSecurity link - http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSecurity http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseSecurity . I thought this would

Re: [appfuse-user] Filter ?

2007-04-10 Thread Sanjiv Jivan
No points for guessing why I found it :) On 4/10/07, Nathan Anderson <[EMAIL PROTECTED]> wrote: I knew that came up before... I didn't find the issue because license was misspelled in the issue ;) Nathan Sanjiv Jivan wrote: > http://issues.appfuse.org/browse/APF-86 > > I think Matt only adde

Re: [appfuse-user] Filter ?

2007-04-10 Thread Nathan Anderson
I knew that came up before... I didn't find the issue because license was misspelled in the issue ;) Nathan Sanjiv Jivan wrote: http://issues.appfuse.org/browse/APF-86 I think Matt only added a readme.txt. A Wiki page is for this is great as it gives users more visibility into the Licence t

Re: [appfuse-user] Filter ?

2007-04-10 Thread Sanjiv Jivan
http://issues.appfuse.org/browse/APF-86 I think Matt only added a readme.txt. A Wiki page is for this is great as it gives users more visibility into the Licence terms of the libraries used. On 4/10/07, Nathan Anderson <[EMAIL PROTECTED]> wrote: I think there was discussion about making a wi

Re: [appfuse-user] Cacheing question

2007-04-10 Thread Michael Horwitz
No. Caching is enabled/disabled per persistent entity. You would need to add the necessary caching strategy either in the configuration for each persistent entity, or you need to add the caching instructions in the hibernate config file. The entries in the configuration element below is simply a m

[appfuse-user] Cacheing question

2007-04-10 Thread romsrini
In the appfuse jars, in the applicationContext-dao.xml file, the following configuration snippet exists: hibernate.dialect=${hibernate.dialect} hibernate.query.substitutions=true 'Y', false 'N' hibernate.cache.us

[appfuse-user] hibernate get one-to-many collection empty after update of parent

2007-04-10 Thread PSI
Hi, I am using appfuse 1.9.4, After executing update via manager; in my struts action, when i try to get collection one-to-many it is always returns empty and it does not even invoke hibernate sql on console. But if i execute completely different call from some other struts action, i do get the

Re: [appfuse-user] ACEGI Security and Hibernate

2007-04-10 Thread Nathan Anderson
This is also related to that FAQ that Matt linked: http://appfuse.org/display/APF/FAQ#FAQ-whereisthesource Nathan nmall wrote: Actually, I am trying to understand how ACEGI security as well as hibernate are integrated into Appfuse. It looks like 2.0-M4 has all the steps in http://raibledesig

[appfuse-user] ACEGI Security and Hibernate

2007-04-10 Thread nmall
Actually, I am trying to understand how ACEGI security as well as hibernate are integrated into Appfuse. It looks like 2.0-M4 has all the steps in http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAuthentication http://raibledesigns.com/wiki/Wiki.jsp?page=AppFuseAuthentication packaged into

Re: [appfuse-user] Filter ?

2007-04-10 Thread Nathan Anderson
I think there was discussion about making a wiki page for Licenses, but I couldn't find one. So here it is: http://appfuse.org/display/APF/Licenses I only put URL Rewrite on there for now... I'll make a JIRA so we remember to flesh it out a bit more. Nathan Matt Raible wrote: On 4/9/07,

Re: [appfuse-user] Hibernate dao files download

2007-04-10 Thread Matt Raible
The following FAQ may help as well: http://appfuse.org/display/APF/FAQ#FAQ-whereisthesource Where are the Java source files and JSPs in 2.x? AppFuse 2.x is a fair amount different from 1.x in that you don't get all the source to start your project with. The main reason for this is to make it po

Re: [appfuse-user] SpringMVC can do Generic Controllers

2007-04-10 Thread Nathan Anderson
It really depends on what you are creating. If you just need a simple CRUD app and want to make it quickly, then this is pretty darn cool. But as applications evolve and specifications change then these generic classes are less applicable. I think it is a great idea to be able to create a CRU

Re: [appfuse-user] Hibernate dao files download

2007-04-10 Thread Michael Horwitz
The configuration file for hibernate is called applicationContext-dao.xmland is embedded in the appfuse-hibernate jar. You should not need access to this file - if you want to use the dao's it defines, they are there, if not simply ignore ;-). The model classes can be included in your project if y

Re: [appfuse-user] Canoo web-tests.xml failing

2007-04-10 Thread Matt Raible
It looks like dbunit is not running before your tests execute. You might try running "mvn dbunit:operation" to ensure it runs and populates the database with test data. Matt On 4/10/07, nmall <[EMAIL PROTECTED]> wrote: Hi, I am getting the following errors during the execution of tests when

[appfuse-user] Hibernate dao files download

2007-04-10 Thread nmall
I used the following archetype to get the Struts2 basic with spring and hibernate. However, I don't see any of the hibernate classes\config files in my path like the following. Do I need to download them separately. I got the appfuse-M4 dependencies zip file orginally. Any help would be greatly ap

[appfuse-user] Disabled Canoo web-tests

2007-04-10 Thread nmall
Hi, I managed to disable them. thanks! nmal nmall wrote: > > Hi, > > I am getting the following errors during the execution of tests when I > run mvn -e integration-test command. How can I disable these tests from > executing. OF course, if I can get tips on getting this to work, that >

[appfuse-user] contract position

2007-04-10 Thread Clark D. Liu
Hi All, Anyone interested in a 3-6 month contract position in the Minneapolis/St. Paul, MN area? It is a project converting a struts application to Appfuse plus some enhancements. A little bit of Crystal Reports but mostly jsp/struts/spring/hibernate with SQL Server on the back end. Gross bill r

[appfuse-user] Canoo web-tests.xml failing

2007-04-10 Thread nmall
Hi, I am getting the following errors during the execution of tests when I run mvn -e integration-test command. How can I disable these tests from executing. OF course, if I can get tips on getting this to work, that would be great too. Thanks for your help! [INFO] [talledLocalContainer] Tomca

Re: [appfuse-user] struts2 switch locale

2007-04-10 Thread ros
Matt, yes, I had public static final String PREFERRED_LOCALE_KEY = I18nInterceptor.DEFAULT_SESSION_ATTRIBUTE; but this weekend during upgrade to AppFuse 2 M 4 I've changed locale key value back to: public static final String PREFERRED_LOCALE_KEY = "org.apache.struts2.action.LOCALE"; and f

Re: [appfuse-user] Filter ?

2007-04-10 Thread Sanjiv Jivan
$95 seems pretty reasonable. I'll try contacting him again, but that pricing email thread on nabble helps for now. Thanks. On 4/9/07, Matt Raible <[EMAIL PROTECTED]> wrote: On 4/9/07, Sanjiv Jivan <[EMAIL PROTECTED]> wrote: > I feel AppFuse should (temporarily?) remove the UrlRewrite filter :