"Quinton McCombs" <[EMAIL PROTECTED]> writes:

This is IMHO a bug. If the HTTP request contains a 

LastName=

value, it should clear the relating property. Please file
a bug report. 

        Regards
                Henning



>------_=_NextPart_001_01C29BBF.EDE938CC
>Content-Type: text/plain;
>       charset="us-ascii"
>Content-Transfer-Encoding: quoted-printable

>Suppose you have a form with two fields defined on it.  The value of
>those two fields comes from the value of an intake field.  The data in
>the intake field came from the attributes of a mapped object (let's call
>it person). =20
>=20
>Here are the relevant field names and values on the HTML form:
>FirstName=3DJohn
>LastName=3D
>=20
>Let's now say that you change the value of the LastName field to "Smith"
>and you clear the contents of the FirstName field.  You now sumbit the
>form to an action.  The action gets the intake group and sets the value
>of your object with the values from the html form.  You would think that
>the result of person.getFirstName() would be null or an empty string and
>that person.getLastName() would be "Smith".  You are wrong.
>=20
>What really happens is person.getLastName() returns "Smith" and
>person.getFirstName() returns "John".
>=20
>I am hoping that there is a work around to this issue.  I would be
>shocked if no one out there using turbine with intake has not run into
>this issue.  The way it appears to me, I simply can not use an html form
>to edit data from a persistent object and save it back to the database
>if that change is to remove the value from a field.
>=20
>This issue exists with T2.1 and T2.2.

>------_=_NextPart_001_01C29BBF.EDE938CC--

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen       -- Geschaeftsfuehrer
INTERMETA - Gesellschaft fuer Mehrwertdienste mbH     [EMAIL PROTECTED]

Am Schwabachgrund 22  Fon.: 09131 / 50654-0   [EMAIL PROTECTED]
D-91054 Buckenhof     Fax.: 09131 / 50654-20   

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to