[appfuse-user] appfuse 2.0M5 - porlet development

2007-05-25 Thread jmowla
hi any suggestion to prepare an environment to develope & test portlets easily ;) i'm using appfuse 2.0M5 and want to make and deploy portlet on Liferay 4.2.2 any help appreciated >(^_^)< -- View this message in context: http://www.nabble.com/appfuse-2.0M5---porlet-development-tf38195

[appfuse-user] LazyInitialization - Appfuse 2.0 M4

2007-05-25 Thread sparqle
Hello, I followed the online tutorial for 2.0. I then created my own classes with many relationships between them. For example, suppose I have class A and class B. An object of class A can have several objects of class B (a one-to-many relationship). So if I do this within my view/presentation co

Re: [appfuse-user] jMock v.s. EasyMock?

2007-05-25 Thread pcberg
mraible wrote: > > The reason for showing both methods is probably because AppFuse > supports jMock out of the box, but the author who wrote this tutorial > liked EasyMock better. The AMP plugin generates jMock tests by default > for the ManagerTests. Maybe we should make it an option to generat

[appfuse-user] Spring Live - The Final Update

2007-05-25 Thread Matt Raible
FYI... http://jroller.com/page/raible?anchor=spring_live_the_final_update Thanks to everyone who bought a copy of Spring Live! Have a great weekend, Matt -- http://raibledesigns.com - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: [appfuse-user] maven2 and spring and Groovy dependency

2007-05-25 Thread Matt Raible
FWIW, I believe this was fixed in Spring 2.0.5. If you're using 2.0.5, please disregard. ;-) Matt On 5/25/07, nmall <[EMAIL PROTECTED]> wrote: Hi, Sorry about posting this. What I had below fixed it. nmall wrote: > > Hi, > > While parsing the applicationContext.xml to which I added my ow

Re: [appfuse-user] maven2 and spring and Groovy dependency

2007-05-25 Thread nmall
Hi, Sorry about posting this. What I had below fixed it. nmall wrote: > > Hi, > > While parsing the applicationContext.xml to which I added my own appl > specific stuff, maven starts complaining about a Groovy class. I added > groovy-1.0-jsr-06 into the pom and did mvn install etc. However

Re: [appfuse-user] Having trouble getting Dependency Injection to work @Configurable - Newbie Help

2007-05-25 Thread Matt Raible
On 5/25/07, Pramod Mahadev <[EMAIL PROTECTED]> wrote: Here are the steps I had to take to get it to work but still unclear on a few issues. 1) Move all the aspects (Java classes annotated with @Aspect) or classes that are pure aspectJ i.e (declared as public aspect) and @Configurable annotated

[appfuse-user] maven2 and spring and Groovy dependency

2007-05-25 Thread nmall
Hi, While parsing the applicationContext.xml to which I added my own appl specific stuff, maven starts complaining about a Groovy class. I added groovy-1.0-jsr-06 into the pom and did mvn install etc. However, it still gives me the following error on doing mvn jetty:run-war. I added this depende

Re: [appfuse-user] Having trouble getting Dependency Injection to work @Configurable - Newbie Help

2007-05-25 Thread Pramod Mahadev
Here are the steps I had to take to get it to work but still unclear on a few issues. 1) Move all the aspects (Java classes annotated with @Aspect) or classes that are pure aspectJ i.e (declared as public aspect) and @Configurable annotated classes to src/main/aspect folder. Not my desired approa

Re: [appfuse-user] Appfuse Light [Mod]

2007-05-25 Thread Doug Pham
OK! I figured it out. I did not change the database dialect to MySQL. Have a good Holiday All, Doug Doug Pham <[EMAIL PROTECTED]> wrote: Matt, I took Appfuse Light and modified it a little bit since I am Maven challenged. When I launched the application I get this error: ERROR - SchemaU

[appfuse-user] Appfuse Light [Mod]

