Why does s:file break an ajax form?

2009-02-17 Thread Jon Wilmoth
I'm curious to know why the s:file tag breaks an 2.1.6 ajax form resulting in a javascript error "'message' is null or not an object" in IE6 (target div isn't updated).  The form, which contains some input tags and a s:file tag, works when the standard s:submit tag is used, but doesn't work with

Re: Overriding subset of interceptor params

2008-04-16 Thread Jon Wilmoth
. - Original Message From: Gabriel Belingueres <[EMAIL PROTECTED]> To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL PROTECTED]> Sent: Wednesday, April 16, 2008 4:55:25 PM Subject: Re: Overriding subset of interceptor params Seems OK to me (according to the current

Overriding subset of interceptor params

2008-04-16 Thread Jon Wilmoth
I'm trying to override one of three interceptor parameters in an action specific config using method #2 described in http://struts.apache.org/2.0.11.1/docs/interceptors.html#Interceptors-InterceptorParameterOverriding. Unfortunately the other two parameters that I'm not overriding are not being

Re: ModelDriven vs OGNL assignment?

2007-11-02 Thread Jon Wilmoth
Besides the simplified view references, I've used the level of indirection to allow for a dynamic model on a single action class that implements a number of related actions. In my case the action configuration sets a static property that defines the model property. The getModel implemenation u

DateTimePicker "time" type not working in 2.0.11

2007-10-14 Thread Jon Wilmoth
I've tried using the datetimepicker with the type attribute set to "time" (), but nothing shows up. There was a email thread this past spring on this subject, but it appears the tag was broken and to be fixed in 2.1. Is the tag still broken in 2.0.11? Thanks, Jon

params.excludeParams vs. Parameter Filter Interceptor?

2007-09-10 Thread Jon Wilmoth
I found an undocumented com.opensymphony.xwork2.interceptor.ParametersInterceptor parameter (excludeParams) that appears to do the same as com.opensymphony.xwork2.interceptor.ParameterFilterInterceptor. The later actually works on full property names vs. the regular expressions that filter ou

S2.0.8 datetimepicker on"x" not fired (bug?)

2007-07-11 Thread Jon Wilmoth
I've tried several onX event attributes and none of them seem to fire with the S2.0.8 datetimepicker. Is this a bug?

Re: [S2] login action w/FORM authentication?

2007-06-26 Thread Jon Wilmoth
TLY appreciate if one of the Struts developers had a workaround suggestion. For example would it be feasible to port FilterDispatcher to a servlet? ----- Original Message From: Jon Wilmoth <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, June 25, 2007 7:14:52 PM Subject: Re

Re: [S2] login action w/FORM authentication?

2007-06-25 Thread Jon Wilmoth
in action w/FORM authentication? yes - it is definitely possible. The thing to remember is that if you are using struts2 tags (which I'm pretty sure you are), you need to redirect through an action first so the value stack is available to the tag. /Ian Jon Wilmoth wrote: >To add a little

Re: [S2] login action w/FORM authentication?

2007-06-25 Thread Jon Wilmoth
jsp._jspService(login_jsp.java:111) If this is off topic and I should post this to the Tomcat user list please let me know...it just seems to me that other S2 users may have this same question. - Original Message From: Jon Wilmoth <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Sunday, Jun

[S2] login action w/FORM authentication?

2007-06-24 Thread Jon Wilmoth
Is it possible to use an action as the webapp's login page? I've tried the following web.xml/struts.xml entries with S2.0.8 & Tomcat 5.5.23, but get a 404 The requested resource (/mywebapp/login.action) is not available message. FORM /login.action /logi

[S2] validation error message params w/ message key?

2007-06-14 Thread Jon Wilmoth
The DTD (http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd) for the xml validation file definition doesn't appear to support error message parameters. How does one pass msg parameters when using the message key (which I assume is a i18n message file key)? Using the example on http://

[S2] int validator for longs?

2007-06-14 Thread Jon Wilmoth
I noticed there's only two bundled numeric data type validator (int, double). Is there any reason the S2 "int" validator can't be used for long field validations (or other data types w/out decimals)? p.s. The http://struts.apache.org/2.x/docs/validation.html page is missing a link for the doub

Re: [S2] How Validators of an Action are Found

2007-05-30 Thread Jon Wilmoth
Thank you. So MyAction-validation.xml will only work with the following (equivalent configs)? /result.jsp or /result.jsp - Original Message From: Musachy Barroso <[EMAIL PROTECTED]> To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL PROTECTED]> Sen

[S2] How Validators of an Action are Found

2007-05-30 Thread Jon Wilmoth
http://struts.apache.org/2.x/docs/validation.html says: Validation rules can be specified: Per Action class: in a file named ActionName-validation.xml Per Action alias: in a file named ActionName-alias-validation.xml Inheritance hierarchy and interfaces implemented by Action class: XWork searche

Re: [s2] ognl.NoSuchPropertyException with param passing redirect-action

2007-05-16 Thread Jon Wilmoth
It appears to work. I'm just leary of having stacktraces in my log file ;) If turning devmode off will eliminate it I'll try that. - Original Message From: Dave Newton <[EMAIL PROTECTED]> To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL PROTECTED]> Sent: Wed

[s2] ognl.NoSuchPropertyException with param passing redirect-action

