[
https://issues.apache.org/jira/browse/TOMAHAWK-326?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12543150
]
Shyam commented on TOMAHAWK-326:
--------------------------------
Here is the Working Code :-
<UL class="tagCloud clearfix">
<t:dataList id="popularTagItem" forceIdIndex="true"
forceId="true" value="#{entry.popularTagsList}" var="popularTagItem"
rowIndexVar="popularIndex" >
<h:outputText value="<LI
class=#{popularTagItem.styleClass} id=popularId_#{popularTagItem.tagName} >"
escape="false" />
<t:commandLink value="#{popularTagItem.tagName}"/>
<f:verbatim></LI></f:verbatim>
</t:dataList>
</UL>
> t:dataList does not style <li> elements
> ---------------------------------------
>
> Key: TOMAHAWK-326
> URL: https://issues.apache.org/jira/browse/TOMAHAWK-326
> Project: MyFaces Tomahawk
> Issue Type: Bug
> Environment: All (I presume)
> Reporter: Randahl Fink Isaksen
> Assignee: Martin Marinschek
> Fix For: 1.1.2
>
> Attachments: itemStyleClass.zip
>
>
> When adding a style class attribute to a t:dataList you can output something
> like
> <ul class="myCssClass">
> <li>Some content</li>
> </ul>
> but notice here that the <li> element has no style class attribute. This
> makes it impossible to style the <li> elements (without styling all <li>
> elements on the page).
> This bug does not only give us less styling flexibility it also means that
> you cannot guarantee the same rendering of an HTML list across browsers. From
> my testing it looks very much like Mozilla Firefox and Internet Explorer have
> different default margins around a <li> element, and since the t:dataList
> does not allow me to address this, I cannot guarantee the precise same
> rendering across browsers.
> You might think that a simple workaround would be to simply style the <li>
> element without a style class, but this is problematic, because then all <li>
> elements on the same page are styled - even the ones you did not intend to
> style.
> A quick fix would be to output the specified styleClass attribute as the
> style class of both the <ul> and the <li> element, however, it is my opinion
> that the ideal solution to this problem is to add a new attribute to
> t:dataList called itemStyleClass which contains the style class to be
> rendered on the <li> element.
> For what it is worth, it would mean a lot to my project if you would address
> this issue.
> Thank you for a great library!
> Randahl
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.