Re: Problem with collection in select

2009-09-02 Thread Mrakomor
Your advice works! I used a javascript workaround in the meantime, however your answer will spare me a lot of time next time. -- View this message in context: http://www.nabble.com/Problem-with-collection-in-select-tp25256112p25259300.html Sent from the Struts - User mailing list archive at Nab

Re: Problem with collection in select

2009-09-02 Thread Dave Newton
Mrakomor wrote: Hello folks, I wanted to use a Struts 2 select in the form. I wanted to populate the list using filtered collection. If I use it without the filter, like this: name="depzad.dzRequest.contractList[%{#status.index}].selectedContract" listKey="contractNr" listValue="contractNr

Re: Problem with collection in select

2009-09-02 Thread Wes Wannemacher
My guess is that your single-char string is evaluated as a single char... http://struts.apache.org/2.x/docs/why-wont-the-if-tag-evaluate-a-one-char-string.html Try flipping the quotes or escaping double-quotes in the expression, then OGNL will probably figure it out. -Wes On Wed, Sep 2, 2009 at