Re: [appfuse-user] mvn jetty:run-war

2007-02-01 Thread Fan
Everytime I run this command, the new users added by me will be deleted. 1) Does this command always re-create the database tables ? 2)Any other option to start the application without re-creating the tables or deleting the data ? Matt Raible-3 wrote: > > If you have all the artifacts downlo

[appfuse-user] Re: Changing default extension from *.html to *.??

2007-02-01 Thread Michael Horwitz
I use Spring MVC with the filter I posted below, which simply directs all requests for active pages to the Spring dispatch servlet. The relevant pieces of the web.xml are: dojoFilter org.appfuse.webapp.filter.DojoFilter includes *.html,/reports/*

Re: [appfuse-user] Changing default extension from *.html to *.??

2007-02-01 Thread Michael Horwitz
Hi Chris, Misun, I am going to attempt to answer these both here as there seems to be some interest in Dojo on AppFuse. First a note of warning: I use Spring MVC, so all instructions are known to work for Spring MVC only. Time permitting (and enough interest in the user community) I could look in

[appfuse-user] mvn compile hibernate3:hbm2ddl

2007-02-01 Thread Fan
I had a problem with the Appfuse 2.0 tutorials to generate a Person POJO with "mvn compile hibernate3:hbm2ddl" [INFO] No goals needed for project - skipping [INFO] Preparing hibernate3:hbm2ddl [INFO] No goals needed for project - skipping [WARNING] POM for 'org.hibernate:jtidy:pom:r8-20060801:run

Re: [appfuse-user] Changing default extension from *.html to *.??

2007-02-01 Thread chris wang
this should work, but if I do this, the filter will break after dojofilter see here: if (pathIncluded && ! pathExcluded) { // req.setAttribute(_REQUEST_PARSED, Boolean.TRUE); actionServletRequestDispatcher.forward(req, res); return; } what about other filter like se

Re: [appfuse-user] Changing default extension from *.html to *.??

2007-02-01 Thread Michael Horwitz
On 2/1/07, chris wang <[EMAIL PROTECTED]> wrote: this should work, but if I do this, the filter will break after dojofilter see here: if (pathIncluded && ! pathExcluded) { // req.setAttribute(_REQUEST_PARSED, Boolean.TRUE); actionServletRequestDispatcher.forward(req, res); ret

RE: [appfuse-user] Appfuse 2

2007-02-01 Thread Ding, Qin
Thanks. I'll discuss this with my boss to see if we upgrade to java5 or have you help us. Thanks again. Qin From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 31, 2007 6:38 PM To: [email protected] Subject: Re: [appfuse-user] Appfu

RE: [appfuse-user] Appfuse 2

2007-02-01 Thread Ding, Qin
I built a class implements hibernate UserType. I put my class into model package. My UserType class uses util.StringUtil's encodeString and decodeString methods. However, It won't be compiled because util package is not visible to model package. It's only visible to service package. Of couse, I

[appfuse-user] schemaexporter

2007-02-01 Thread Ding, Qin
After we upgrade appfuse from 1.9.3 to 1.9.4, we have not run setup-db until yesterday. When I ran the ant setup-db, I found whole lots of following warnings: [schemaexport] (util.JDBCExceptionReporter 48 ) SQL Warning: 1287, SQL State: HY000 [schemaexport] (util.JDBCExceptionRep

Re: [appfuse-user] Changing default extension from *.html to *.??

2007-02-01 Thread misun chung
It worked! Thank you! Thank you!! On 2/1/07, Michael Horwitz <[EMAIL PROTECTED]> wrote: Hi Chris, Misun, I am going to attempt to answer these both here as there seems to be some interest in Dojo on AppFuse. First a note of warning: I use Spring MVC, so all instructions are known to work

Re: [appfuse-user] Appfuse 2

2007-02-01 Thread Matt Raible
I would simply add these methods to your POJO, or copy the StringUtil into your project's source. Seems simple enough - no? Matt On 2/1/07, Ding, Qin <[EMAIL PROTECTED]> wrote: I built a class implements hibernate UserType. I put my class into model package. My UserType class uses util.Str

[appfuse-user] Fwd: Eclipse project resolving / completion

2007-02-01 Thread Matt Raible
Forwarding to user list, since that's where this discussion belongs. ;-) If you don't want to subscribe to all messages, you can use Nabble ( http://appfuse.org/forums) to subscribe to a single message. Matt -- Forwarded message -- From: Ben Greenway <[EMAIL PROTECTED]> Date: Fe

Re: [appfuse-user] Main page overlaps Sub Menu

2007-02-01 Thread Matt Raible
This is a bug in IE browsers <= 6. I believe they fixed it in IE 7. To workaround it in IE6, the easiest thing to do is use JavaScript and onmouseover/onmouseout to hide the checkboxes (and select) when the menu is activated. Matt On 1/31/07, Alvin Capil <[EMAIL PROTECTED]> wrote: Hello All

Re: [appfuse-user] mvn jetty:run-war

2007-02-01 Thread Matt Raible
You could modify the hibernate3 plugin so it doesn't run anymore. Just comment out its configuration in your pom.xml. If you don't want to clear the database before inserting data with DbUnit, you'll change change from using CLEAN_INSERT to one of DbUnit's other operations: http://dbunit.source

Re: [appfuse-user] schemaexporter

2007-02-01 Thread Matt Raible
Change from MySQLInnoDBDialect to MySQL5InnoDBDialect may solve this problem. http://www.nabble.com/Hibernate-3.2-and-MySQL-JDBC-Driver-5.0.3-tf2474356s2369.html#a6899766 Matt On 2/1/07, Ding, Qin <[EMAIL PROTECTED]> wrote: After we upgrade appfuse from 1.9.3 to 1.9.4, we have not run setu

Re: [appfuse-user] mvn compile hibernate3:hbm2ddl

2007-02-01 Thread Matt Raible
Is there a src/main/resources/hibernate.cfg.xml file in your "core" module? It looks like there might be a bad POM for jtidy in the repository (or maybe locally). Matt On 2/1/07, Fan <[EMAIL PROTECTED]> wrote: I had a problem with the Appfuse 2.0 tutorials to generate a Person POJO with "mvn

[appfuse-user] Release M3 and do XFire and AMP in M4?

2007-02-01 Thread Matt Raible
All, Now that I've completed all the tutorials for AppFuse 2.x, I think we should release a new version (M3). While we haven't accomplished nearly as much as I'd like to, I believe we've solve some major issues with M2 that make 2.0 much more usable. Below is the JIRA Roadmap, where you can se

Re: [appfuse-user] AppFuse1 in an AppFuse2 world?

2007-02-01 Thread Matt Raible
On 1/31/07, Dale Newfield <[EMAIL PROTECTED]> wrote: Matt Raible wrote: > On 1/31/07, *Dale Newfield* wrote: > I guess that means you intend to continue supporting the old ant based > tool even after your fancy-schmancy maven one is finished? > > Yes, IMO - there's no reason to discontinu

[appfuse-user] multi module projects.

2007-02-01 Thread Caoilte O'Connor
Hi, The multi module appfuse2 code isn't as consistant or well documented in the tutorials as the single module code so I'm not sure what the Appfuse way to do certain things will be. 1) Dao Unit Tests I've put mine in the core module, but I had to copy across and edit an applicationContext.xml f

[appfuse-user] server-side validation problems

2007-02-01 Thread andrea cossu
Hello, i have a problem with the spring's server side validation. I have a form that submit some date field formated as dd/MM/yyy HH:mm:ss. When i submit the form i get this error: Failed to convert property value of type [java.lang.String] to required type [java.sql.Timestamp] for property dataIn

RE: [appfuse-user] schemaexporter

2007-02-01 Thread Ding, Qin
Yes, Matt. Warning is gone. Thank you. Qin From: Matt Raible [mailto:[EMAIL PROTECTED] Sent: Thursday, February 01, 2007 10:42 AM To: [email protected] Subject: Re: [appfuse-user] schemaexporter Change from MySQLInnoDBDialect to MySQL5InnoDBD

Re: [appfuse-user] server-side validation problems

2007-02-01 Thread Matt Raible
You might want to use a debugger and step through your code to make sure your PropertyEditor is getting fired. Matt On 2/1/07, andrea cossu <[EMAIL PROTECTED]> wrote: Hello, i have a problem with the spring's server side validation. I have a form that submit some date field formated as dd/MM/yy

Re: [appfuse-user] AppFuse1 in an AppFuse2 world?

2007-02-01 Thread Dale Newfield
Matt Raible wrote: Why the resistence to Maven? I think we're solving most of the issues that folks have with it. I've certainly enjoyed developing the AppFuse 2.x tutorials a lot more than 1.x tutorials. ;-) Partially "if it ain't broke, don't fix it," but moreover, each time I've tried to u

[appfuse-user] Re: Why can't i write chinese directly in jsp?

2007-02-01 Thread Matt Raible
native2ascii is a known issue in M3, I hope to try and figure it out today. I got it working the other day (meaning that Chinese was correctly translated to ascii) but I didn't get it to show up properly in the browser). http://issues.appfuse.org/browse/APF-561 Matt On 2/1/07, [EMAIL PROTECTE

Re: [appfuse-user] multi module projects.

2007-02-01 Thread Matt Raible
On 2/1/07, Caoilte O'Connor <[EMAIL PROTECTED]> wrote: Hi, The multi module appfuse2 code isn't as consistant or well documented in the tutorials as the single module code so I'm not sure what the Appfuse way to do certain things will be. 1) Dao Unit Tests I've put mine in the core module, but I

[appfuse-user] Re: Why can't i write chinese directly in jsp?

2007-02-01 Thread Matt Raible
After doing some testing, it looks like the native2ascii plugin works, but EhCache's GzipFilter messes things up. Here's the bug for EhCache: http://tinyurl.com/37nzhc I'll probably comment out the EhCache filter-mapping in the next couple AppFuse milestone releases (until there's an upgrade th

[appfuse-user] Help! Fill text field with comma separated values from drop down list

2007-02-01 Thread pankaj singla
Hi, I have been working on a project which we started on appfuse 1.7 with struts mvc. I have a very big form in this project. The values for the form are saved into database and then taken from there to get the results. The problem I am facing is that I am asked to provide a drop-down list or a l

[appfuse-user] Re: Release M3 and do XFire and AMP in M4?

2007-02-01 Thread Matt Raible
All, It's dumping snow here in Denver, so Julie and I have decided to grab the kids and head for the slopes. If there's internet access at the Condo we're renting, I'll do a release later tonight. If not, it'll probably happen Sunday or Monday. http://www.9news.com/news/article.aspx?storyid=63

Re: [appfuse-user] Correct Controller Implementation?

2007-02-01 Thread maskkkk
I'm now looking at the Interface21's FormControllerTestSuite http://fisheye1.cenqua.com/browse/springframework/i21/test/com/interface21/web/servlet/mvc/FormControllerTestSuite.java?r=MAIN They have implemented a formBackingObject() method in their TestController class (way on the bottom...) Tes

[appfuse-user] how validator the file type uploaded?

2007-02-01 Thread chris wang
if people upload a bad file(not right type), how can we limit it. I saw the commonfileupload just validate the size, we can control the file not to disk or database after uploaded, but if the file is some kind of virus, it's in memory now, it risks much. can we forbid the file type before uplo

[appfuse-user] Remote Debugging with Eclipse WTP

2007-02-01 Thread oguzhantortop
Hi all, for to all who is having some difficulties with tomcat while trying to remote debugging i realized that there is a basic solution. Here is what we need to do to solve this problem : 1) Of course at first we should have Eclipse WTP and tomcat 5.x or higher installed in our system. 2) We s