[Flow] Validation > Exception instead of going back to newAction

Axel Wüstemann awu at qbus.de
Thu Dec 5 12:45:34 CET 2013


Am 05.12.2013 12:01, schrieb Bastian Waidelich:
> Axel Wüstemann wrote:
>
> Hi Axel,
>
>> I put the createAction and the newAction to pastebin
>> http://pastebin.com/0M5e1Qr8
>
> Ok, this is what happens (I believe):
> You submit the form and the $depositInspection is passed to the
> createAction. But it can't be validated because the "date" property is
> not set yet (read "failed to pass validation with 1 error(s): date: This
> property is required.").

This seems to be the case - how this could be solved?

> So the errorAction()[1] is invoked and for some reason fails to forward
> you to the newAction. A snippet from the fluid form might help us
> detecting the issue.. Or you debug the error action.

I will try do digger into the code, hoperfully I will find a solution. 
The customer wanted to hava this splitted date / time fields.

the new form
http://pastebin.com/5z1Drdvd

>
> Out of curiosity: why do your repositories have *AsOptions() methods?
> And what does __buildDateTime() do?

- asOptions() delivers arrays to fill selectBoxes
- __buildDateTime() makes a dateTime from separated date an time fields 
- this is what the customer wanted. I other kind of inspections I have 
year and month an need to build a date from it
>
> [1]
> https://git.typo3.org/Packages/TYPO3.Flow.git/blob/HEAD:/Classes/TYPO3/Flow/Mvc/Controller/ActionController.php#l519
>
>


-- 
Qbus Werbeagentur GmbH

18055 Rostock, Heiligengeisthof 5
Tel:   0381 4 61 39 - 10 | Fax: - 22
21029 Hamburg, Chrysanderstraße 69A
Tel:   040 60 94 59 75
Mobil: 0179 46 455 46

www.xing.com/profile/Axel_Wuestemann
www.issuu.com/QbusAgentur/docs/qbus-referenzen?mode=embed

Handelsregister: HRB 11218 beim Amtsgericht Rostock Sitz der
Gesellschaft: Hansestadt Rostock
Geschäftsführer: Dipl.-Ing. Axel Wüstemann

www.qbus.de | www.qbus.de/qblog
www.facebook.com/QbusAgentur


More information about the Flow mailing list