[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[TYPO3-dev] Little Problem with create form



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
_______________________________________________
TYPO3-dev mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-dev