Ich habe jetzt noch etwas rumprobiert, aber ich bekomme Werte aus dem Formular 
nicht an den Controller ├╝bergeben.
Weder mit $_POST["tx_survey_surveylisting"] noch mit  $argumente = 
$this->request->getArguments();. Das Array ist immer leer.

Aktueller Controller:

/**
         * @param \Schmidtch\Survey\Domain\Model\Survey $survey
         * @param \Schmidtch\Survey\Domain\Model\Appiontment $appiontment
         * @param \Schmidtch\Survey\Domain\Model\TimeOfDay $timeofday
         */
        public function addAction(
                \Schmidtch\Survey\Domain\Model\Survey $survey)
        {       

                $wertArray = $_POST["tx_survey_surveylisting"];
                $timeofdays = $wertArray["timeofdays"];


                foreach ($timeofdays["appiontmentId"] as $key => $appiontment) 
{                   

                        $this->timeofdayRepository->add(new 
\Schmidtch\Survey\Domain\Model\TimeOfDay($appiontment,$timeofdays['timevalue1'][$key]));
              


                }
                $persistenceManager = 
$this->objectManager->get('TYPO3\\CMS\\Extbase\\Persistence\\Generic\\PersistenceManager');
                $persistenceManager->persistAll();

                $this->redirect('show', 'Survey', NULL, array('survey' => 
$survey));
        }


erzeugter HTML-Code

<form role="form" method="post" name="timeofday" 
action="index.php?id=62&tx_survey_surveylisting%5Bsurvey%5D=39&tx_survey_surveylisting%5Bappiontment%5D=&tx_survey_surveylisting%5Baction%5D=add&tx_survey_surveylisting%5Bcontroller%5D=Timeofday&cHash=5bb1da18d675a18110c2aab8da0b3f50">
<div>
<input type="hidden" name="tx_survey_surveylisting[__referrer][@extension]" 
value="Survey" />
<input type="hidden" name="tx_survey_surveylisting[__referrer][@vendor]" 
value="Schmidtch" />
<input type="hidden" name="tx_survey_surveylisting[__referrer][@controller]" 
value="Timeofday" />
<input type="hidden" name="tx_survey_surveylisting[__referrer][@action]" 
value="addFormTime" />
<input type="hidden" name="tx_survey_surveylisting[__referrer][arguments]" 
value="YTozOntzOjY6InN1cnZleSI7czoyOiIzOSI7czo2OiJhY3Rpb24iO3M6MTE6ImFkZEZvcm1UaW1lIjtzOjEwOiJjb250cm9sbGVyIjtzOjk6IlRpbWVvZmRheSI7fQ==34f5438732efaab1e2d0207be261f6bbba0260c6"
 />
<input type="hidden" name="tx_survey_surveylisting[__referrer][@request]" 
value="a:4:{s:10:"@extension";s:6:"Survey";s:11:"@controller";s:9:"Timeofday";s:7:"@action";s:11:"addFormTime";s:7:"@vendor";s:9:"Schmidtch";}5f3f3d72291afe52f3a3b4104f05fda6ef060316"
 />
<input type="hidden" name="tx_survey_surveylisting[__trustedProperties]" 
value="a:1:{s:10:"timeofdays";a:4:{s:10:"timevalue1";a:3:{i:0;i:1;i:1;i:1;i:2;i:1;}s:10:"timevalue2";a:3:{i:0;i:1;i:1;i:1;i:2;i:1;}s:10:"timevalue3";a:3:{i:0;i:1;i:1;i:1;i:2;i:1;}s:13:"appiontmentID";a:3:{i:0;i:1;i:1;i:1;i:2;i:1;}}}f221468d4cef250545cb23270b94a46163a625bc"
 />
</div>

                
                
                        <li class="list-group-item">
                                <label>2016-10-20</label>
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue1][]" value="00:00" />
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue2][]" value="00:00" />
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue3][]" value="00:00" />
                                <input class="form-control" type="hidden" 
name="tx_survey_surveylisting[timeofdays][appiontmentID][]" value="9" />
                        </li>
                        
                
                        <li class="list-group-item">
                                <label>2016-11-15</label>
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue1][]" value="00:00" />
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue2][]" value="00:00" />
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue3][]" value="00:00" />
                                <input class="form-control" type="hidden" 
name="tx_survey_surveylisting[timeofdays][appiontmentID][]" value="10" />
                        </li>
                        
                
                        <li class="list-group-item">
                                <label>2016-11-30</label>
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue1][]" value="00:00" />
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue2][]" value="00:00" />
                                <input class="form-control" type="time" 
name="tx_survey_surveylisting[timeofdays][timevalue3][]" value="00:00" />
                                <input class="form-control" type="hidden" 
name="tx_survey_surveylisting[timeofdays][appiontmentID][]" value="11" />
                        </li>
                        
                

                <input class="btn btn-primary" type="submit" value="Umfrage 
erstellen" />
                
        </form>

_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an