Re: [OS-webwork] XMLRPC dispatcher and view

2004-02-17 Thread remigijus
Does it supports different encoders. Few monts ago I had to write my own XMLRPC library, only because no one had support for character encoding. Regards Remis - Original Message - From: "Simon Stewart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 6:07 AM Su

RE: [OS-webwork] Unit-testing actions in WW1.3

2004-02-17 Thread Jason Carreira
Of course that's not unit testing :-) > -Original Message- > From: Hani Suleiman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 17, 2004 10:27 PM > To: [EMAIL PROTECTED] > Subject: Re: [OS-webwork] Unit-testing actions in WW1.3 > > > Why not just use GenericDispatcher? You should b

Re: [OS-webwork] Unit-testing actions in WW1.3

2004-02-17 Thread Hani Suleiman
Why not just use GenericDispatcher? You should be able to set up your environment programatically and make sure everything is populated correctly in your ActionContext (given of course that you avoid all web-specific calls). Have a look at ServletDispatcher, you'll see that all it is is a wrapp

RE: [OS-webwork] bug in select tag (WW2)?

2004-02-17 Thread Jason Carreira
Thanks for the update... Has anyone else had problems having both WW 1.x and WW 2 installed? > -Original Message- > From: Alex Radka [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 17, 2004 4:57 PM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] bug in select tag (WW2)? > > > du

RE: [OS-webwork] bug in select tag (WW2)?

2004-02-17 Thread Alex Radka
duh, I think I've been bitten by the JBoss UCL. I've deployed every example/skeletal war file I could find including a few from Webwork1.4. I went back and looked at the select.vm from webwork1.4 and, at the least, it had the odd line #bean ("webwork.util.ContainUtil" $contain), which isn't in th

[OS-webwork] bug in select tag (WW2)?

2004-02-17 Thread Alex Radka
Hi, I have three tags all using the same List of users. Radio and Checkboxlist both give the expected value/key pairs. Select seems to ignore the listKey and listValue and uses the toString() method of the User object for both the value and the key. I looked at checkboxlist.vm, select.vm, an

RE: [OS-webwork] Validating length of optional string-field

2004-02-17 Thread Jason Carreira
You can just write your own validator class and add it to your validators.xml... It's very easy, just look at the validator classes in Xwork. > -Original Message- > From: Sakke Wiik [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 17, 2004 1:59 PM > To: [EMAIL PROTECTED] > Subject: [O

[OS-webwork] Validating length of optional string-field

2004-02-17 Thread Sakke Wiik
One more validation problem... How can I validate the length of an optional String with the ValidationInterceptor when there's no String-validator, just a requiredstring one? Other types like int and date are not a problem since you can give them the min and max parameters. Shouldn't there be on

Re: [OS-webwork] WW2 doesn't work in Suse Linux 9

2004-02-17 Thread Carlos Jacobs
Thank you Well, now it is working. Velocity couldn't access to some files. I've setted permissions properly and all works fine. I'm sorry, I'm a newbie ... Carlos Los mejores usados y las más tentadoras ofertas de 0km están en Yahoo! Autos. Comprá o vendé tu auto en http://autos.ya

RE: [OS-webwork] Problems in validating optional fields

2004-02-17 Thread Jason Carreira
I've fixed both the URL and Email Validator in CVS, and the fixed versions will be available in the 1.0.1 release of Xwork. > -Original Message- > From: Sakke Wiik [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 17, 2004 12:28 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] Problem

[OS-webwork] Re: WW2 doesn't work in Suse Linux 9

2004-02-17 Thread Sven Kuenzler
Carlos Jacobs schrieb: WW2 doesn't work in Suse Linux 9. Servlet container" Tomcat 4.1.27 I've dropped webwork-example.war in Tomcat's webapps directory. If I test any sample, ww2 fails. Errors: [...] java.lang.RuntimeException: Unable to instantiate VelocityEngine! [...] What JDK version do y

[OS-webwork] Problems validating optional fields

2004-02-17 Thread Sakke Wiik
Recently I wondered if it's possible to validate optional fields using the ValidationInterceptor, and there seemed to be a bug in the email validator not accepting an empty value. I have the same problem with the url validator. Can someone confirm that these don't work so it's not a mistake in m

