Hallo zusammen,

ich hänge gerade arg an der Validierung eines simplen Formulars fest.
Grundlegend ist die Extension noch fast blank und ich sehe einfach keinen Grund 
warum die Validierung nicht funktioniert.
Ich habe heute den halben Nachmittag alles Mögliche durchprobiert und versucht, 
es hat alles nichts beeinflusst, nichtmal eine Exception.
Cache wurde immer brav geleert ;)

Also folgendes, das Model, bzw. dessen Properties haben, wie man unten sieht 
passende Annotations für die Validierung.
Es läuft soweit alles gut, bis auf dass einfach nicht Validiert wird. Egal, was 
ich tue. Keine Annotation-Exception, keine Validierung, 
$this->validatorResolver beinhaltet weitestgehend nur leere Arrays oder Objekte 
als Properties.
Das Model wird jedoch immer schön gefüllt und übergeben.

Kann mir da eventuell jemand einen Denkanstoß geben, was da nicht stimmen 
könnte?
Das treibt mich heute schon seit Mittag in den Wahnsinn :)

Grüße,
Niklas

class LogInForm extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {

        /**
         * username
         *
         * @var string
        * @validate StringLength(minimum = 5, maximum = 80)
         */
        protected $username = '';

        /**
         * password
         *
         * @var string
        * @validate NotEmpty, StringLength(minimum = 5, maximum = 80)
         */
        protected $password = '';

Aufrufende Controller-Action:
       /*
         * action showForm
         *
         * @param LogInForm $newLogInForm
         * @ignorevalidation $newLogInForm
         * @return void
         */
        public function showFormAction(LogInForm $newLogInForm = NULL) {
                $this->view->assign('newLogInForm', $newLogInForm);
        }
Controller-Action nach dem Absenden:
       /**
         * action process
         *
         * @param LogInForm $newLogInForm
         * @return void
         */
        public function processAction(LogInForm $newLogInForm) {
                $this->addFlashMessage('Test', '', 
\TYPO3\CMS\Core\Messaging\AbstractMessage::ERROR);
       }

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

Antwort per Email an