[FLOW3-general] Validation of Arrays in an Action

David Sporer david.sporer at gmail.com
Sat Sep 22 15:02:16 CEST 2012


Hi,

 

another question:

I'm passing three arrays to an action and I'm validating these which works
fine.

But I'm struggling at the point where the validation of one array fails.
Then I want to the new form to contain the already valid values of the other
arrays.

I saw that it doesn't work automatically.

 

e.g.

 

newAction(){

}

 

/**

*@FLOW3\Validate(argumentName="array1", type"MyArrayValidator")

*@FLOW3\Validate(argumentName="array2", type"MyArrayValidator")

*@FLOW3\Validate(argumentName="array3", type"MyArrayValidator")

*/

createAction($array1, $array2, $array3){

 

}

 

And the Fluid Form something like this:

<f:form.textfield name="array1[key1]" value="">

 

Etc.

 

What do I need to write into the value-Parameter to get the new-Form to show
the already valid values of other arrays?

I've tried value="{array1.key1}" and I wrote a own view helper but I noticed
that the arrays that were valid are not even there.

 

Can you help me out?


Best regards

David

 



More information about the FLOW3-general mailing list