Hello again, I have this weird error that I have found a work around for, but I just wanted to report it to the group.
In Appfuse 2.0 M5 (Tapestry 4.0), I had a select box of OptionModels mapping integer values to String labels which worked fine. After upgrading to Appfuse 2.0 (with Tapestry 4.1.3), I receive the following error: Exception: Unable to update OGNL expression '<parsed OGNL expression>' of [EMAIL PROTECTED] to 3: Unable to convert type java.lang.String of 3 to type of edu.ucsd.lig.model.ResearchStudy org.apache.tapestry.BindingException My StudyEnrollmentForm contains a ResearchStudy object which is referenced by an integer id. In the previous version, I was able to handle this in the 'save' function of StudyEnrollmentForm.java (where I would parse the integer and then perform a lookup for the ResearchStudy object). In the current version, I am getting the exception BEFORE the 'save' function is called. The current work around is to write an empty setResearchStudy( String str) in my StudyEnrollment class. This allows the automatic binding to complete and my form 'save' function to perform the parsing. I tried comparing this with Appfuse UserForm's handling of country. It is a different scenario since the OptionModels contain both String labels and String values, thus the parsing exception does not occur. Has anyone else experience this issue? Is there something in the configuration of Appfuse that I may change to prevent this? -- View this message in context: http://www.nabble.com/BindingException-after-Appfuse-2.0-Upgrade-%28Tapestry-4.1.3%29-tf4551033s2369.html#a12987693 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
