Yes, I agree: we need to auto-install standard property editors based on metadata (e.g property type) for a given form property.  Currently, we are delegating to BeanWrapper which auto-converts on sets but does not convert back to String on gets.  Hence you get the exception below without a form model type converter installed.



From: [] On Behalf Of Linwei Cheng
Sent: Wednesday, October 27, 2004 7:41 PM
Subject: Re: [Springframework-rcp-dev] typeconverter problem


hi peter,


I run into the same kind of problem. I have a "int" field in the form object, and while loading the form error reported:

2004-10-27 10:33:59,141 ERROR org.springframework.richclient.application.config.ApplicationAdvisor - Class cast exception converting value to string - did you install a type converter?

I am wondering that for an "int" field, why the default PropertyEditor can not recognize it? For standard java bean, there are default property editors for the general types such as int, long, Date, etc. Could our rcp property registry mechanism delegates these general types to the standard java bean property editors?




----- Original Message -----



Sent: Wednesday, October 27, 2004 5:02 AM

Subject: Re: [Springframework-rcp-dev] typeconverter problem


You can find some preliminary user documentation on the wiki:

there are already topics on validation and typeconverters (see Forms Support)

Hope this helps,

Sent by:

27/10/2004 13:47
Please respond to springframework-rcp-dev

        Subject:        [Springframework-rcp-dev] typeconverter problem


I have some problems using formmodels. I get the error message "did you install a typeconverter". The question is how do I install a typeconverter???

Another question: How is validation of form input done in Spring-rcp?

BTW is there documentation avialable about this form framework?


This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
Springframework-rcp-dev mailing list


This message may contain confidential information intended solely for the use of the named addressee. If you are not the intended recipient, you should not read, use, disclose or reproduce the content of this message. If you have received this message by mistake, please notify the sender immediately. Any views or opinions presented in this message are solely those of the author and do not necessarily represent those of AXA Belgium, AXA Bank Belgium, AXA Tech Belgium GIE - ESV or any other entity of the AXA Group, unless otherwise stated by the sender and duly authorized by the said companies.