Hello,

It seems that if I create a BeanModel using 

    BeanModel toReturn = _beanModelSrc.create( MyObject.class, false,
      _cmpntRsrcs );

Things work as they should - I can then use the properties in the
BeanModel, as I expect to.

But, if I first clear all properties from the BeanModel, and then try to
add them back one-by-one, the BeanModel doesn't properly associate the
"pstlCode" property with the getter/setter in MyObject.class:

    BeanModel toReturn = _beanModelSrc.create( MyObject.class, false,
      _cmpntRsrcs );

    toReturn.exclude( (String[])toReturn.getPropertyNames().toArray(
      new String[0] ) );

    toReturn.add( "pstlCode" );

Here is the error I receive:

Unable to locate a block to edit property 'pstlCode' (with data type
'null') of object [EMAIL PROTECTED]: There is no defined way to
edit data of type 'null'. Make a contribution to the BeanBlockSource
service for this type.

Any ideas?  I'm on T5.0.13.

Thanks,
Andy


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

Reply via email to