Re: [OS-webwork] Type conversion

2004-03-01 Thread Mark Woon
Jason Carreira wrote: The type converter is registered with Ognl when the ValueStack is created. I just created an issue to add the type converter to the ObjectFactory. I'm not sure how much sense it makes, though... You can already register your own default type converter with the

Re: [OS-webwork] Intended roadmap for webwork project?

2004-02-10 Thread Mark Woon
Jason Carreira wrote: We definitely need to coordinate to make sure any bugs are guaranteed fixed in both spots, and any features added to 1.4+ should at least be evaluated for going into 2.0 (some may not make sense). In that case, I nominate Hani's file upload enhancements in 1.4 ;) -Mark

[OS-webwork] Determining context from Interceptor

2004-02-03 Thread Mark Woon
I need to check if an Interceptor is being called from within a servlet environment. Right now I'm checking if ServletActionContext.getRequest() == null. Is there a better way? Thanks, -Mark --- The SF.Net email is sponsored by EclipseCon

Re: [OS-webwork] Webwork 1.4.1

2004-01-21 Thread Mark Woon
Hani Suleiman wrote: Re: [OS-webwork] Webwork 1.4.1 On Jan 20, 2004, at 9:17 PM, Scott Farquhar wrote: On Tue, Jan 20, 2004 at 09:07:34PM -0500, Hani Suleiman wrote: Scott, what features do you need in 1.4.1 that aren't in 1.4.0? Mainly the Pell

Re: [OS-webwork] How to redirect to a page with parameters?

2004-01-16 Thread Mark Woon
Jason Carreira wrote: RE: [OS-webwork] How to redirect to a page with parameters? Which WebWork version are you using? If it's WW2, you can use a RedirectResult, and the location can be dynamic using the ${varName} notation. You can also set other parameters using the

Re: [OS-webwork] How to redirect to a page with parameters?

2004-01-16 Thread Mark Woon
Jason Carreira wrote: Message Take a look at the example web app, in the example linked to by: Click here to be test the ServletRedirectResult using a location resolved via ognl objId is not a property on the dispatcher result. You might want something like this:

[OS-webwork] ActionContexts

2004-01-16 Thread Mark Woon
In XWorks, what exactly is the role of the ActionContext? Does it sort of map to a ServletRequest in the sense that it is supposed to hold all the data necessary to process an Action and there will be one for each request? I'm asking because I'm trying to figure out where to store objects

Re: [OS-webwork] i18n in taglibs

2004-01-16 Thread Mark Woon
Jason Carreira wrote: RE: [OS-webwork] i18n in taglibs Ahh... This is in a JSP page that's hit without an Action? In that case, you won't have anything on the ValueStack to call getText() on... You could use the ww:action tag to execute an Action from the page (Page

Re: [OS-webwork] i18n in taglibs

2004-01-16 Thread Mark Woon
Adrian Fernandez wrote: RE: [OS-webwork] i18n in taglibs Mark, did you find another solution to the tag i18n issue? Nope. Nothing that's not a hack. I also don't want to just dump all my i18n stuff into one resource bundle (I want to associate my strings directly with the

Re: [OS-webwork] How to redirect to a page with parameters?

2004-01-16 Thread Mark Woon
Drew McAuliffe wrote: I do this sort of thing a lot. I'm not sure if the approach you're taking in your xwork file is the right way but it could be. I do know that I've had success with the following: action name="foo" class="test.FooAction" !-- results -- result

Re: [OS-webwork] How to redirect to a page with parameters?

2004-01-16 Thread Mark Woon
.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:88) at com.opensymphony.xwork.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55) My mistake, I needed to escape the ampserand. -Mark From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mark Woon

Re: [OS-webwork] XWork 1.0 Release Imminent

2004-01-14 Thread Mark Woon
Patrick Lightbody wrote: Re: [OS-webwork] XWork 1.0 Release Imminent All good questions... in fact, those are the hardest parts of making a release, so if anyone wants to help with those things, please contact me. I will be looking for a logo to include, I will be

Re: [OS-webwork] File uploading problem

2004-01-08 Thread Mark Woon
Francisco Hernandez wrote: Re: [OS-webwork] File uploading problem for your form are you using method post and enctype multipart/form-data? Duh... Thank you, I forgot to set the enctype. -Mark

Re: [OS-webwork] how to populate a list of objects from a form

2004-01-08 Thread Mark Woon
Patrick Lightbody wrote: RE: [OS-webwork] how to populate a list of objects from a form Yes, but usually these types of grid input forms have N number of rows, so pre-populating won't work. I'd like to take a quick vote on the two choices: 1) The domain model has a

Re: [OS-webwork] how to populate a list of objects from a form

