[ http://issues.apache.org/jira/browse/MYFACES-691?page=comments#action_12331844 ]
Randahl Fink Isaksen commented on MYFACES-691: ---------------------------------------------- I understand your point completely. I would like to contribute to myfaces, but I must admit, I have not yet been diving into the myfaces code so it would require an additional effort. Thanks for the work-around suggestion - that will work of course... I simply had not thought of doing it this way... not as pretty but yes, it would work. Are anyone of the myfaces developers interested in fixing this / have the time to fix it? Randahl > t:dataList does not style <li> elements > --------------------------------------- > > Key: MYFACES-691 > URL: http://issues.apache.org/jira/browse/MYFACES-691 > Project: MyFaces > Type: Bug > Components: Tomahawk > Versions: 1.1.0 > Environment: All (I presume) > Reporter: Randahl Fink Isaksen > > 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. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