2007-05-25 Thread Doug Pham
Matt, I took Appfuse Light and modified it a little bit since I am Maven challenged. When I launched the application I get this error: ERROR - SchemaUpdate.execute(134) | could not get database metadata com.mysql.jdbc.exceptions.MySQLSyntaxErrorException: Table 'appfuse_light.pg_cla ss' doe

Re: [appfuse-user] Test-all failed

2007-05-25 Thread Matt Raible
If you start your app and manually navigate to the signup page and view-source - do you see an element with name="signupForm:username"? Matt On 5/25/07, Ding, Qin <[EMAIL PROTECTED]> wrote: What should be done to correct the following? Please help. Appfuse version: 1.9.4 Web framework: JSF W

Re: [appfuse-user] How to avoid maven-appfuse not deleting the database on every build

2007-05-25 Thread Matt Raible
If you don't want the database deleted, you'll need to remove true from your pom.xml. You'll probably want to change CLEAN_INSERT to something else as well. Matt On 5/25/07, nmall <[EMAIL PROTECTED]> wrote: If you add createDatabaseIfNotExist to your jdbc.url as below , it creates it only if i

RE: [appfuse-user] Test-all failed

2007-05-25 Thread Ding, Qin
What should be done to correct the following? Please help. Appfuse version: 1.9.4 Web framework: JSF Without testing, application runs but in the MainMenu page after login, the second link "File Upload" does not do anything. When running ant test-all, failed on the following: Signup: BUILD FAIL

Re: [appfuse-user] About [appfuse:gen-model]

2007-05-25 Thread Matt Raible
You're right, gen-model is completely broken. I tried doing the following: 1. Added configuration elements to pom.xml: ${amp.genericCore} ${amp.fullSource} gen-model

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-25 Thread marshall
Yeah, I've got some sample data in both files. I've attached the output of my mvn call. Perhaps something might stand out. I'll keep looking. Marshall Matt Raible <[EMAIL PROTECTED]> wrote: Did you add sample data to both sample-data.xml files? There's one in each project. Unfortunately,

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Philip Barlow
I understand now, thanks. I may take Sanjiv's advice and debug the code also, nothing like getting under the hood to see how things work... mraible wrote: > > AFAICT, it works because the URLs you specified in your decorators.xml > are paths to your JSPs, which are "forwarded" to by your > act

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-25 Thread Matt Raible
Did you add sample data to both sample-data.xml files? There's one in each project. Unfortunately, I haven't figured out a better way to do this, although you may be able to point the web project's dbunit configuration to the core project. Matt On 5/25/07, marshall <[EMAIL PROTECTED]> wrote: He

Re: [appfuse-user] tutorial PersonControllerTest AsertionFailure (modular spring MVC)

2007-05-25 Thread marshall
Hey Matt; I've tried comparing my version with the tutorial-spring code and I don't see any difference. The java classes are the same. The configs all look good too. I'm wondering if this is a potential modular issue? Your tutorial runs fine with the tests passing. I've added

Re: [appfuse-user] jMock v.s. EasyMock?

2007-05-25 Thread Matt Raible
On 5/6/07, pcberg <[EMAIL PROTECTED]> wrote: http://appfuse.org/display/APF/Services took me through an example of using jMock but also shows how to use EasyMock. My reaction is that EasyMock's code looks cleaner. I don't have experience with either tool though (or for that matter with Mock obje

Re: [appfuse-user] Having trouble getting Dependency Injection to work @Configurable - Newbie Help

2007-05-25 Thread Matt Raible
Did you ever get this working? On 5/4/07, Pramod Mahadev <[EMAIL PROTECTED]> wrote: Changed my pom.xml to use the plugin suggested. However, still did not work. Interestingly enough, when I turn on the debug option, I see the following message Configuring mojo 'org.codehaus.mojo:aspectj-maven-

Re: [appfuse-user] Spring and Acegi Update