[OS-webwork] Problems in validating optional fields

2004-02-17 Thread Sakke Wiik
Recently I wondered if it's possible to validate optional fields using the ValidationInterceptor, and there seemed to be a bug in the email validator not accepting an empty value. I have the same problem with the url validator. Can someone confirm that these don't work so it's not a mistake in m

Re: [OS-webwork] WW2 doesn't work in Suse Linux 9

2004-02-17 Thread Andrius Paulauskas
I hardly believe it's distribution causing your problem. I'm not Velocity expert but it seem's your problem is outlined by java.lang.RuntimeException: Unable to instantiate VelocityEngine! That may be a hint. > WW2 doesn't work in Suse Linux 9. > Servlet container" Tomcat 4.1.27 > > I've dropped

[OS-webwork] WW2 doesn't work in Suse Linux 9

2004-02-17 Thread Carlos Jacobs
WW2 doesn't work in Suse Linux 9. Servlet container" Tomcat 4.1.27 I've dropped webwork-example.war in Tomcat's webapps directory. If I test any sample, ww2 fails. Errors: javax.servlet.ServletException: Servlet.init() for servlet webwork threw exception at org.apache.catalina.core.Stan

RE: [OS-webwork] Unit-testing actions in WW1.3

2004-02-17 Thread Jason Carreira
You could try refactoring your base Action class to use Dependency Injection with a container like Spring (there's docs on using Spring with WW1.x on the Wiki). Then, to unit test, you could just create a Mock DataSource, etc.. Otherwise, you'll need to manage ActionContext scopes yourself, in the

[OS-webwork] Unit-testing actions in WW1.3

2004-02-17 Thread James Pan
Hi, I have a base class from which all my actions extend. This base class uses ActionContext to read properties file, initialize database connections, and so on. Now, when I create a new action, how can I unit-test it? I haven't tried it because the idea seems absurd to me, but do I need to hav

RE: [OS-webwork] Chaining Actions

2004-02-17 Thread Jason Carreira
Title: Message That depends on the order of the Interceptors... If you put the ParameterInterceptor after the ChainingInterceptor it will override the parameter values. -Original Message-From: Mathias Berg [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 17, 2004 3:36 AM

RE: [OS-webwork] URL to MVC framework comparison?

2004-02-17 Thread Kris Thompson
http://www.frameworks-boulder.org/Application_Frameworks.html This isn't much of a comparison but more of a listing... and it is about 3 months out-of-date too. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Wayland Chan Sent: Friday, January 16, 2004 7:

RE: [OS-webwork] ww2 initial impressions & docs

2004-02-17 Thread Lars Fischer
Jason, under "URLtag" the "encode" stuff needs to be removed in webwork.tld (and maybe taglib.tld). I´m using the following configuration in web.xml: webwork /WEB-INF/webwork.tld After removing the "encode" stuff it works. Regrads, Lars > Please create Jira issues for any of these you

Re: [OS-webwork] Velocity access to session

2004-02-17 Thread Vítor Souza
- Original Message - > From: "James Courtney" <[EMAIL PROTECTED]> > > Can action1 store the value of myParam1 in the session in such a way that template3 can retrieve it without the aid > of inserting an action between template2 and template3? Hi James, There are many possibilities

Re: [OS-webwork] webwork 2 - iterator status

2004-02-17 Thread kvui
It works!.and the reference for status should go without the "'". Thanks! > try using > > > > > [EMAIL PROTECTED] wrote: > >>I'm having problem getting the iterator status to work. >>Here's a snip of the code: >> >> >> >> >> >> >>I'm using webwork 2 >>What's wrong? >> >>Thanks >> >> >>

RE: [OS-webwork] Chaining Actions

2004-02-17 Thread Mathias Berg
Title: Message so if parameter1 is null from JSP to Action1 and is set to parameter1=2 in Action1, and then chain to Action2. Should the parameter1 be null or 2?   tricky question :)   For me the result gets:  parameter1=null in Action2. I use ChainingInterceptor is this right? Haven't i o