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

Oliver Beck oli5188 at gmail.com
Thu Apr 26 14:10:01 CEST 2012


Am 26.04.2012 11:36, schrieb Claus Due:
> 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"
>> ^
>>
>> 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
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
Hi Claus

I just try a multiupload too. I did the same like roland, here my form:

--- quote ---

<fed:form method="post" action="upload" name="project" 
object="{project.files}">
<fed:form.multiUpload property="files" uploadfolder="ordner"  />
</fed:form>

--- /quote ---



I get this output:

--- /quote ---

<input  id="plupload4f9937ff12ceb-field"type="hidden"name="tx_projects_pi1[project][files]"value=""class="value-holder"/>
<div  id="plupload4f9937ff12ceb"class="fed-plupload plupload_container"></div>

--- quote ---

But I don't see any uploadelement..

any hints?


Kind Regards

Oliver						




More information about the TYPO3-project-typo3v4mvc mailing list