[TYPO3-mvc] Select object via f:form.select

Kevin Ulrich Moschallski km at 3digit.de
Sat May 29 12:29:39 CEST 2010


Hi list,

i want to build a selector for an object with fluid, but i can't figure out how to pass the object.

Here is what i tried:

<f:form action="show" object="{quiz}">
				<f:form.select options="{quizzes}" optionLabelField="description" optionValueField="uid"}"><f:form.submit value="Submit" />
</f:form>

in fluid and this in the controller:

/**
	 * Show result
	 * @param Tx_3dgQuiz_Domain_Model_Quiz $quiz the selected quiz
	 * @dontvalidate $quiz
	 * @return string
	 */
	public function showAction(Tx_3dgQuiz_Domain_Model_Quiz $quiz) {
		$this->view->assign('quiz', $quiz);
		//$this->view->assign('results', $this->resultRepository->findAll());
	}

but i always get redirected to the action which shows the list.

I also tried to use optionValueField="{quiz}" but this doesn't work either.

Does anybody has a sample how to use such a kind of selector?

Thanks for help in advance.

Regards,

Kevin


More information about the TYPO3-project-typo3v4mvc mailing list