[appfuse-user] how to use jquery replace prototype?

2008-09-09 Thread gordian yuan
I want to use jquery to replace prototype. because prototype conflict with jquery and i don't to use prototype. any idea or a tutorial how to do it? actually i have some idea how to do it but i can't sure it will be very good to work. step 1: all appfuse jsp page add step 2: on sitemesh.xml

[appfuse-user] finding appfuse-light for {framework}-spring-hibernate?

2008-09-09 Thread Rick
I'm looking over the appfuse light projects and I'm wondering if there is a combination of "yourWebFramework"/Spring/Hibernate - where Hibernate uses the Spring HibernateDaoSupport ? It looks like all the appfuse light implementations use Hibernate without the Spring integration? Regular appfuse g

Re: [appfuse-user] Appfuse code generator 2.0

2008-09-09 Thread ahmad M
thanx ali, it has been solved. btw, may i get u mail address? i am [EMAIL PROTECTED] regard munib alibehzadian wrote: > > Hi, > > You can use "mvn appfuse:gen-model". > > Take a look at this: > " > http://static.appfuse.org/plugins/appfuse-maven-plugin/gen-model-mojo.html > http://static.a

Re: [appfuse-user] Appfuse code generator 2.0

2008-09-09 Thread Matt Raible
What tables do you have in your database? On Tue, Sep 9, 2008 at 11:13 PM, ahmad M <[EMAIL PROTECTED]> wrote: > > hi > > this is so great, but there is an error when i try mvn appfuse:gen-model > -e. > it is like "No tables found in database to generate code from" > > any idea? > > thanx alot > m

Re: [appfuse-user] Appfuse code generator 2.0

2008-09-09 Thread ahmad M
hi this is so great, but there is an error when i try mvn appfuse:gen-model -e. it is like "No tables found in database to generate code from" any idea? thanx alot munib alibehzadian wrote: > > Hi, > > You can use "mvn appfuse:gen-model". > > Take a look at this: > " > http://static.app

[appfuse-user] Manager doesn't work for the ajax data submition

2008-09-09 Thread Ke
Hi, all, I have trouble to save data posted while ajax request, the manager doesn't do anything, when I invoke itemManager.save(item); Here is the code for to submit request via prototype Ajax: var url="/saveItem.html"; var pars = 'cartonno='+carton.cartonno; carton.it

Re: [appfuse-user] How to develop appfuse without application sample

2008-09-09 Thread m4rkuz
take a look to the StartupListener java class, there is something like : LookupManager mgr = (LookupManager) ctx.getBean("lookupManager"); Maybe that's the problem... : On Tue, Sep 9, 2008 at 7:30 PM, ahmad M <[EMAIL PROTECTED]> wrote: > > hi, > > i have developed my tapestry webapp with appfu

[appfuse-user] How to develop appfuse without application sample

2008-09-09 Thread ahmad M
hi, i have developed my tapestry webapp with appfuse without involving aplication sample. so there are no role, task, and app_user. there is something error when i run using mvn jetty:run-war like "org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'lookupManager' is

Re: [appfuse-user] How to resolve org.xml.sax.SAXNotRecognizedException: Property 'http://apache.org/xml/features/nonvalidating/load-external-dtd' is not recognized.

2008-09-09 Thread xinlnix
Hi, mraible I'm afraid I can not use JDK 5. For some reason, I must use JDK 6. -- View this message in context: http://www.nabble.com/How-to-resolve-org.xml.sax.SAXNotRecognizedException%3A-Property-%27http%3A--apache.org-xml-features-nonvalidating-load-external-dtd%27-is-not-recognized.-tp193

[appfuse-user] Re: Database profiles

2008-09-09 Thread Paul Pepper
After placing the MySql properties into its own profile, the h2 profile worked (though jmock failed on a couple of data integrity violations) when the following element was added to the h2 profile: CLEAN_INSERT and when h2 is specified on the command-line, like so: $ mvn -Ph2 jetty:run-war Howeve

Re: [appfuse-user] Spring MVC Modular with JPA and possible error with beans defined in applicationContext.xml

2008-09-09 Thread Pablo Alcaraz
Thanks. I ll do that. Matt Raible wrote: Have you tried downloading the source for the tutorial and comparing? You can find the source for all tutorials at http://appfuse-demos.googlecode.com. Matt On Mon, Sep 8, 2008 at 4:45 PM, Pablo Alcaraz <[EMAIL PROTECTED]> wrote: Hello! I am using

Re: [appfuse-user] Automatic login

