Re: Bunch of issues...
Hani Suleiman <[email protected]>
| Newsgroups | gmane.comp.java.open-symphony.webwork |
|---|---|
| Message-ID | <20367132.1145371900151.JavaMail.os-j2ee@opensymphony01.managed.contegix.com> |
Looks like the culprit is in XWorkBasicConverter:
memberType = XWorkConverter.getInstance().getObjectTypeDeterminer().getElementClass(o.getClass(), prop, null);
if (memberType == null) {
memberType = String.class;
}
So from this, I have a couple of questions:
1) Why is defaulting to string a good idea, wouldn't it be better to go into the list and check an element of it if we have no converter, to figure out the type (and with the right generics magic pluggable, so the type is figured out from that)
2) Why is the converter called at all, if I'm just passing refs around?
Interestingly, this ONLY happens if I have the 3 tags:
set
iterator
property
If I remove the middle iterator tag, the property is passed the correct list without any conversion. So it's pretty bizarre that the iterator is not idempotent, and that it modifies context outside of itself sufficiently to break stuff!
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=26282&messageID=51900#51900
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]