Re: [appfuse-user] List in JSP - getParameterValues

2007-03-26 Thread Pete Gould
Hi, Also something that had me for a few minutes which you might encounter after making the change Matt suggests was the following: The multiselect box in userForm.jsp also needs to have a javascript function to select all the values in the right hand box before form submission - so just make su

[appfuse-user] hibernate mapping files

2007-03-26 Thread Richard G. Reyes
Hi All, I am using the webwork version 1.9.4. I think I have a fairly complex domain model and I think that It is a wise step to just create all my hibernate mapping files manually rather than use xdoclet. My initial design of our domain model involves a fair bit of inheritance, considering this

[appfuse-user] Bypassing XDoclet

2007-03-26 Thread Richard G. Reyes
Hi All, I am using webwork - appfuse 1.9.4 I think I have a fairly complex domain model and I would like to bypass xdoclet generation and hand code the mapping files myself. I dont mind digging through the build file, just wonder if anyone of you guys have the specific ant target names to use to

[appfuse-user] How to get rid of log4j warning?

2007-03-26 Thread wnqq
Environment: v.2M4 + Struts basic archetype When executing mvn integration-test, I got the annoying warning message: "log4j:WARN No appenders could be found for logger (com.canoo.webtest.ant.TestStepSequence)." I tried editing src/main/resources/log4j.xml but could not get rid of the warning. Wh

Re: [appfuse-user] Maven behind a proxy

2007-03-26 Thread Matt Raible
On 3/26/07, Matt Raible <[EMAIL PROTECTED]> wrote: So you added your proxy settings to: C:\Documents and Settings\bondn\.m2\settings.xml? If so, and it's not working, I can make a zip available for download that has all the dependencies needed by AppFuse (including the AppFuse JARs). Here's a

Re: [appfuse-user] Maven behind a proxy

2007-03-26 Thread Matt Raible
So you added your proxy settings to: C:\Documents and Settings\bondn\.m2\settings.xml? If so, and it's not working, I can make a zip available for download that has all the dependencies needed by AppFuse (including the AppFuse JARs). Matt On 3/26/07, Nigel in NZ <[EMAIL PROTECTED]> wrote: Hi

Re: [appfuse-user] Maven behind a proxy

2007-03-26 Thread Nigel in NZ
Hi, I tried doing as you asked but with no success. Possibly the problem is that I am working on a windows system. So my maven install is on C:\tools\maven-2.0.5 and the settings are under C:\Documents and Settings\bondn\.m2 So under the maven bit we have a conf directory which has settings

Re: [appfuse-user] Displaytag variable pagesize question

2007-03-26 Thread Matt Raible
In StartupListener.java, add the following in the setupContext() method to put it into the application scope: context.setAttribute("pagesize", "25"); Matt On 3/27/07, Adriel Manalansan <[EMAIL PROTECTED]> wrote: I forgot to say this, I am using Appfuse-webwork-1.9.4... Matt Raible wrote: > A

Re: [appfuse-user] Displaytag variable pagesize question

2007-03-26 Thread Adriel Manalansan
I forgot to say this, I am using Appfuse-webwork-1.9.4... Matt Raible wrote: Are you using AppFuse 1.x or 2.x? I'd suggest using the StartupListener if you're using 1.x. It should be pretty easy to stuff a variable in the servletContext (application scope). Matt On 3/27/07, Adriel Manalansa

Re: [appfuse-user] Displaytag variable pagesize question

2007-03-26 Thread Adriel Manalansan
I make the <%=request.getAttribute("pagesize")> work but I fail to the ${pagesize}. What will I do to make it work? I dont know how to put the "pagesize" in the request, session or application scope to make the ${pagesize} work. Thank you so much again Matt... Matt Raible wrote: Are you using

Re: [appfuse-user] Displaytag variable pagesize question

2007-03-26 Thread Matt Raible
Are you using AppFuse 1.x or 2.x? I'd suggest using the StartupListener if you're using 1.x. It should be pretty easy to stuff a variable in the servletContext (application scope). Matt On 3/27/07, Adriel Manalansan <[EMAIL PROTECTED]> wrote: How do I put the pagesize in the request, session

Re: [appfuse-user] Displaytag variable pagesize question

2007-03-26 Thread Adriel Manalansan
How do I put the pagesize in the request, session or application scope? Can you please give me a sample code. Im a newbie... Thank you so much... Matt Raible wrote: You should be able to use something like ${pagesize} where "pagesize" is a variable you put in the request, session or application

Re: [appfuse-user] Maven2 problem