2008-09-09 Thread taltun
Thanks!! taltun wrote: > > Hi, > > I'm using Struts 2 moduler.. > > How is this possible: > > I have a link > http://localhost:8080/[EMAIL PROTECTED]&password=45646asasaASDFasdffasdf3423 > > When the above action mapping "changePassword.html..." is invoked I want > the user to be logged in

[appfuse-user] Re: Database profiles

2008-09-09 Thread Paul Pepper
Matt Raible <[EMAIL PROTECTED]> writes: > I would try it and see how it works. > Matt (Reposting previous response as the html formatting promised by nabble doesn't show up that well in other viewers! ...) I would try it and see how it works. I tried it, placing the jdbc MySql properties into the

Re: [appfuse-user] Database profiles

2008-09-09 Thread peeper
mraible wrote: > > I would try it and see how it works. > I tried it, placing the jdbc MySql properties into their own element and placing an element in my chosen default profile (Derby): derby true

Re: [appfuse-user] Database profiles

2008-09-09 Thread Matt Raible
On Tue, Sep 9, 2008 at 12:00 PM, Paul Pepper <[EMAIL PROTECTED]> wrote: > My questions relate to the article, "Database Profiles in AppFuse 2.0" > (http://raibledesigns.com/rd/entry/database_profiles_in_appfuse_2). > Matt suggested that comments (questions) be posted here... > > Looking at my pom.x

[appfuse-user] Database profiles

2008-09-09 Thread Paul Pepper
My questions relate to the article, "Database Profiles in AppFuse 2.0" (http://raibledesigns.com/rd/entry/database_profiles_in_appfuse_2). Matt suggested that comments (questions) be posted here... Looking at my pom.xml I can see that properties for each database type are placed within separate pr

Re: [appfuse-user] Re: fine-grained control

2008-09-09 Thread Matt Raible
On Tue, Sep 9, 2008 at 10:53 AM, Paul Pepper <[EMAIL PROTECTED]> wrote: > Matt Raible <[EMAIL PROTECTED]> writes: >> What dependencies/projects do you want to exclude? You should be able >> to run "appfuse:full-source" on your project and remove anything you >> don't want. As far as Struts, that's

[appfuse-user] Very urgent: Upgrade to Spring Security from Acegi doesn't go!

2008-09-09 Thread Attila
Hello Matt, this is a long timed bug for me, but no solution. My Spring evaluated always true ( I mean ), while the inner tags is always rendered, independet from . The only what I modified is the role names: I added a suffix "_T" to it. But in security.xml all goes good. What should I do?!?

[appfuse-user] Re: fine-grained control

2008-09-09 Thread Paul Pepper
Matt Raible <[EMAIL PROTECTED]> writes: > What dependencies/projects do you want to exclude? You should be able > to run "appfuse:full-source" on your project and remove anything you > don't want. As far as Struts, that's not included in your project, > it's just Spring. Run "mvn dependency:tree" t

[appfuse-user] please help!

2008-09-09 Thread qifeng.deng
HI! I have a problem about appfuse2! I create a project with command "mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 -DgroupId=com.mycompany.app -DartifactI

Re: [appfuse-user] AppFuse 2 + Struts 2 - Why does save action return INPUT for an existing record?

2008-09-09 Thread Rob Hills
Hi Matt, Thanks for the prompt reply as usual! mraible wrote: > > My thought process was that if you're editing an existing record, you > want to visually see the change after you've made it. When adding a > new record, it's likely you don't want to see the change. That was my > thinking when

Re: [appfuse-user] AppFuse 2 + Struts 2 - Why does save action return INPUT for an existing record?

2008-09-09 Thread Matt Raible
My thought process was that if you're editing an existing record, you want to visually see the change after you've made it. When adding a new record, it's likely you don't want to see the change. That was my thinking when I did it this way. Matt On Tue, Sep 9, 2008 at 9:52 AM, Rob Hills <[EMAIL P

[appfuse-user] AppFuse 2 + Struts 2 - Why does save action return INPUT for an existing record?

2008-09-09 Thread Rob Hills
Hi All, I note from the tutorials that in an Action class, the save method normally returns SUCCESS if a new record is being added and INPUT if an existing record is being saved. Why is it done this way? A side effect of this and the usual navigation setup in struts.xml is that saving a new rec

Re: [appfuse-user] How to resolve org.xml.sax.SAXNotRecognizedException: Property 'http://apache.org/xml/features/nonvalidating/load-external-dtd' is not recognized.

2008-09-09 Thread Matt Raible
Have you tried JDK 5? On Tue, Sep 9, 2008 at 2:46 AM, xinlnix <[EMAIL PROTECTED]> wrote: > > Hello, > > I find related topics in the forum ,and only > http://www.nabble.com/errors-with-appfuse:gen-td17424029s2369.html > has the same question , but I can't understand the solution, Anyone can help >

Re: [appfuse-user] Spring MVC Modular with JPA and possible error with beans defined in applicationContext.xml

2008-09-09 Thread Matt Raible
Have you tried downloading the source for the tutorial and comparing? You can find the source for all tutorials at http://appfuse-demos.googlecode.com. Matt On Mon, Sep 8, 2008 at 4:45 PM, Pablo Alcaraz <[EMAIL PROTECTED]> wrote: > Hello! > > I am using the archetype Spring MVC Modular with JPA.

Re: [appfuse-user] Automatic login

2008-09-09 Thread Matt Raible
If you look in SignupAction, you should see the code that can be used to log a person in. http://source.appfuse.org/browse/appfuse/trunk/web/struts/src/main/java/org/appfuse/webapp/action/SignupAction.java?r=trunk You should be aware that any GET request with a password in it is a security risk a

Re: [appfuse-user] fine-grained control

2008-09-09 Thread Matt Raible
What dependencies/projects do you want to exclude? You should be able to run "appfuse:full-source" on your project and remove anything you don't want. As far as Struts, that's not included in your project, it's just Spring. Run "mvn dependency:tree" to see what dependencies you have. Matt On Tue,

Re: [appfuse-user] How obtain logged user?

2008-09-09 Thread m4rkuz
AppFuse uses Spring Security (Aka Acegi) So the code below should work... * UsernamePasswordAuthenticationToken auth = (UsernamePasswordAuthenticationToken) SecurityContextHolder.getContext().getAuthentication(); WebAuthenticationDetails details = (WebAuthe

Re: [appfuse-user] How obtain logged user?

2008-09-09 Thread Mauri Ferreyra
Where's set the variable remoteUser?? I've a problem, when I use page without decorators remoteUser and session.SPRING_SECURITY_CONTEXT.authentication.principal.username is set, but when I want use a decorator, this variables have value "". Exists some interceptor o filter that set the current use

[appfuse-user] fine-grained control

2008-09-09 Thread Paul Pepper
Hi, I'm new to AppFuse and use the "Spring MVC Basic" Archtype to generate projects - I know Spring, Hibernate and JSP. I'd really like to reduce what AppFuse gives me when using "Spring MVC Basic" for a few reasons: 1. Quick project ramp-up requires using my existing knowledge. I don't want to l

[appfuse-user] Automatic login

2008-09-09 Thread taltun
Hi, I'm using Struts 2 moduler.. How is this possible: I have a link http://localhost:8080/[EMAIL PROTECTED]&password=45646asasaASDFasdffasdf3423 When the above action mapping "changePassword.html..." is invoked I want the user to be logged in automaticly. Please an detail example describing

Re: [appfuse-user] dbunit and single tables

2008-09-09 Thread Martin Homik
Hmmm ... I couldn't find any information. And the maven parameters don't look like it'll be possible to address single tables. :-) Has anyone else tried this? Martin mraible wrote: > > Yes, it should be possible. It is with Ant. > > http://mojo.codehaus.org/dbunit-maven-plugin/ > > Matt >

[appfuse-user] How to resolve org.xml.sax.SAXNotRecognizedException: Property 'http://apache.org/xml/features/nonvalidating/load-external-dtd' is not recognized.

2008-09-09 Thread xinlnix
Hello, I find related topics in the forum ,and only http://www.nabble.com/errors-with-appfuse:gen-td17424029s2369.html has the same question , but I can't understand the solution, Anyone can help me. I use JDK 6.0.7, maven 2.0.9, eclipse 3.4, appfuse 2.0.2 -- View this message in context: h

Re: [appfuse-user] good jsp editor

2008-09-09 Thread Marc Siramy
You can use also Eclipse for J2EE developer, which is built with Eclipse 3.3 and Web Tools (WTP ) 2.0 ( http://www.eclipse.org/downloads/moreinfo/jee.php ) . Marc 2008/9/8 Philip Ba

[appfuse-user] Hai...

2008-09-09 Thread angela leo
Hai All... I tried many to many relationship for a person business example.The Business class mapping is done as @ManyToMany() @JoinTable( name = "personbusiness", joinColumns = @JoinColumn(name = "business_id",referencedColumnName = "id"), inverseJoinColumns = @JoinColumn(name