[FLOW3-general] Form confusion
Andreas Förthner
andreas.foerthner at netlogix.de
Fri Jan 28 10:43:49 CET 2011
Hi Oliver,
I'm not the Fluid specialist but there is an error form viewhelper that
might give you some more details:
<f:form.errors for="newConference">
<div class="error">
<strong>{error.propertyName}</strong>:
<f:for each="{error.errors}"
as="errorDetail">{errorDetail.message}</f:for>
</div>
</f:form.errors>
If you place this code into your form it hopefully gives you a hint which
property fails.
Greets Andi
Am 28.01.11 10:00 schrieb "Oliver Wand" unter <wand at itaw.de>:
>Dear all,
>
>I am currently playing around with FLOW3 for the first time and a lot of
>things already work like charme.
>
>But I set up a form that is causing some confusion due to unclear
>flashMessages.
>
>Calling the form from newAction and the form looks like this:
>
><f:flashMessages class="flashmessages"/>
><f:form action="create" controller="Standard" package="Questions"
>object="{question}" name="question" method="post">
><label for="questioner">Name</label><br />
><f:form.textbox property="questioner" id="questioner" /><br />
><label for="email">E-Mail</label><br />
><f:form.textbox property="email" id="email" /><br />
><label for="question">Question</label><br />
><f:form.textarea property="question" rows="5" cols="40" id="query" /><br
>/>
><f:form.submit value="Submit question"/>
></f:form>
>
>On submit the createAction is called but then remains on the form just
>stating this flash message:
>
>An error occurred while trying to call
>F3\Questions\Controller\StandardController->createAction()
>
>And the createAction looks like this:
>
> /**
> * Create action
> *
> * @param \F3\Questions\Domain\Model\Questions $question
> * @return void
> */
> public function createAction(\F3\Questions\Domain\Model\Questions
>$question)
> {
> $this->questionsRepository->add($question);
> $this->flashMessageContainer->add('You asked a new question!');
> $this->redirect('index');
> }
>
>Clearly I do overlook something but I don't get it... Even more the
>flash message to me is pretty unclear just giving a rather general error
>which doesn't help at all to debug and to understand what exactly is
>going wrong :)
>
>Any hints would be highly appreciated!
>
>Thanks,
>
>Oliver
>
Dipl.-Inf. Andreas Förthner
Leiter Web-Entwicklung
Telefon: +49 (911) 539909 - 0
E-Mail: andreas.foerthner at netlogix.de
Internet: http://media.netlogix.de
--
netlogix GmbH & Co. KG
IT-Services | IT-Training | Media
Andernacher Straße 53 | 90411 Nürnberg
Telefon: +49 (911) 539909 - 0 | Fax: +49 (911) 539909 - 99
E-Mail: mailto:info at netlogix.de | Internet: http://www.netlogix.de/
netlogix GmbH & Co. KG ist eingetragen am Amtsgericht Nürnberg (HRA 13338)
Persönlich haftende Gesellschafterin: netlogix Verwaltungs GmbH (HRB 20634)
Umsatzsteuer-Identifikationsnummer: DE 233472254
Geschäftsführer: Stefan Buchta, Matthias Schmidt
_______________________________________________
>FLOW3-general mailing list
>FLOW3-general at lists.typo3.org
>http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general
More information about the FLOW3-general
mailing list