As far as I know, t:DataList doesn't generate a span unless you
provide an id or style.
I don't see one in my own program, but It's possible I've missed it
due to the huge amount of output being generated.   Unfortunately, the
examples at http://www.irian.at/myfaces/home.jsf are down right now,
so I can't double-check there.

Try creating a page containing only a dataList and one element inside
it and see what html is generated.   Maybe this is a jsp caching
problem and you're picking up the value because the previous code on
your page had an id specified.

If dataList does generate a span on simple mode when there's no
requirement to do so, I'd consider it a bug.  It should be easy to
track down if that's the case.


On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:

Darnit! Before you mentioned not having ids or styles in the datalist as
attributes, I had id="test1". After your post, I removed that code as I have
it below. This is what it really rendered:
<div id="midview:content:unranked">
<ul class="sortablelist" id="unranked" style="...">
<span id="midview:content:j_id_id12j_id_1">
<li class='green' id='playerId_57'>Tooth Fairy</li>
<li class='green' id='playerId_57'>Boogie Man</li>
<li class='green' id='playerId_57'>Big Foot</li>
...
...
...
</span></ul></div>

Here was the code I left out: style="border:thin black solid;width:140px;".
Plain ole CSS in there that shouldn't screw up and render a <span>. Besides,
this is in the <ul> tag and is rendered before the datalist.

Regards,
Danimal


Mike Kienenberger wrote:
>
> You don't show any page code with an id of "test1".   I'd look in your
> "irrelevent stuff" and see what's being assigned an id of test1.
>
>
> On 8/21/06, Danimal <[EMAIL PROTECTED]> wrote:
>> Here is the code I am using and the resulting markup. I am using JSF 1.2
>> impl
>> in glassfish and this might be the problem, but I think it is the render
>> class for the datalist. I have placed elipses(...) for irrelevent stuff.
>>
>> <h:panelGroup layout="block" id="unranked">
>>         <f:verbatim><ul class="sortablelist" id="unranked"
>> style="..."></f:verbatim>
>>         <t:dataList var="player"
>>             value="#{profile.leaguePlayers}"
>>             layout="simple">
>>             <h:outputText value="<li class='green'
>> id='playerId_#{player.id}'>#{player.summaryName}</li>" escape="false"/>
>>         </t:dataList>
>>         <f:verbatim></ul></f:verbatim>
>>     </h:panelGroup>
>>
>> The markup is this:
>> <div id="midview:content:unranked">
>> <ul class="sortablelist" id="unranked" style="...">
>> <span id="midview:content:test1">
>> <li class='green' id='playerId_57'>Tooth Fairy</li>
>> <li class='green' id='playerId_57'>Boogie Man</li>
>> <li class='green' id='playerId_57'>Big Foot</li>
>> ...
>> ...
>> ...
>> </span></ul></div>
>
>

--
View this message in context: 
http://www.nabble.com/Tomahawk-DataList-tf2138090.html#a5911247
Sent from the MyFaces - Users forum at Nabble.com.


Reply via email to