<?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 inline //+ guzik do pobrania go

         PARAMETRY:
         String data -  kod SVG do wstawienia inline
         String id  -  opcjonalne, do identyfikacji na stronie
         Integer pos_x, pos_y -  pozycja do wycentrowania obrazka
         ...

         Autor: pta
    -->

    <div id="#{id}" class="bigtree">
        <h:outputText escape="false" value="#{data}" transient="true"/>
    </div>
    <script type="text/javascript" >
        d = document.getElementById("#{id}");
        centerScrollBar(d, parseInt("#{pos_x}") - 450, parseInt("#{pos_y}") - 50);
        truncateScrollHeight(d, 450);
    </script>

</ui:composition>