You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Randahl Fink Isaksen <ra...@rockit.dk> on 2005/06/21 14:09:19 UTC

x:dataList - how do you set the style of the
  • elements
  • I would like to render an unordered list similar to this
    
    <ul>
    <li>Regular element
    <li style="margin-left:20px">Indented element</li>
    </ul>
    
    Notice the indentation of the second <li> element... Does anyone know 
    how (if at all) I can affect the style of the <li> elements? I am doing 
    the following which does not work
            <x:dataList
                layout="unorderedList"
                value="#{treeMenuContractBean.menuItems}"
                var="menuItem"
                styleClass="AStyleClass"
            >
    ...
    
    This changes the style of the surrounding <ul> elements.
    
    Any ideas?
    
    
    Randahl