User a ValidField instead of a TextField. TextFields only work with
string data types, while ValidFields use the validator to do data type
conversion between the displayed string and the appropriate internal data
type.
--- Pat
> -----Original Message-----
> From: gcormier [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, December 14, 2005 10:40 AM
> To: [email protected]
> Subject: TextField component issue.
>
> Hi, I have a form to edit a department item.
>
> Basically, you'll get a list of departments, and you can Add a new
> department, or edit/delete a department that you select with a radio
> button.
>
> Adding a new department works fine - the page java sets the
> "selectedDepartment" parameter to a new Department() object, so all the
> default values are there.
>
> Editing a department is not working. I'm getting a very strange error for
> 1 field. If I remove this field the form works great.
>
> Where I have
>
> /////
> Department ID :
> /////
>
> org.apache.tapestry.BindingException: Parameter value (120) is an
> instance of java.lang.Long, which does not inherit from java.lang.String.
>
>
> I'm not sure what I can do about this. selectedDepartment is the Object
> I'm working with, and editing this key which happens to be a Long is
> something I need to be able to do.
>
> Is there a way around this, or am I doing something wrong?
>
> Thanks,
> Greg
>
>
> -------------------- m2f --------------------
>
> Sent from www.TapestryForums.com
>
> Read this topic online here: <<topic_link>>
>
> http://www.tapestryforums.com/viewtopic.php?p=11974#11974
>
> -------------------- m2f --------------------
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]