[TYPO3-dev] 6.2: New type for form.radio viewhelper?

g4-lisz at tonarchiv.ch g4-lisz at tonarchiv.ch
Mon Apr 21 01:07:43 CEST 2014


Another issue here:

I use a search form with form.radio viewhelper:

<f:form object="{demand}" name="demand" ... >
...
    <f:for each="{stations}" as="station"><li>
        <f:form.radio property="notfallstations" value="{station.uid}"
/> {station.name}
    </li></f:for>
...
</f:form>

Property "notfallstations" of class "searchDemand" is of type integer.

When I submit the form, I get the error:

#1297759968: Exception while property mapping at property path
"notfallstations":No converter found which can be used to convert from
"string" to "array".

TYPO3\CMS\Extbase\Property\Exception thrown in file
/var/www/typo3_src-6.2.1/typo3/sysext/extbase/Classes/Property/PropertyMapper.php
in line 106.

16 TYPO3\CMS\Extbase\Property\PropertyMapper::convert(array,
"Tx_Hplusinfo_Domain_Model_SearchDemand",
TYPO3\CMS\Extbase\Mvc\Controller\MvcPropertyMappingConfiguration)

This form worked flawlessly with 4.6.

At first I was thinking that this is because of
"Tx_Hplusinfo_Domain_Model_SearchDemand" (no namepsace).
But the same extension uses other forms with the same searchDemand class
and form.select viewhelper. No issues here.


The POST data looks like this:

tx_hplusinfo_fe_search_results[__referrer][arguments]=YTowOnt9b7bd88590bcc7501fe8bf0858754ba16927826be
tx_hplusinfo_fe_search_results[__trustedProperties]=a:1:{s:6:"demand";a:5:{s:6:"pageId";i:1;s:10:"infoPageId";i:1;s:6:"plzort";i:1;s:14:"isKantonFilter";i:1;s:15:"notfallstations";i:1;}}9a23bcc04157b449fe2e4d42225296ac620e9b7e
  ...
tx_hplusinfo_fe_search_results[demand][notfallstations]=2


Any idea?

Cheers,
Till





More information about the TYPO3-dev mailing list