[OS-webwork] docs are important

2004-02-19 Thread Bill Lynch
All, Ouch: http://www.depeupleur.com/blog/TT_blog/archives/19.html We got zinged there -- Jason, thanks for the good followup. Let's use this as impetus to improve the docs! I recently started working on the WW2 docs and I'd be happy to help out with XWork if someone could give me cvs commi

[OS-webwork] [Fwd: WebWork2 Problems.] Resend

2004-02-19 Thread Rick Salsa
Sorry, but my home account's mail server has been down all day, so I don't know if it got through. So hear it is again. If someone answered earlier, could you please forward me that email? Thanks! I seem to be having a really wierd problem that I can't seem to figure out. I've got an Action cla

RE: [OS-webwork] xwork and components and NullPointerExceptions

2004-02-19 Thread Jason Carreira
Title: Message Do you have the ServletContextListener and other lifecycle listeners which set up the containers configured? -Original Message-From: Gilbert, Jeffrey [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 3:11 PMTo: [EMAIL PROTECTED]Subject: [OS-webwo

RE: [OS-webwork] Action Parameters

2004-02-19 Thread Jason Carreira
Do you just want to set the params on your Action, or get access to the Map of params from the config? If you want to just set the properties, then use the static params interceptor. If you want to get the Map, you can get it from the ActionConfig object which you can get from the ActionProxy.. A

RE: [OS-webwork] WebWork2 Problems.

2004-02-19 Thread Jason Carreira
The others answered your expression language issue... Can you check if the order object is not null? Also check if the lastName property is not empy... > -Original Message- > From: Rick Salsa [mailto:[EMAIL PROTECTED] > Sent: Thursday, February 19, 2004 12:39 PM > To: [EMAIL PROTECTED] >

RE: [OS-webwork] xwork and components and NullPointerExceptions

2004-02-19 Thread Patrick Lightbody
There are two things you need to do: 1) Make sure that component interceptor is in your stack. You need to do this using WebWork or just XWork no matter what. 2) If you aren't using WebWork, take a look at the LifecycleListener classes in WebWork to get an idea how the three scopes are construct

Re: [OS-webwork] xwork and components and NullPointerExceptions

2004-02-19 Thread VisualJeff
But what if I'm not using a web container just xwork? Jeff At 02:54 PM 2/19/2004 -0800, you wrote: do you have these listeners and filters setup in your web.xml? container com.opensymphony.webwork.lifecycle.RequestLifecycleFilter container /* com.o

Re: [OS-webwork] Webwork2 tags not working on velocity

2004-02-19 Thread Matt Ho
Vítor Souza wrote: Hi, I'm getting an error from Velocity when I try to use Webwork UI tags in a VM template. If I write this (which was taken from Using+WebWork+2+Tags+from+Velocity in the wiki) in the script: #tag( TextField "label=Username" "name=username" ) This should be #tag(

Re: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Frank Febbraro
I like the solution that Raymond implemented. What is the time frame on 1.4.1? - Original Message - From: "Dick Zetterberg" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 5:43 PM Subject: Re: [OS-webwork] Dynamic View Mapping > > - Original Message --

Re: [OS-webwork] xwork and components and NullPointerExceptions

2004-02-19 Thread Francisco Hernandez
do you have these listeners and filters setup in your web.xml? container com.opensymphony.webwork.lifecycle.RequestLifecycleFilter container /* com.opensymphony.webwork.lifecycle.ApplicationLifecycleListener com.o

Re: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Dick Zetterberg
- Original Message - From: "Frank Febbraro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 5:50 PM Subject: Re: [OS-webwork] Dynamic View Mapping > Ok I see what is going wrong. > > the view result is: > redirect.action?url=somthing?param1=value1¶m2=value2

RE: [OS-webwork] Rendering java.sql.Timestamp?

2004-02-19 Thread Larsson, Jonas
Worked like a charm! And as a side effect I am half way to localizing my app :) Thanks for the superfast reply. /Jonas -Original Message- From: Hani Suleiman [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 10:52 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Rendering j

Re: [OS-webwork] Rendering java.sql.Timestamp?

2004-02-19 Thread Hani Suleiman
The tag is actually incorrect. The right thing to do is: then in your action i18n properties file: timestamp={0,date,-MM-dd HH:mm:ss} The idea being that you can have different ways of displaying time based on different locales etc. On Feb 19, 2004, at 4:48 PM, Larsson, Jonas wrote: Hm

RE: [OS-webwork] Rendering java.sql.Timestamp?

2004-02-19 Thread Larsson, Jonas
Hmm I was too fast. When using this tag it seems WW also wants to find a i18n resource that has my formatting string as key! The formatting works great but I get a stacktrace in ActionSupport.getText() ... Caused by: java.util.MissingResourceException: Can't find resource for bundle java.util.Pr

Re: [OS-webwork] XMLRPC dispatcher and view

2004-02-19 Thread remigijus
- Original Message - From: "Simon Stewart" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, February 19, 2004 12:20 AM Subject: Re: [OS-webwork] XMLRPC dispatcher and view > remigijus wrote: > > Does it supports different encoders. Few monts ago I had to write my own > > XMLR

[OS-webwork] Webwork2 tags not working on velocity

2004-02-19 Thread Vítor Souza
Hi, I'm getting an error from Velocity when I try to use Webwork UI tags in a VM template. If I write this (which was taken from Using+WebWork+2+Tags+from+Velocity in the wiki) in the script: #tag( TextField "label=Username" "name=username" ) I get this error: Invalid arg #0 in

RE: [OS-webwork] Rendering java.sql.Timestamp?

2004-02-19 Thread Larsson, Jonas
Now if found it! I found the reference to MessageFormat in the WW docs, but I did not realize that it was a standard Java class. I thought it was a WW class and thought I was crazy when I did not find it in the WW Javadoc ... Well. It seems I learned something today too. Who would have thought th

[OS-webwork] xwork and components and NullPointerExceptions

2004-02-19 Thread Gilbert, Jeffrey
Title: xwork and components and NullPointerExceptions It looks to me as if xwork is not loading my component?         application     com.gilbert.providers.impl.TestProviderImpl     com.gilbert.providers.TestProviderAware     My action is implements TestProviderAware

RE: [OS-webwork] Rendering java.sql.Timestamp?

2004-02-19 Thread Cuong Tran
Not sure where the doc is, but it's using MessageFormat. Something like --- "Larsson, Jonas" <[EMAIL PROTECTED]> wrote: > > I saw this last night when browsing the list archive. Where is this > use of > the text tag documented? > I've looked in the wiki, the API docs and the Cookbook but I

[OS-webwork] Action Parameters

2004-02-19 Thread Samuel Mota
Hi, I'm trying to configure my action with parameters at xwork.xml ... But how can I get it back on my action? ActionContext.getContext().getParameters() contains only the parameter passed on the querystring. T: \Sistemas\Programas\CVS-WorkingFolder\smota\NetsetWeb\public\applicat

Re: [OS-webwork] WebWork2 Problems.

2004-02-19 Thread Francisco Hernandez
you need to use . instead of /, so it should be order.lastName see: http://wiki.opensymphony.com/space/OGNL Rick Salsa wrote: I seem to be having a really wierd problem that I can't seem to figure out. I've got an Action class which is making calls on an domain object. The snippet in the acti

RE: [OS-webwork] WebWork2 Problems.

2004-02-19 Thread Patrick Lightbody
Rick... remember, in 2.0 "/" is now "." -- Ognl is trying to divide, and to do so it is trying to convert Order -> String. > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Rick Salsa > Sent: Thursday, February 19, 2004 9:39 AM > To: [EMAIL PROTECTED

[OS-webwork] WebWork2 Problems.

2004-02-19 Thread Rick Salsa
I seem to be having a really wierd problem that I can't seem to figure out. I've got an Action class which is making calls on an domain object. The snippet in the action class: public Order getOrder() { return order; } and the input field in the form: The field is being set properly, bu

Re: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Hani Suleiman
Hm, there should be some way of being able to do this, and some escaping rules I think. On Feb 19, 2004, at 12:29 PM, Frank Febbraro wrote: Closer but url=servlet?param1=value1%26param2=value2 in servlet, param1 now equals "value1¶m2=value2" For now I think I am going to handle the redirect b

Re: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Frank Febbraro
Closer but url=servlet?param1=value1%26param2=value2 in servlet, param1 now equals "value1¶m2=value2" For now I think I am going to handle the redirect by hand via: ActionContext.getResponse().sendRedirect() and return NONE from my Action. That is simplest, and I can't think of any other quick

Re: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Jérôme BERNARD
Quoting Frank Febbraro <[EMAIL PROTECTED]>: > Ok I see what is going wrong. > > the view result is: > redirect.action?url=somthing?param1=value1¶m2=value2 > > What is happening is that it interprets redirect.action as having 2 > parameters > > 1) url=somthing?param1=value1 > 2) param2=value2 >

AW: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Patrick Holzmann
What about adding the encoded value for the '&' character? Using something like ?value=test%26best should give you test&best cheers p -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Auftrag von Frank Febbraro Gesendet: Donnerstag, 19. Februar 2004 17:50 An:

RE: [OS-webwork] Rendering java.sql.Timestamp?

2004-02-19 Thread Larsson, Jonas
I saw this last night when browsing the list archive. Where is this use of the text tag documented? I've looked in the wiki, the API docs and the Cookbook but I can't seem to find it... /Jonas -Original Message- From: Cuong Tran [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 200

Re: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Frank Febbraro
Ok I see what is going wrong. the view result is: redirect.action?url=somthing?param1=value1¶m2=value2 What is happening is that it interprets redirect.action as having 2 parameters 1) url=somthing?param1=value1 2) param2=value2 not sure how to fix it yet...any ideas... The only workaround I c

Re: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Frank Febbraro
If you use & it causes a parsing exception in the actions.xml file. I also determined that it has nothing to do with dynamic mappings, even if both parameters are hardcoded the second one still gets left off. Will do some investiagtion, and possibly hack a workaround if I can't find the bug. Sta

Re: [OS-webwork] Dynamic View Mapping

2004-02-19 Thread Hani Suleiman
Did you try just using & instead of &? If that doesn't work, then file a bug (I vaguely remember having problems with this previously too) On Feb 19, 2004, at 10:25 AM, Frank Febbraro wrote: Using WW 1.4   I am trying to setup a dynamic view mapping as specified here: (this redirects to a se

RE: [OS-webwork] Newbie question - how to change the tags

2004-02-19 Thread Paul Knepper
See. http://jira.opensymphony.com/secure/ViewIssue.jspa?key=WW-431 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Francisco Hernandez Sent: Wednesday, February 18, 2004 8:51 PM To: [EMAIL PROTECTED] Subject: Re: [OS-webwork] Newbie question - how to change

RE: [OS-webwork] Newbie question - how to change the tags

2004-02-19 Thread Alex Radka
Answered my own question. I put it in a directory called rubicon, in the basedir of my war. From your comments I would have expected it to be in template/rubicon, so I'm not sure it works the way you expected... but it works. Thanks, Alex -Original Message- From: [EMAIL PROTECTED] [mailt

[OS-webwork] Dynamic View Mapping

2004-02-19 Thread Frank Febbraro
Using WW 1.4   I am trying to setup a dynamic view mapping as specified here: (this redirects to a section of the app that is legacy)        redirect.action?url="">     My action has getDealID() and that all works fine   However the redirect gets sent as: http://host/context/cont

RE: [OS-webwork] Newbie question - how to change the tags

2004-02-19 Thread Alex Radka
That's what I was looking for, thanks. Where do I put the template dir? Do I need to rebuild webwork.jar or can I put it in my war somewhere? I tried the basedir and under /WEB-INF/classes but I get Fatal exception caught in com.opensymphony.webwork.views.jsp.ui.SelectTag tag class, doEndTag: Un

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

2004-02-19 Thread Jed Prentice
You don't need to even bother with Cactus if you aren't using anything HTTP-specific, e.g., javax.servlet.HttpSession, which makes things even easier. You can just use JUnit as always. As long as webwork is in the classpath for your tests you are set. Jed - Original Message - From: "Fr

RE: [OS-webwork] HttpHeaderResult

2004-02-19 Thread Samuel Mota
Hi Jason, In fact the ServletDispatcherResult can handle this. The action doExecute methos does only the following: ServletResponse response = ServletActionContext.getResponse(); response.setContentType("application/x-java-jnlp-file"); and flush: response.flush(); So the ServletDispatcherResult

Re: [OS-webwork] Rendering java.sql.Timestamp?

2004-02-19 Thread Dick Zetterberg
- Original Message - From: "Larsson, Jonas" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, February 18, 2004 11:41 AM Subject: [OS-webwork] Rendering java.sql.Timestamp? > > Can someone please give me a pointer to how to customize the formatter for > rendering date objects (

RE: [OS-webwork] ww:select listKey

2004-02-19 Thread kvui
Would try that next week > Strange -- if you can provide a simple test that replicates this > behavior I'll be sure to get a bug fix in for 2.0.1 > >> -Original Message- >> From: [EMAIL PROTECTED] >> [mailto:[EMAIL PROTECTED] On Behalf Of >> [EMAIL PROTECTED] >> Sent: Wednesday, February 1