--- Maxx <[EMAIL PROTECTED]> wrote:
>  - first one is when iterating directly on a "testList"
> (List<String>): nothing get's generated; it looks like the iterator
> does not iterate!

Something, then, is completely wrong with your setup or configuration.

(Looking back at your original code...)

Why are you storing "testList" in your session?

> public void setTestList(List<String> list) {
>     session.put(list, "list");
> }

Why are you storing the string "list" under a key of a List<String>?

> <s:iterator value="testList" status="stat">
> [...]
> public List<String> getTestList() {
>     return (List<String>) session.get("list");
> }

Why are you attempting to retrieve something from session here? Why wouldn't
you just return the list? You don't have anything stored under "list" anyway,
because you swapped the order of your parameters when you tried putting it
into the session map.

I didn't see any code like that in any of the S2 documentation regarding type
conversion; if you can point it out I'll be happy to fix it, because it's
clearly very, very wrong, in several ways.

>  - second one is when iterating on a "testBean.testList", the
> List<String> being UNDER a bean; the iterator works, but when trying
> to use a <s:textField name="testBean.testList(#theStatus.index)" />
> (which GETS generated) , values are not set properly after form
> submission!

Without seeing the action it's being submitted to I have absolutely zero way
of telling you anything. If it's as broken as the above action I'd start
looking at your getter and setter code first.

Dave



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to