Re: [appfuse-user] sql-map-config.xml

2009-01-14 Thread Matt Raible
You can delete it if you're using Hibernate (the default). It's so users can use iBATIS as their persistence framework if they so desire. Matt On Jan 14, 2009, at 4:14 PM, Raghu wrote: Hi, I see sql-map-config.xml file under resources folder which has below content.. Could anyone pleas

[appfuse-user] sql-map-config.xml

2009-01-14 Thread Raghu
Hi, I see *sql-map-config.xml *file under resources folder which has below content.. Could anyone please help what is the purpose of this file? I am using struts2 basic archtype. http://ibatis.apache.org/dtd/sql-map-config-2.dtd";>

Re: [appfuse-user] mvn appfuse:remove command issue.

2009-01-14 Thread Matt Raible
On Jan 14, 2009, at 2:15 PM, Oscar Alvarez wrote: Thanks for the reply. 2009/1/14 Matt Raible Can you please be more specific? What web framework are you using? I'm working with struts 2 basic archetype, Are you saying that "remove" deletes things that aren't generated with the "gen" co

Re: [appfuse-user] mvn appfuse:remove command issue.

2009-01-14 Thread Oscar Alvarez
Thanks for the reply. 2009/1/14 Matt Raible > Can you please be more specific? What web framework are you using? I'm working with struts 2 basic archetype, > Are you saying that "remove" deletes things that aren't generated with the > "gen" command? It does not remove non generated files

Re: [appfuse-user] Securing managers using annotations

2009-01-14 Thread Christian Decker
Hm, I guess that's not doing anything. Maybe giving you an example of what I'm trying to do might help: The following is my manager function I'm trying to secure: @Secured({"ROLE_ADMIN"}) public void setGalleryCover(Long gid, Long pid); and in my testcase I do the following:

Re: [appfuse-user] Securing managers using annotations

2009-01-14 Thread Michael Horwitz
You may want to try commenting out the elements. Annotations and AOP may not work together. Mike 2009/1/14 Christian Decker > > Hm, still no luck with that. I changed the following to include > secured-annotations="enabled" > > > > > > > > But still no luck. > >

Re: [appfuse-user] Securing managers using annotations

2009-01-14 Thread Christian Decker
Hm, still no luck with that. I changed the following to include secured-annotations="enabled" But still no luck. Regards, Chris Mike Horwitz wrote: > > You need to enable support for the @Secured aspect in the spring security > configuration. This is the s

Re: [appfuse-user] Securing managers using annotations

2009-01-14 Thread Michael Horwitz
You need to enable support for the @Secured aspect in the spring security configuration. This is the section you need: http://tinyurl.com/7fc73s Mike 2009/1/14 Christian Decker > > Hi all, > > I was looking for an easy and intuitive way to restrict access to managers. > I found that Spring Secu

Re: [appfuse-user] version field in app_user table

2009-01-14 Thread Matt Raible
Because it's incremented when you update a record. Both are 1 in sample-data.xml. The fact that user is 2 implies you've updated that record. Matt On Wed, Jan 14, 2009 at 11:49 AM, Ice-Man wrote: >Ok! (Record) Pessimist Sharing! > But, why Record of 'admin' field 'VERSION'=1 > and > Reco

Re: [appfuse-user] version field in app_user table

2009-01-14 Thread Ice-Man
Ok! (Record) Pessimist Sharing! But, why Record of 'admin' field 'VERSION'=1 and Record of 'user' field 'VERSION'=2 ?? Ice-Man 2009/1/14 Matt Raible > No, it means that if two people edit the same record at the same time that > the first one will win. The 2nd user will get an error. > M

Re: [appfuse-user] version field in app_user table

2009-01-14 Thread Matt Raible
No, it means that if two people edit the same record at the same time that the first one will win. The 2nd user will get an error. Matt On Jan 14, 2009, at 11:16 AM, Ice-Man wrote: So always will prevail changes made by the Administrator??! Ice-Man 2009/1/13 Matt Raible It's used for opt

Re: [appfuse-user] version field in app_user table

2009-01-14 Thread Ice-Man
So always will prevail changes made by the Administrator??! Ice-Man 2009/1/13 Matt Raible > It's used for optimistic locking with Hibernate. > > Matt > > > On Tue, Jan 13, 2009 at 7:49 AM, Raghu wrote: > >> Hi, I see version field in app_user table and am wondering why this field >> is requir

Re: [appfuse-user] mvn appfuse:remove command issue.

2009-01-14 Thread Matt Raible
Can you please be more specific? What web framework are you using? Are you saying that "remove" deletes things that aren't generated with the "gen" command? Thanks, Matt On Wed, Jan 14, 2009 at 7:01 AM, Oscar Alvarez wrote: > Hello All. > > I have a problem with CRUD generation utility, the pro

[appfuse-user] mvn appfuse:remove command issue.

2009-01-14 Thread Oscar Alvarez
Hello All. I have a problem with CRUD generation utility, the problem is when i remove an entity with mvn appfuse:remove command, all the validation dot XML are erased too, but it is not what i want, how can i avoid this?? -- Best regards , Oscar

Re: [appfuse-user] Pass a pom property to a JSP page

2009-01-14 Thread Matt Raible
You might be able to use filtering to find/replace the value at build time. http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html Matt On Wed, Jan 14, 2009 at 1:46 AM, Martin Homik wrote: > > Does anyone know how to pass a property that is set in pom.xml

Re: [appfuse-user] DWR (AJAX) and Session timeout renew, how? - URGENT

2009-01-14 Thread Attila
What do You mean about "session attribute specifically for this"? Can You tell me in details? Please. Thank You Sipathamandla wrote: > > Just thinking, what if when you make the DWR call, also add some session > attribute specifically for this, i think the application server should > restart

[appfuse-user] Pass a pom property to a JSP page

2009-01-14 Thread Martin Homik
Does anyone know how to pass a property that is set in pom.xml to a JSP page. In other words, how can I display my custom pom properties in a JSP page? Scenario: In my pom.xml, I want to set a relative path to a gwt script which changes depending on the environment. In Maven pom: /some/Path

[appfuse-user] When is the next release 2.1 of AppFuse due?

2009-01-14 Thread Irshad Buchh
Hi, Any idea as to when do we expect the next release of AppFuse 2.1? Looking eagerly for Spring MVC annotations based stuff. --Irshad. -- View this message in context: http://www.nabble.com/When-is-the-next-release-2.1-of-AppFuse-due--tp21452402s2369p21452402.html Sent from the AppFuse - User