2007-03-26 Thread aninggo
ok! thanks matt:) mraible wrote: > > Try using: > > **/*.xml > > That should work. > > Matt > > On 3/26/07, aninggo <[EMAIL PROTECTED]> wrote: >> >> i try edit pom >> >> >> src/main/java >> >> *.xml >>

Re: [appfuse-user] Maven2 problem

2007-03-26 Thread Matt Raible
Try using: **/*.xml That should work. Matt On 3/26/07, aninggo <[EMAIL PROTECTED]> wrote: i try edit pom src/main/java *.xml false but it not work aninggo wrote: > > ye

Re: [appfuse-user] Maven2 problem

2007-03-26 Thread aninggo
i try edit pom src/main/java *.xml false but it not work aninggo wrote: > > yes, i use eclipse ,but Maven2 not be achieve?Thanks, Mike and the Barlow > > > Philip Barlo

Re: [appfuse-user] Maven2 problem

2007-03-26 Thread aninggo
yes, i use eclipse ,but Maven2 not be achieve?Thanks, Mike and the Barlow Philip Barlow wrote: > > You can add this to your pom but it shouldn't be necessary, we had the > same problem, i think it might be something to do with eclipse auto > building the project, are you using eclipse? > >

Re: [appfuse-user] Maven2 problem

2007-03-26 Thread Philip Barlow
You can add this to your pom but it shouldn't be necessary, we had the same problem, i think it might be something to do with eclipse auto building the project, are you using eclipse? ${basedir}/src/java *.hbm.xml

Re: [appfuse-user] How to create separate transaction from Spring's

2007-03-26 Thread dayspringjohn
Thanks for the reply. My experience with this setting has been limited to adding or removing the readOnly flag; if you've done this before can you be more specific? Would I use something like PROPAGATION_NESTED or PROPAGATION_REQUIRES_NEW? Will I still have access to a Spring session, just with n

Re: [appfuse-user] How to create separate transaction from Spring's

2007-03-26 Thread Matt Raible
You could change your transaction definition in your bean for this manager by overriding the "transactionAttributes" property. Matt On 3/26/07, dayspringjohn <[EMAIL PROTECTED]> wrote: Hi, Using appfuse 1.9 and struts/hibernate, Spring sets up my transaction, my action calls the manager whic

[appfuse-user] How to create separate transaction from Spring's

2007-03-26 Thread dayspringjohn
Hi, Using appfuse 1.9 and struts/hibernate, Spring sets up my transaction, my action calls the manager which calls the DAO, everything's great. In one case, however, I have a long update process where I need to manage the transaction so I can commit periodically and avoid db deadlocks. How can

Re: [appfuse-user] 2nd solution : struts 2 problem select and validation

2007-03-26 Thread Matt Raible
You could also use the Preparable interface to get a callback to a prepare() method before your Action is populated and validated. Matt On 3/26/07, Benoit Moraillon <[EMAIL PROTECTED]> wrote: Another solution by overriding validate method in action class : @Override public void validate()

Re: [appfuse-user] dbtoxml error

2007-03-26 Thread Matt Raible
This plugin is not ready for usage yet, I hope to do some work on it this week. As far as Jetty, mvn jetty:run-war should work. If you want to use mvn jetty:run (or tomcat:run), you need to run "mvn war:inplace" first. If you're using Struts 2, you'll need to delete src/main/webapp/WEB-INF/class

Re: [appfuse-user] migrating to appfuse

2007-03-26 Thread Matt Raible
On 3/26/07, nos <[EMAIL PROTECTED]> wrote: Hi all, I'm writing because I'm considering adapting an existing app to use AppFuse. The app lightly uses Spring and Hibernate, but I would like to migrate to AppFuse over time because it will provide a focused community, common and up to date compone

Re: [appfuse-user] Appfuse PB creating an app from an existing table

2007-03-26 Thread Matt Raible
Can you run "ant test-dao" to verify that the tests can connect to your database? Matt On 3/26/07, Nitram <[EMAIL PROTECTED]> wrote: A mySQL driver is installed in C:\Program Files\planningRAO\lib\mysql-connector-java-5.0.3\mysql-connector-java-5.0.3-bin.jar. I have not find any warning about

Re: [appfuse-user] generic converter

2007-03-26 Thread Matt Raible
This sounds like a reasonable approach. Have you been using it with success? Matt On 3/1/07, Benoit Moraillon <[EMAIL PROTECTED]> wrote: Hi everybody, 1) i'm using jsf converter in order to create a many-to-one relationship from will be replaced by : i think it's more reusable. What is

Re: [appfuse-user] List in JSP - getParameterValues

