[TYPO3-project-formidable] Bug in the LISTBOX renderlet
Luc Muller
l.mul-nospam-ler at ameos.com
Thu May 31 12:31:37 CEST 2007
Hello Oliver.
After a qiuck look at Formidable Core, I Think you should always use Caption
and Value in Listboxes.
I've never tried to use them the way you talk avbout, so I can't tell if
it's a bug or not, but I didn't see any conf that says that if no
caption/value are present, caption/value are set by default with the value
of the text node.
Definitly, I just a a small look at the core, may Jerome did something this
way I don't know, but this kind of feature can be implemented easily if
really needed.
For the moment keep using the "normal" way, I mean using caption and value.
Luc =:0)
"Oliver Klee" <typo3-german-02 at oliverklee.de> a écrit dans le message de
news:
mailman.1.1180605937.22519.typo3-project-formidable at lists.netfielders.de...
> Hi,
>
> there seems to be a bug in the LISTBOX renderlet (or I have used it the
> wrong way). If you put the value/caption into the item nodes as text
> nodes, this works only for one-digit numbers. So the following code ...
>
> <renderlet:LISTBOX name="seats">
> <data>
> <items>
> <item>1</item>
> <item>2</item>
> <item>3</item>
> <item>4</item>
> <item>5</item>
> <item>6</item>
> <item>7</item>
> <item>8</item>
> <item>9</item>
> <item>10</item>
> <item>11</item>
> <item>12</item>
> </items>
> </data>
> </renderlet:LISTBOX>
>
> ... will lead to a listbox like this for values and captions:
>
> 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 1
> 1
> 1
>
> Instead, for two-digit numbers, the value and captions needs to be set
> separately:
>
> <renderlet:LISTBOX name="seats">
> <data>
> <items>
> <item>1</item>
> <item>2</item>
> <item>3</item>
> <item>4</item>
> <item>5</item>
> <item>6</item>
> <item>7</item>
> <item>8</item>
> <item>9</item>
> <item value="10" caption="10" />
> <item value="11" caption="11" />
> <item value="12" caption="12" />
> </items>
> </data>
> </renderlet:LISTBOX>
>
> Expected behavior would have been that even two-digit numbers can be set
> as text nodes.
>
> Regards,
>
>
> Oliver
More information about the TYPO3-project-formidable
mailing list