2007-05-25 Thread Matt Raible
If you look at the following changelog, you should be able to see what's changed between releases. http://fisheye4.cenqua.com/browse/appfuse/trunk/web/common/src/main/webapp/WEB-INF/security.xml Unfortunately, I don't believe it goes as far back as 1.8 (when we first integrated Acegi). As long a

[appfuse-user] Spring and Acegi Update

2007-05-25 Thread Rene Guenther
Hello, I build an application based on Appfuse 1.8 which has become quite big now. I think its time to update to Spring 2.0 from 1.2 and Acegi to 1.0 from 0.8. Do you think that this is going to be hard? Do I have to update other libraries as well? My Web Framework is MyFaces, already 1.1.4

Re: [appfuse-user] [mvn test] jdbc.password & jdbc.username

2007-05-25 Thread Matt Raible
You might want to make sure you don't have duplicate jdbc.properties (and hibernate.cfg.xml files for that matter) in your project. I noticed a bug yesterday where these files ended up in src/test/resources, and they were already in src/main/resources. If you find this is the problem, please enter

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Matt Raible
AFAICT, it works because the URLs you specified in your decorators.xml are paths to your JSPs, which are "forwarded" to by your actions/controllers. Matt On 5/25/07, Philip Barlow <[EMAIL PROTECTED]> wrote: I added FORWARD and it works, thanks alot. Now i need to understand why it works but i'

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Philip Barlow
I added FORWARD and it works, thanks alot. Now i need to understand why it works but i'll figure that out myself by RTFM! Thanks again Matt. mraible wrote: > > Since you don't have FORWARD, you should make > sure your URLs are what's served up by controllers/actions/etc., > rather than view pa

Re: [appfuse-user] Help:The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form...

2007-05-25 Thread Matt Raible
Can you post your generated struts-config.xml file - attaching it is probably the best way for us to view it. Matt On 5/25/07, Sumac <[EMAIL PROTECTED]> wrote: thanks for your concerns.Of course,I have done Xdoclets tags in my every POJOs. -- View this message in context: http://www.nabble.co

Re: [appfuse-user] Dojo-Struts2 ... datetimepicker, doubleselect...wont work for us.

2007-05-25 Thread Matt Raible
I got the StaticFilter working for everything but JSF. However, the "working" status was unrelated to Dojo and Struts 2's datepicker (which I can't get working no matter what I do). Matt On 5/25/07, APenrose <[EMAIL PROTECTED]> wrote: hi matt, do you not say down the bottom that you got this

Re: [appfuse-user] svn: PROPFIND request failed

2007-05-25 Thread Matt Raible
I didn't do anything, java.net just came online again. ;-) Matt On 5/24/07, Pi, Miao <[EMAIL PROTECTED]> wrote: Hi, Matt Wow, I succeeded in a retry. Matt, You have done something, right? Anyway, thanks! Miao On 5/25/07, Pi, Miao <[EMAIL PROTECTED]> wrote: > > Hi, Matt > > Yes, I can't acc

Re: [appfuse-user] Session hijacking issue

2007-05-25 Thread Matt Raible
I'd try upgrading to Acegi Security 1.0.4 - looking at their release notes it looks like there's quite a few fixes concerning cookies and remember me (might be related, might not): http://www.springframework.org/node/466 Matt On 5/25/07, jvosloo <[EMAIL PROTECTED]> wrote: Ok - maybe hijacking

Re: [appfuse-user] jdbc url in pom.xml and hibernate.cfg.xml

2007-05-25 Thread Matt Raible
dbunit and the hibernate3 plugin use the properties in pom.xml and jdbc.properties (which gets filtered at build time). If you don't want to specify properties in two places, you have two options: 1. Specify them in pom.xml and put variables in jdbc.properties and hibernate.cfg.xml (although you

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Sanjiv Jivan
I'd suggest that you run your app in a debugger and step through the Sitemesh code. The Sitemesh code is pretty easy to follow. I did this myself when I experienced some Sitemesh funkiness on Weblogic. Once I ran it through the debugger, I was able to figure out issues like yours in 15 - 20 minute

