You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by cpnguyen <cp...@ucsd.edu> on 2007/10/04 00:11:36 UTC

BindingException after Tapestry 4.1.3 Upgrade

I have this weird error that I have found a work around for, but I just
wanted to report it to the group.

In Tapestry 4.0, I had a select box of OptionModels mapping integer values
to String labels which worked fine.

After upgrading to Tapestry 4.1.3, I receive the following error:
Exception: Unable to update OGNL expression '<parsed OGNL expression>' of
$StudyEnrollmentForm_26@3c1[StudyEnrollmentForm] 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.

Has anyone else experience this issue?  Is there a workaround for this?
-- 
View this message in context: http://www.nabble.com/BindingException-after-Tapestry-4.1.3-Upgrade-tf4564703.html#a13028988
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org