[TYPO3-dev] Little Problem with create form

Stefan Kruse besucher80 at gmx.de
Wed Nov 5 14:47:11 CET 2014


I, i have a form. For this i created to actions. One called singleMessage and the other called sendSingleMessage. And they look like this:

/**
 * action singleForm
 *
 * @param \Sk\Tl24\Domain\Model\Message $message
 * @ignorevalidation $message
 * @return void
 */
public function singleFormAction(\Sk\Tl24\Domain\Model\Message $message = NULL) {	
	if(is_null($message)) {
	     $message = $this->objectManager->get('Sk\Tl24\Domain\Model\Message');
	}
}

/**
 * action sendSingleForm
 *
 * @param \Sk\Tl24\Domain\Model\Message $message
 * @return void
 */
public function sendSingleFormAction(\Sk\Tl24\Domain\Model\Message $message) {
 ....
}

The form looks like this:

<f:form method="post" id="new_contact" object="{message}" name="message" additionalAttributes="{data-remote:'false'}" class="new_contact" action="sendSingleForm">
<f:form.textfield size="30" property="name" value="{message.name}" id="contact_contact_name" class="form-control" />
</f:form>

BUT: Everytime i submit the form the message object is empty. There are no values in the fields. Are there some changes in T3-6.2.5 because in 6.1 this works fine.

Maybe some hints or a tipp?

Thanks a lot
Stefan



More information about the TYPO3-dev mailing list