Re: [appfuse-user] Canoo Webtest and http_proxy

2007-05-25 Thread Matt Raible
I don't know the answer to this, but please let us know if you find out. You might look at Canoo WebTest's documentation: http://webtest.canoo.com/webtest/manual/manualOverview.html My guess is it's in Canoo's settings (which it doesn't look like): http://webtest.canoo.com/webtest/manual/confi

Re: [appfuse-user] ajax and datepicker on 2m4

2007-05-25 Thread J. David Mendoza
what browser are you trying it on? I've had problems with ie, with firefox it works fine... David M. Will Berger wrote: Fyi...in 2m4 and probably 2m5, there seems to be a problem where the datepicker and the ajax head tag can't coexist on a page and function properly. On 2m4 I was doing the d

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Matt Raible
Since you don't have FORWARD, you should make sure your URLs are what's served up by controllers/actions/etc., rather than view paths. If you have REQUEST and FORWARD in your mapping, you'll need to specify both the controller/action path and the view path. Matt On 5/25/07, Philip Barlow <[EMAIL

Re: [appfuse-user] displaying '£' in pages

2007-05-25 Thread hiugong.gwok
Have you tried "\u00a3"? sionsmith wrote: > > Hi everyone - this really has be stumped - i cant get the £ character to > display. I'm using facelets e.g. .xhtml pages > > i've tryed: > 1) £ > 2) £ > > they give me this error: > com.sun.facelets.FaceletException: Error Parsing /mainMenu.xhtml

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Philip Barlow
Thanks for the quick reply Matt, the filter mapping is below and i have tried switching the order of the decorators but to no avail, i will experiment with this for the time being. sitemesh com.opensymphony.module.sitemesh.filter.PageFilter sitemesh /* mraible wrote: > >

Re: [appfuse-user] Driving me nuts!

2007-05-25 Thread Matt Raible
If you move the main decorator under the centred one, does it work better? What does your filter-mapping for SiteMesh look like? Matt On 5/25/07, Philip Barlow <[EMAIL PROTECTED]> wrote: Hi guys, Hopefully someone can help me out here. I am trying to get an old project that used tiles to work

[appfuse-user] Driving me nuts!

2007-05-25 Thread Philip Barlow
Hi guys, Hopefully someone can help me out here. I am trying to get an old project that used tiles to work with Sitemesh and Struts 2. Sitemesh is pretty cool by the way but i am having a problem with specifying which pages i want decorated. My setup is jsp pages are in /WEB-INF/pages/[several f

[appfuse-user] jdbc url in pom.xml and hibernate.cfg.xml

2007-05-25 Thread nmall
Hi In appfuse, I have the jdbc.url in my pom.xml as well as in my hibernate.cfg.xml as connection properties in . Is the pom.xml used initially to find the database instance and the hibernate.cfg.xml when the login Action kicks in? Don't these have to be the same database instance/user/password

Re: [appfuse-user] How to avoid maven-appfuse not deleting the database on every build

2007-05-25 Thread nmall
If you add createDatabaseIfNotExist to your jdbc.url as below , it creates it only if it does not exist. HTH Balaji D Loganathan wrote: > > Thanks Luke, > Thats help. > Just wondering is there is a way where I can still run the unit tests and > integration tests without clearing the datab

Re: [appfuse-user] ajax and datepicker on 2m4

2007-05-25 Thread Will Berger
Fyi...in 2m4 and probably 2m5, there seems to be a problem where the datepicker and the ajax head tag can't coexist on a page and function properly. On 2m4 I was doing the dojo.js include suggested in previous posts, which is the only way i could get the datepicker running. Will mraible wrot

[appfuse-user] Canoo Webtest and http_proxy

2007-05-25 Thread nothingman
Hi, in our environment we have to use an http-proxy and I've configured setting.xml in the following manner: true http myproxy.it 31080 localhost|127.0.0.1 nothingman passwd Every thing work and maven can download dependencies but when I

Re: [appfuse-user] How to avoid maven-appfuse not deleting the database on every build

2007-05-25 Thread Balaji D Loganathan
Thanks Luke, Thats help. Just wondering is there is a way where I can still run the unit tests and integration tests without clearing the database ? For unit test we use inmemory hsql db, so thats not an issue. Thanks, Balaji -- View this message in context: http://www.nabble.com/How-to-avoid-

[appfuse-user] displaying '£' in pages

2007-05-25 Thread sionsmith
Hi everyone - this really has be stumped - i cant get the £ character to display. I'm using facelets e.g. .xhtml pages i've tryed: 1) £ 2) £ they give me this error: com.sun.facelets.FaceletException: Error Parsing /mainMenu.xhtml: Error Traced[line: 22] Invalid byte 1 of 1-byte UTF-8 sequence.

[appfuse-user] Session hijacking issue

2007-05-25 Thread jvosloo
Ok - maybe hijacking is strong word - but here's my issue. I 'm running an Appfuse 1.93 (JSF ) based app. It's happened twice now that I log in as admin and then I'm all of a sudden inside another logged in user's session (the same user both times incidentally)! This is obviously a real concern

Re: [appfuse-user] How to avoid maven-appfuse not deleting the database on every build

2007-05-25 Thread Luke McLean
The data is overwritten every time the dbunit runs, so you have at least two options. 1) To add you information to the test/resources/sample-data.xml so that it loaded each time so it does not matter if it is overwritten. 2) run without running the tests by adding the -Dmaven.test.skip to the co

Re: [appfuse-user] Help:The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form...

2007-05-25 Thread Sumac
thanks for your concerns.Of course,I have done Xdoclets tags in my every POJOs. -- View this message in context: http://www.nabble.com/Help%3AThe-content-of-element-type-%22struts-config%22-must-match-%22%28display-name-%2Cdescription-%2Cdata-sources-%2Cform...-tf3814653s2369.html#a10799841 Sent

Re: [appfuse-user] Help:The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form...

2007-05-25 Thread fadhli
Have you put your Xdoclets struts validator at your POJO? On 5/25/07, Sumac <[EMAIL PROTECTED]> wrote: By the way,my version is 1.9.3. I'd appreciate that if give me any suggestion.bow×3! -- View this message in context: http://www.nabble.com/Help%3AThe-content-of-element-type-%22struts-config

Re: [appfuse-user] Help:The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form...

2007-05-25 Thread Sumac
By the way,my version is 1.9.3. I'd appreciate that if give me any suggestion.bow×3! -- View this message in context: http://www.nabble.com/Help%3AThe-content-of-element-type-%22struts-config%22-must-match-%22%28display-name-%2Cdescription-%2Cdata-sources-%2Cform...-tf3814653s2369.html#a10799601

[appfuse-user] How to avoid maven-appfuse not deleting the database on every build

2007-05-25 Thread Balaji D Loganathan
Hi, Hope this question is not asked already. (i did searched). :) I am using appfuse-spring-basic and every time i build my app using mvn clean package, its dropping the entire database tables (app_user, role & my tables) and creating a new one with new datas. I would like to have the tables not

[appfuse-user] Help:The content of element type "struts-config" must match "(display-name?,description?,data-sources?,form...

2007-05-25 Thread Sumac
Hi,Dear Matt, When I execute ant target with "webdoclet",I encounter follow problem(You may find it at the end),although this, the struts-config.xml has been gernerated rightly,but the validation.xml dosen't get. according to the information follow,I replace the **/lib/xdoclet-1.3-S

[appfuse-user] [mvn test] jdbc.password & jdbc.username

2007-05-25 Thread Ömer Başar
Hi Matt, I migrated to 2.0-M5. I run the command [mvn appfuse:full-source] and get the sources successfully. When I run [mvn test] it fails because it cannot connect to the database. The question is [mvn test] looks somewhere else than pom.xml for username and password. Because I changed the defa