Re: [Struts2] problem with tag

2007-12-15 Thread Raghuveer Rawat
Thanks Dave, This issue has been resolved using Preparable/prepare() On Dec 15, 2007 8:18 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > You don't say how you initially populate the select box. In any case, > unless > you're populating it via Preparable/prepare() or some other automatic way > or >

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Dale Newfield
Dale Newfield wrote: Martin Gainty wrote: this is the applicable code in my copy of optiontransferselect.ftl Thanks for making me look at this--it led me straight to my problem! So we know there is a problem with the freemarker libraries, and that it's either in ?exists, or stack.findString(

Re: What's up with validationErrors?

2007-12-15 Thread Dave Newton
There's a StrutsUtils.getValidationErrors JavaScript method that's used for VM/FTL templates somewhere in like static/utils.js, but... I didn't know you could access it like that, but I'd check that out first--it's one of the only places "validationErrors" shows up anywhere :/ Interestink. d. --

Re: [Struts2] problem with tag

2007-12-15 Thread Dave Newton
You don't say how you initially populate the select box. In any case, unless you're populating it via Preparable/prepare() or some other automatic way or if it's not in application or session scope it won't get automatically re-populated when you re-visit the page. d. --- Raghuveer Rawat <[EMAIL

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Dale Newfield
Martin Gainty wrote: this is the applicable code in my copy of optiontransferselect.ftl <#if parameters.doubleListValue?exists><#t/> <#assign doubleItemValue = stack.findString(parameters.doubleListValue) /><#t/> <#else><#t/> <#assign doubleItemValue = stac

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Martin Gainty
Hi Dale this is the applicable code in my copy of optiontransferselect.ftl <#if parameters.doubleListValue?exists><#t/> <#assign doubleItemValue = stack.findString(parameters.doubleListValue) /><#t/> <#else><#t/> <#assign doubleItemValue = stack.findString('

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Dale Newfield
Martin Gainty wrote: second time Ive seen error 'cannot locate findString' It's not that it can't find findString, it's that the string being found is not there, so findString() returns an undefined value that cannot then be assigned to a variable. Error on line 264, column 13 in template/s

Re: What's up with validationErrors?

2007-12-15 Thread Martin Gainty
Hi Gary- what happens when you try it thru JS ? var errorsObject = StrutsUtils.getValidationErrors(text); ? M-- - Original Message - From: "Gary Affonso" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, December 15, 2007 1:00 PM Subject: What's up with validationE

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Martin Gainty
Hi Folks- second time Ive seen error 'cannot locate findString' https://issues.apache.org/struts/browse/WW-2373 Can we some info from dev group on the location of stack.findString(parameters.doubleListValue) ? Thanks, M-- - Original Message - From: "Dale Newfield" <[EMAIL PROTECTED]> To:

Re: [struts][2.0.11] optiontransferselect limit?

2007-12-15 Thread Dale Newfield
Dale Newfield wrote: I've got a page that uses s:optiontransferselect, and I'm pretty happy with it, but I'm now trying to scale up this app, and just over 1000 entries and the freemarker template bombs out: I've got a different solution in mind that should work when this gets large. freemark

Re: 2.0.11: s:autocompleter

2007-12-15 Thread Rodrigo Pereira
I got it as well. Changing the "name" parameter to "keyName" works. Thanks, Rodrigo Pereira On Dec 15, 2007 3:03 PM, Rodrigo Pereira <[EMAIL PROTECTED]> wrote: > I got it. :) > All magic is behind freemaker. > > dropdown.jsp: > > <%@ page contentType="text/html;charset=UTF-8" language="java" %> >

What's up with validationErrors?

2007-12-15 Thread Gary Affonso
I made the mistake of using the "validationErrors" map in my Freemarker page... ${(validationErrors["postalAddress.firstName"]) !} I did this reflexively without thinking and it worked. For awhile. Then it broke. In very strange ways. The problem I'm having with it is that if I add a fi

Re: 2.0.11: s:autocompleter

2007-12-15 Thread Rodrigo Pereira
I got it. :) All magic is behind freemaker. dropdown.jsp: <%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ taglib prefix="s" uri="/struts-tags" %> Dropdown - Example struts.xml /dropdown.jsp

Re: Struts 2 + Sitemesh decorator mapping

2007-12-15 Thread Martin Gainty
Filipe- /* so unmapped index.jsp displays correctly (index.jsp is located in webapps/webAppName) panel.jsp and printable.jsp do not display as they are mapped constructs but using the defaultdir works /webapps/webAppName/decorators/panel.jsp works /webapps/webAppN

Re: [struts] Struts 2 + Sitemesh decorator mapping

2007-12-15 Thread Filipe David Manana
I fixed the problem: the pattern /*/lsf/* worked :) Thank you for replying. On Dec 14, 2007 9:23 PM, Dale Newfield <[EMAIL PROTECTED]> wrote: > Filipe David Manana wrote: > > Anyone using Struts 2 with multiple Sitemesh decorators? > > Yep. > > You mention using more than one decorator, but t

Re: 2.0.11: s:autocompleter

2007-12-15 Thread Rodrigo Pereira
Hi, does anybody have an example of s:autocompleter getting list value from an action? I have been trying to update a list based on the selection of another one, but no success. I'd like the dropdown lists not hardcoded as showcase example does. Thanks, Rodrigo Pereira On Dec 11, 2007 4:50 PM, R

Image Upload and Dojo

2007-12-15 Thread jogep
Hi, i try to submit a multipart/form-data with dojo, but it don't invoke any action. When I try it without dojo it works fine. My Code: <%@ taglib prefix="sx" uri="/struts-dojo-tags" %> . . . . . . Struts Version is 2.1.0 Does anyone have an Idea to solve my problem? -- View this messa