Re: RE : [s2] Collection, array and tag.

2007-06-06 Thread Dave Newton
--- Zoran Avtarovski <[EMAIL PROTECTED]> wrote: > For example on a search form we would add a not > applicable object to the start of our collection. > > No Image > label="fileName" > value="fileName"/> > > > I'd love to be able to do something similar in S2, d.

Re: RE : [s2] Collection, array and tag.

2007-06-06 Thread Zoran Avtarovski
I can give you a simple use case we have which annoys the crap out of me: In S1 we used our business layer to get a collection of objects. Depending on how that collection was used we might need to add an object to it. For example on a search form we would add a not applicable object to the start

Re: RE : [s2] Collection, array and tag.

2007-06-06 Thread Musachy Barroso
: Re: [s2] Collection, array and tag. I logged this ticket for it: https://issues.apache.org/struts/browse/WW-1971 musachy On 6/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > Looking at the code, only String[] is transformed into parameters. For > anything else, its toString()

RE : [s2] Collection, array and tag.

2007-06-06 Thread Ezequiel Puig
ruts Users Mailing List Objet : Re: [s2] Collection, array and tag. I logged this ticket for it: https://issues.apache.org/struts/browse/WW-1971 musachy On 6/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > Looking at the code, only String[] is transformed into parameters. Fo

Re: [s2] Collection, array and tag.

2007-06-06 Thread Musachy Barroso
I logged this ticket for it: https://issues.apache.org/struts/browse/WW-1971 musachy On 6/6/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: Looking at the code, only String[] is transformed into parameters. For anything else, its toString() will be called and used as the value of the parameter

Re: [s2] Collection, array and tag.

2007-06-06 Thread Musachy Barroso
Looking at the code, only String[] is transformed into parameters. For anything else, its toString() will be called and used as the value of the parameter. I think Lists and Sets should be processed as String[] are (calling the toString() on each element). Maps should be converted to parameters

[s2] Collection, array and tag.

2007-06-06 Thread Ezequiel Puig
Hi, I have been using struts 2 since a while and there is some things about the tag i don't understant. Let's say we have an array in our action (with the getters and setters): private String[] myArray; public String[] getMyArray() { return myArray; } pu