2004-01-08 Thread Mark Woon
Patrick Lightbody wrote: RE: [OS-webwork] how to populate a list of objects from a form OK, so it looks like #2 is preferred. Should we have: * a new Class-collections.properties file * add a new "section" to Class-conversion.properties Definitely a new section

[OS-webwork] File uploading problem

2004-01-07 Thread Mark Woon
I'm trying upload a file in WW2 and following the recipe in the cookbook, but I'm getting a ClassCastException on MultiPartRequestWrapper multiWrapper = (MultiPartRequestWrapper) ServletActionContext.getRequest(); Any ideas what the problem might be? Thanks, -Mark

Re: [OS-webwork] File uploading problem

2004-01-07 Thread Mark Woon
Patrick Lightbody wrote: RE: [OS-webwork] File uploading problem Mark, What version of WW are you using? Beta 2 or the latest from CVS? CVS. Just updated 10 mins ago. I haven't tested file upload in a long time, so it's possible a bug has been introduced. Can

Re: [OS-webwork] How to redirect to a page with parameters?

2004-01-05 Thread Mark Woon
Joris Verschoor wrote: [OS-webwork] How to redirect to a page with parameters? I'd like to know how to redirect to a details page after a create / update. In the xml file I can set redirect, but where how can I specify parameters? I've been wondering the same

[OS-webwork] Calling mutators on Actions

2004-01-05 Thread Mark Woon
OS-webwork] Calling mutators on Actions Hi all, Is there a way to call a mutator on an Action with WW2 tags? More specifically, I need to grab the Principal from the session and provide it to my Action. Is there a way to do this? Thanks, -Mark

Re: [OS-webwork] WebWork2 taglib

2004-01-05 Thread Mark Woon
Jason Carreira wrote: Message Sorry, the docs are a little sparse for the taglib... Take a look at the example JSPs in the example web app... For getting texts from a resource bundle, you can use getText() like so: ww:textfield label="getText('some.text.key')"

[OS-webwork] Calling mutators on Actions

2004-01-02 Thread Mark Woon
Hi all, Is there a way to call a mutator on an Action with WW2 tags? More specifically, I need to grab the Principal from the session and provide it to my Action. Is there a way to do this? Thanks, -Mark --- This SF.net email is

Re: [OS-webwork] WebWork2 taglib

2004-01-02 Thread Mark Woon
Jason Carreira wrote: Message Sorry, the docs are a little sparse for the taglib... Take a look at the example JSPs in the example web app... For getting texts from a resource bundle, you can use getText() like so: ww:textfield label="getText('some.text.key')"

Re: [OS-webwork] WebWork2 taglib

2003-12-31 Thread Mark Woon
Jason Carreira wrote: Message It evaluates them against the value stack... For instance, if you have a property processingAction on your Action, then ww:form action="" method="'POST'" would call getProcessingAction on your Action instance and use that value. This

Re: [OS-webwork] CVS problems (was [WebWork2] Servlet mapping question)

2003-12-30 Thread Mark Woon
Jason Carreira wrote: RE: [OS-webwork] [WebWork2] Servlet mapping question What CVS are you looking at? WW2 is hosted at dev.java.net, not the sourceforge repository. Oops. I was looking on SourceForge. Thanks for clearing that up. But now I'm getting another problem: I

[OS-webwork] WebWork2 taglib

2003-12-30 Thread Mark Woon
My original e-mail didn't seem to make it to the list the first time. My apologies if anyone gets duplicates. I seem to need single quotes around all parameters passed into WebWork2's tags or they are completely ignored. I have to do this: ww:form action='/test.action' method='POST'

Re: [OS-webwork] WebWork2 taglib

2003-12-30 Thread Mark Woon
Francisco Hernandez wrote: Re: [OS-webwork] WebWork2 taglib for most if not all attributes you need to use single quotes to pass strings in or else the tags try and evaluate the attributes, this was done to make it compatible to the way ww1.x tags work Ah. I've

Re: [OS-webwork] CVS problems (was [WebWork2] Servlet mapping question)

2003-12-30 Thread Mark Woon
Francisco Hernandez wrote: Re: [OS-webwork] CVS problems (was [WebWork2] Servlet mapping question) see the faq: http://wiki.opensymphony.com/space/Webwork2+FAQ Someone should update the docs at http://xwork.dev.java.net/servlets/ProjectSource and

[OS-webwork] [WebWork2] Servlet mapping question

2003-12-29 Thread Mark Woon
Hi all. I'm trying to migrate from Struts to WebWork2 and I've run into a slight snag. In Struts, I have the ActionServlet mapped to /do/* (instead of the usual *.do). I'd like to do the same with WebWork. Instead of mapping the ServletDispatcher to *.action, I'd like to map it to /do/* as