s.autocompleter with JSON Plugin

2007-03-17 Thread Rohit Dewan
I have the following in the body: @s.url id=foos value=foosList.action / @s.form theme=ajax action=addTest method=add @s.autocompleterModel theme=ajax href=%{foos} name=foo / @s.submit value=OK action=addTest method=add/ @s.submit value=Cancel

Re: s.autocompleter with JSON Plugin

2007-03-17 Thread Dave Newton
--- Rohit Dewan [EMAIL PROTECTED] wrote: However, the autocompleter is blank after load. Has anyone had success using the JSON plugin with the autocompleter? I'm getting a JavaScript error: [Exception... 'Error: TypeError: this.data[x][0].toLowerCase is not a function' when calling method:

Re: s.autocompleter with JSON Plugin

2007-03-17 Thread Musachy Barroso
This was an issue in 2.0.6 and it is fixed on 2.0.7: https://issues.apache.org/struts/browse/WW-1659 As Dave mentioned in 2.0.6 the autocompleter was expecting an array of arrays. Now the autocompleter will use the following logic to determine how to load the data: 1. If the response is an

Re: [S2] Validating two dates

2007-03-17 Thread Binil Thomas
Hi all, I got it working using the fieldexpression validator. field-validator type=fieldexpression param name=expression firstDate.before(secondDate) || firstDate.equals(secondDate) /param messageSecond date has to be on or later than first date/message /field-validator

[s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-17 Thread Pierre Thibaudeau
I just upgraded to Struts 1.3.8. I was experimenting with adding set-property property=actionId value=myAction/ in my action mappings. Unfortunately, as soon as I add one of these to my struts-config.xml, starting the servlet gives me the exception quoted below. The exception goes away when I

Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-17 Thread Paul Benedict
From what version did you upgrade from? Pierre Thibaudeau wrote: I just upgraded to Struts 1.3.8. I was experimenting with adding set-property property=actionId value=myAction/ in my action mappings. Unfortunately, as soon as I add one of these to my struts-config.xml, starting the servlet

Re: [s1] Struts 1.3.8: property actionId causes load() Exception

2007-03-17 Thread Pierre Thibaudeau
I upgraded from 1.3.5. (Before this upgrade, I had never attempted to use set-property in my action mappings.) 2007/3/18, Paul Benedict [EMAIL PROTECTED]: From what version did you upgrade from? Pierre Thibaudeau wrote: I just upgraded to Struts 1.3.8. I was experimenting with adding