2007-03-26 Thread Matt Raible
The "rightId" parameter should be a String value that you can get using request.getParameterValues("rightId"). Have you looked at your source code to see the id/name that's generated for the right-most box? Matt On 2/28/07, hquinn <[EMAIL PROTECTED]> wrote: Greetings everyone!! I'm working w

[appfuse-user] migrating to appfuse

2007-03-26 Thread nos
Hi all, I'm writing because I'm considering adapting an existing app to use AppFuse. The app lightly uses Spring and Hibernate, but I would like to migrate to AppFuse over time because it will provide a focused community, common and up to date components, and hopefully I can avoid messing around

Re: [appfuse-user] Re: Struts maxlength validator doesn't work

2007-03-26 Thread Matt Raible
Did you ever get this solved? I'd try looking at Commons Validator's documentation and comparing the suggested rules with those generated by XDoclet. http://struts.apache.org/1.2.4/userGuide/dev_validator.html Matt On 2/27/07, Omar Giugovaz <[EMAIL PROTECTED]> wrote: Yes, the validation is in

Re: [appfuse-user] Admin Interceptor

2007-03-26 Thread Matt Raible
If you look in struts.xml, you should see it references in the interceptors section, as well as on some actions, like the useAction: /WEB-INF/pages/userList.jsp Matt On 3/25/07, appfused <[EMAIL PROTECTED]> wrote: How is the following interceptor class

Re: [appfuse-user] How to upgrade from 2.0 M4-SNAPSHOT to M4 ?

2007-03-26 Thread Matt Raible
There's no way for us to know which day you created your application, so the best thing to do is look at the upgrade guide and see if you already have the changes in your pom.xml. http://appfuse.org/display/APF/Release+Notes+2.0+M4 The easiest way to upgrade (at this point) is to create a new pr

Re: [appfuse-user] Displaytag variable pagesize question

2007-03-26 Thread Matt Raible
You should be able to use something like ${pagesize} where "pagesize" is a variable you put in the request, session or application scope. If you're using Servlet 2.3 (AppFuse 1.x), you have have to use a scriplet, for example: <%=request.getAttribute("pagesize")>. HTH, Matt On 3/26/07, Adriel M

[appfuse-user] 2nd solution : struts 2 problem select and validation

2007-03-26 Thread Benoit Moraillon
Another solution by overriding validate method in action class : @Override public void validate() { // TODO Auto-generated method stub super.validate(); this.availableTypesRessources = typeRessourceManager.getAll(); } --

Re: [appfuse-user] Hosting?

2007-03-26 Thread Matt Raible
You could add Google Ads and make money rather than losing it! I pay $60/month for raibledesigns.com, appfuse.org and raible.net. I make $100/month off Google Ads, so Java hosting *is* cheaper than PHP! ;-) Matt On 3/26/07, Wim Deblauwe <[EMAIL PROTECTED]> wrote: Thanks for all the replies so

Re: [appfuse-user] Hosting?

