[TYPO3-mvc] Validating nested objects on create

Astrid Haubold astridhaubold at gmx.net
Wed Nov 17 15:30:53 CET 2010


Am 14.11.10 10:12, schrieb Steffen Ritter:
> Am 13.11.2010 16:04, schrieb Astrid Haubold:
>> Am 13.11.10 13:42, schrieb Steffen Ritter:
>>> Am 13.11.2010 10:28, schrieb Franz Koch:
>>>> Hey Astrid,
>>>>
>>>>> I am working on a first project with extbase and I'm stuck on the
>>>>> topic
>>>>> of validating nested Objects. I need to validate 1:1 related
>>>>> objects as
>>>>> well as 1:n related objects (multiple childobjects in one form). How
>>>>> did
>>>>> you solve it? What do you think would be the best way to deal with
>>>>> this
>>>>> until the feature is implemented?
>>>>
>>>> I'd say custom validators combined with custom viewHelpers to display
>>>> the nested errors (see my comments on the ticket). With those I managed
>>>> to validate 1:1 relations for now, but 1:n or n:m relations
>>>> (objectStorages) should also work, although they are more tricky to
>>>> display correctly (bound to the related object while it doesn't have a
>>>> identifier yet).
>>>>
>>> I did an automatic validation vor for object storages (and therore for
>>> such relations).
>>> I presented it (with some other fixes) at T3CON, there seemed to be
>>> interest, but I did not here anything about this from Jochen or
>>> Sebastian anymore...
>>>
>>> regards
>>>
>>> Steffen
>> Hi Steffen, sorry if perhaps I'm being stupid: can I find your solution
>> anywhere?
>> Thank you!
>> Astrid
>
> No it is not only yet... Find according patches attached.

Hi again,
thank you for the answers! I decided to go for the custom 
Validator/custom ViewHelper version Franz suggested because the Patch 
doesn't do exactly what is needed for the project. But thank you for 
that anyway!
regards,
Astrid


More information about the TYPO3-project-typo3v4mvc mailing list