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.

 

Keith


From: springframework-rcp-dev-admin@lists.sourceforge.net [mailto:springframework-rcp-dev-admin@lists.sourceforge.net] On Behalf Of Linwei Cheng
Sent: Wednesday, October 27, 2004 7:41 PM
To: springframework-rcp-dev@lists.sourceforge.net
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?

regards,

linwei

 

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

From: peter.debruycker@axa.be

To: springframework-rcp-dev@lists.sourceforge.net

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: http://opensource.atlassian.com/confluence/spring/display/RCP/User+Documentation

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

Hope this helps,

Peter



 

frederik.santens@pandora.be
Sent by: springframework-rcp-dev-admin@lists.sourceforge.net

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

       
        To:        springframework-rcp-dev@lists.sourceforge.net
        cc:        
        Subject:        [Springframework-rcp-dev] typeconverter problem



Hi,

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?

Thx
Frederik




-------------------------------------------------------
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.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Springframework-rcp-dev mailing list
Springframework-rcp-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/springframework-rcp-dev



-----Disclaimer-----

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.

---------------------