2007-03-26 Thread Wim Deblauwe
Thanks for all the replies so far. It is obvious that there are some good hosts, but it is never as cheap as PHP. You can get PHP hosting for only 1 euro/month (http://www.1eurohosting.be/default.php?page=webhosting&set_language=en). Maybe I just need to learn PHP :) regards, Wim mraible wrot

[appfuse-user] solution : struts 2 problem select and validation

2007-03-26 Thread Benoit Moraillon
i've found the solution with form validation and s:select tag : if i put this in my action, it works : public List getAvailablesTypesRessources() { return this.typeRessourceManager.getAll(); } but if i do : public List getAvailablesTypesRessources() { return this.availableTypes

Re: [appfuse-user] Hosting?

2007-03-26 Thread bgiles
I hosted my own mail and Apache server at home for awhile. I now pay $25/month for a virtual server at tummy.com. (Unfortunately it's not powerful enough to run tomcat + database.) The gotchas are: 1) vacations, especially with older hardware. I generally leave my systems up 24/7 and I've had

[appfuse-user] struts 2 problem select and validation

2007-03-26 Thread Benoit Moraillon
Hi appfusers, i've a big problem with form validation ans s:select tag in struts 2. I have a ressource form like this : validate="true"> key="button.delete" onclick="return confirmDelete('ressource')"/> name="r

Re: [appfuse-user] Hosting?

2007-03-26 Thread Matt Raible
kgbinternet.com and kattare.com offer pretty reasonable plans - I've hosted Java applications with both of them for a few years. Matt On 3/26/07, Wim Deblauwe <[EMAIL PROTECTED]> wrote: Hi, for the new website of my band, I am thinking about doing something more fancy then static html pages l

Re: [appfuse-user] Can't log into demos

2007-03-26 Thread Matt Raible
Should be fixed now - sorry about that. Matt On 3/26/07, Wim Deblauwe <[EMAIL PROTECTED]> wrote: None of the appfuse demos seem to allow login with the proposed credentials (mraible/tomcat and tomcat/tomcat). I'm using Firefox 2.0.0.3 on Windows XP. I'm always getting invalid username or pas

Re: [appfuse-user] Appfuse PB creating an app from an existing table

2007-03-26 Thread Nitram
A mySQL driver is installed in C:\Program Files\planningRAO\lib\mysql-connector-java-5.0.3\mysql-connector-java-5.0.3-bin.jar. I have not find any warning about the compatibility between the MySQL core product "MySQL 5.0.37" and this driver. The file C:\Program Files\planningRAO\.classpath points

Re: [appfuse-user] Hosting?

2007-03-26 Thread Sib
+1... you can host yourself at home ... "most internet providers in Belgium do not allow this" How do they stop you? By blocking port 80? Or by rotating the IP address? Well you can run on any port say 8080 or and forward from a free service like zoneedit.com which picks up your dynamic IP

Re: [appfuse-user] Hosting?

2007-03-26 Thread reddeagle9
I have used www.eatj.com You can get a free developer trial account with them. They offer the basics and that suited me fine. Gives you tomcat, and my sql support but no php. Free trial wont hurt and tis dead cheap. Also appfuse is hosting by kgbinternet or someting like that, i think their se

[appfuse-user] Appfuse with eclipse some q's

2007-03-26 Thread reddeagle9
So far, i must say i am over impressed with appfuse. I am using appfuse 1.9.4 and starting to build my web application using this. I am using eclipse as my ide and have the project set up fine within eclipse and tomcat integrated: I would just like to confirm i am doing things ok. 1) Tomcat, whe

Re: [appfuse-user] Hosting?

2007-03-26 Thread Wim Deblauwe
True, but most internet providers in belgium do not allow this (unless you pay more). regards, Wim thomas_ramapuram wrote: > > One option would be to host it on your own machine at home. All you > need is 24X7 (internet and power) Preferably static IP and an old linux > box. > Wim Deblauwe

Re: [appfuse-user] Hosting?

2007-03-26 Thread Calen Martin D. Legaspi
If you can manage a linux server yourself, try Rimuhosting's Virtual Private Server service. It's cheap because you only rent part of the server. I used their VPS when I was just starting my company. Also, their service is superb. Calen On 3/26/07, Wim Deblauwe <[EMAIL

Re: [appfuse-user] Hosting?

2007-03-26 Thread Pete Gould
Hiya, Not looked at this for a long time, and not sure if it fulfils the prereqs for AppFuse, but I've used http://www.myjavaserver.com to host java web apps in the past. Not sure if it still offers free membership etc... Just had a look, and it seems like you now even have to write a little bit

Re: [appfuse-user] Hosting?

2007-03-26 Thread Thomas Ramapuram
One option would be to host it on your own machine at home. All you need is 24X7 (internet and power) Preferably static IP and an old linux box. Wim Deblauwe wrote: Hi, for the new website of my band, I am thinking about doing something more fancy then static html pages like I did before and u

Re: [appfuse-user] Appfuse PB creating an app from an existing table

2007-03-26 Thread Nitram
I may have problem with mi JDBC driver. I am looking further more to check if I have properly installed a JDBC driver. mraible wrote: > > Can you try using Ant 1.6.5, we haven't tested 1.9.x with Ant 1.7. > > Matt > > On 3/23/07, Nitram <[EMAIL PROTECTED]> wrote: >> >> First of all, I work o

Re: [appfuse-user] Appfuse PB creating an app from an existing table

2007-03-26 Thread Nitram
Hi, all of you. Back to the workbench. I have switched to the Ant 1.6.5 version. Always the same. So I destroy the previous building; I execute the following commands : cd "\Program Files\AppFuse" ant new answering planningRAO, RAO_DB, org.IDS, struts cd "\Program Files\PlanningRAO\extras\appgen

Re: [appfuse-user] Maven2 problem

2007-03-26 Thread Michael Horwitz
All xml files should be added below src/main/resources. Where are you adding your? Mike On 3/26/07, aninggo <[EMAIL PROTECTED]> wrote: I add the *.xml file in org.xx.xx ,But maven2 not auto copy file . i usered mvn jetty:run-war. -- View this message in context: http://www.nabble.com/Maven