2007-05-16 Thread Jon Wilmoth
I'm getting the following stacktrace using 2.0.7 while trying to pass action values during an action redirect result (action config below) and I'm wondering if this is a bug with the test build I'm using or if this is user error (probably the later). I followed the http://www.mail-archive.com/

nightly build dist location empty

2007-05-16 Thread Jon Wilmoth
I'm interested in some of the bug fixes going into 2.1.x (particularly around conversion errors w/ the datetimepicker tag). http://struts.apache.org/dev/builds.html says there's a nightly build of the development tree, but when I looked on http://people.apache.org/builds/struts/nightlies/ all

Re: [s2] datetimepicker - how to preserve original value

2007-05-15 Thread Jon Wilmoth
e thing happens. - Original Message From: Musachy Barroso <[EMAIL PROTECTED]> To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL PROTECTED]> Sent: Tuesday, May 15, 2007 11:56:22 AM Subject: Re: [s2] datetimepicker - how to preserve original value This problem is related to this: https

[s2] datetimepicker - how to preserve original value

2007-05-15 Thread Jon Wilmoth
I'm using 2.0.7 and am getting errors when the user inputs an invalid date format. In addition to the stacktrace below, the field's value displayed to the user becomes "NaN/NaN/0NaN". Is this an oversite in the new tag that doesn't check to see if a field error exist before attempting to apply

S2 validation i18n message params?

2007-05-14 Thread Jon Wilmoth
The message element in http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd allows for a key to be specified, but how is one supposed to provide i18n parameters with Struts2 (e.g. actual max length of a field)? - To unsu

[S2] datetimepicker fields can't be referenced/updated by ID?

2007-04-11 Thread Jon Wilmoth
I'm using Struts 2.0.7 & AjaxTags 1.2-beta3 and I've come to the painful realization that AjaxTags no longer is able to update Struts2 datetimepicker fields. The new S2 date fields use a div (example html below) instead of an html form input tag. The issue is that the "handler: function(reques

Re: using 1.2.4 and s2 together

2007-01-02 Thread Jon Wilmoth
I'm using 1.2.9 w/ 2.0.1 beta successfully. You may also want to check out http://struts.apache.org/2.x/docs/migration-strategies.html - Original Message From: "Asthana, Rahul" <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Tuesday, January 2, 2007 10:06:46 AM Subject: using 1.2.4

Re: S2 - Proper way interceptors to interact w/Session

2006-12-18 Thread Jon Wilmoth
changed my interceptors to use the http session to exchange data between themselves dependency injection. - Original Message From: Don Brown <[EMAIL PROTECTED]> To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL PROTECTED]> Sent: Monday, December 18, 2006 11:46:36 AM Subject: Re: S2 - P

S2 - Interceptors & HTTP Response

2006-12-18 Thread Jon Wilmoth
Are there any rules the interceptors should be aware of when dealing with the HTTP response? I ask because I'm trying to save a cookie to the user's browser via an interceptor and although I'm adding the cookie (with a MaxAge attribute value = one year) to the response via ServletActionContext

S2 - Proper way interceptors to interact w/Session

2006-12-18 Thread Jon Wilmoth
I'm working on a custom S2 Interceptor and I'm not sure what the best way to interact with the session and/or other Interceptors for that matter is. First the session. I read http://struts.apache.org/2.x/docs/how-do-we-get-access-to-the-session.html and I tried applying the concept of using a

Re: Struts2 Storing/Retrieving View objects

2006-12-13 Thread Jon Wilmoth
n Brown <[EMAIL PROTECTED]> To: Struts Users Mailing List ; Jon Wilmoth <[EMAIL PROTECTED]> Sent: Wednesday, December 13, 2006 12:09:05 PM Subject: Re: Struts2 Storing/Retrieving View objects Just provide getter methods on your action. Then, you can retrieve the data in your jsp thr

Struts2 Storing/Retrieving View objects

2006-12-13 Thread Jon Wilmoth
I'm preparing to make the switch from Struts 1.x to Struts 2 for new development and had a few questions related to how objects used to render data in a JSP page should be stored/retrieved for a desired http namespace. One of the design tenants I try to employ in my current S1 webapp is minimizi

Re: Validator without Struts

2006-11-29 Thread Jon Wilmoth
You can try http://jakarta.apache.org/commons/validator/ which is commonly used w/Struts 1. - Original Message From: Jim Reynolds <[EMAIL PROTECTED]> To: user@struts.apache.org Sent: Wednesday, November 29, 2006 2:21:49 PM Subject: Validator without Struts Hello, I have the need to d

Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-26 Thread Jon Wilmoth
Thanks for the respone. I'm using the xwork-2.0-beta-1.jar that was included in the struts 2.0.1 beta distribution. Unfortunately, that jar file doesn't contain the org.apache.struts2.views.jsp.TagUtils class. For that, I've included the struts2-all-2.0.1.jar file in my webapp. Has anyone su

Re: NPE in TagUtils.getStack after upgrading to 2.0.1

2006-11-26 Thread Jon Wilmoth
I noticed there was an earlier posting on the dev list regarding this (10/10/06). I downloaded the beta version of 2.0.1 from the struts website and I'm getting the same NPE. Is there a work around? I'm trying to ease my transition into S2, and would like to use the datePicker tag w/Struts 1.3