struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig McClanahan <>
Subject Re: [shale] class type of #{} contents
Date Mon, 26 Sep 2005 22:48:22 GMT
On 9/26/05, Sean Schofield <> wrote:
> Craig,
> I am using a explicity defined converter and everything is converting
> fine through the Process Validations phase. Its during Update Model
> phase that things go funky. Converters don't matter at this point do
> they?

No ... by that time, the converted value will have been stored with
setLocalValue(), which should be of the appropriate data type to be stored
during Update Model Values.

I think there might be a bug in MyFaces
> ( When I examined
> the ValueBindingImpl using my debugger it showed that it was
> specifically trying to coerce the value to class associated with
> java.lang.String.

Hmm ... what does the RI do?

It looks like PropertyResolverImpl in MyFaces is checking if
> StatusImpl is an instanceof Map when it should be checking the result
> of StatusImpl.getData(). If it were checking the right object then
> we'd be ok (because the class that it tries to coerce to is the
> object's class.)

Yah, the base object should be of type StatusImpl for the *first* property
resolution ( but not for the second (data['foo']).



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message