Re: Bunch of issues...

Jason Carreira <[email protected]>
Newsgroups gmane.comp.java.open-symphony.webwork
Message-ID <24825772.1145373124779.JavaMail.os-j2ee@opensymphony01.managed.contegix.com>
Hmm... that's odd... what do you do inside your iterator? When it's going into the type converter, what's the stack leading up to that call? Why is it trying to convert?

> Looks like the culprit is in XWorkBasicConverter:
> 
> memberType =
>  XWorkConverter.getInstance().getObjectTypeDeterminer(
> .getElementClass(o.getClass(), prop, null);
> 
>             if (memberType == null) {
>     memberType = String.class;
>         }
> m 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=51912#51912

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.