I have a custom component with a dataList component within:
<apex:dataList value="{!itemsList}" var="item" type="{! listType }">
<apex:outputText value="{!item}"/>
</apex:dataList>
This works well, except that the type
attribute doesn't work. The output looks like this:
<ul id="j_id0:emailTemplate:j_id3:j_id4:j_id18:j_id19:j_id20" type="1">
<li id="j_id0:emailTemplate:j_id3:j_id4:j_id18:j_id19:j_id20:0">Something</li>
<li id="j_id0:emailTemplate:j_id3:j_id4:j_id18:j_id19:j_id20:1">Something else</li>
<li id="j_id0:emailTemplate:j_id3:j_id4:j_id18:j_id19:j_id20:2">Something more</li>
<li id="j_id0:emailTemplate:j_id3:j_id4:j_id18:j_id19:j_id20:3">Something too</li>
</ul>
Notice how the type is set, but the list is unordered. I assume that a value of 1
would indicated an ordered list. I've also tried A
with no change.
From the docs:
The type of list that should display. For ordered lists, possible values include "1", "a", "A", "i", or "I". For unordered lists, possible values include "disc", "square", and "circle". If not specified, this value defaults to "disc".
I've also tried omitting the type
attribute, which does not apply the value disc
as the docs imply it should.
What's the problem?