[TYPO3-project-formidable] Bug in the LISTBOX renderlet

Oliver Klee typo3-german-02 at oliverklee.de
Thu May 31 12:05:26 CEST 2007


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