[TYPO3-mvc] FED :: <fed.form.multiupload /> :: No value found for key "Tx_Fluid_ViewHelpers_FormViewHelper->formObject"

Claus Due claus at wildside.dk
Thu Apr 26 11:36:53 CEST 2012


Hi Roland,

The MultiUpload ViewHelper currently requires an attached form object which must be a real instance. This makes it slightly different from other Form field ViewHelpers and sounds like it could be the problem.

If this happens in your "createAction" you must check if the $object is === NULL and if it is, create an instance that can be used in the form. Other than this you must of course make sure that you transfer all template variables (i.e. don't assign a NULL value as form object).

Hope this helps!

---
Cheers,
Claus
http://fedext.net


On Apr 26, 2012, at 11:29 AM, Roland wrote:

> hi everybody,
> 
> i just try to add a multiupload functionality via FED viewhelper form.multiUpload to an extbase extension:
> 
> --- quote ---
> <f:form method="post" controller="Stellungnahme" action="upload" name="kurzkommentar" object="{ausschreibung.kurzkommentar}">
> 	<fed:form.multiUpload property="anhang" />
> </f:form>
> --- /quote ---
> 
> this error message is outputted:
> 
> --- quote ---
> No value found for key "Tx_Fluid_ViewHelpers_FormViewHelper->formObject"
> --- /quote ---
> 
> i subclassed the StellungnahmeController as noted in the FED instructions:
> 
> --- quote ---
> class Tx_Wissensdatenbank_Controller_StellungnahmeController extends Tx_Fed_Core_AbstractController {
> 	...
> }
> 
> http://fedext.net/fed-viewhelpers/form/multi-upload.html
> 
> i am pretty sure that {ausschreibung.kurzkommentar} represents a valid object because {ausschreibung.kurzkommentar} in the same fluid template.
> 
> additionally this outputs a textarea without any error message:
> 
> --- quote ---
> <f:form method="post" controller="Stellungnahme" action="upload" name="kurzkommentar" object="{ausschreibung.kurzkommentar}">
> 	<f:form.textarea property="anhang" rows="" cols="" />
> </f:form>
> --- /quote ---
> 
> any tipps?
> 
> kind regards.
> 
> roland
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc



More information about the TYPO3-project-typo3v4mvc mailing list