<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:c="http://java.sun.com/jstl/core"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:a="http://richfaces.org/a4j"
                xmlns:pd="dendrarium">

    <!-- Komponent wyswietlajacy obrazek SVG + guzik do pobrania go

         PARAMETRY:
         List<MenuItem> menuItems  -  lista linkow
         Boolean rendered  -  czy wyswietlic
         ...

         Autor: pta
    -->

    <s:div id="nav" style="width:100%" rendered="#{rendered}">
        <ul style="width:100%">
            <ui:repeat value="#{menuItems}" var="m">
                <li class="#{m.active?'current':''}"> <a href="#{m.url}">#{m.title}</a> </li>
            </ui:repeat>
        </ul>
    </s:div>

</ui:composition>