<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:p="http://primefaces.org/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core">
    
    <h:panelGroup id="#{backBean.idPanelYear}" rendered="#{backBean.viewYear}">
        <table align="center">
            <tr>
                <td style="width: 140px; padding: 5px;"> <h:outputText value="#{backBean.labelPeriode}"/> </td>
                <td style="width: 10px; padding: 5px;"> <h:outputText value=" : "/>   </td>
                <td style="width: 600px; padding: 5px;"> 
                    <p:selectOneMenu id="#{backBean.idComboYear}" value="#{backBean.selectedYear}" panelStyle="font-size:11px; width: 200px;" style="font-size:11px; width: 200px"
                                     converter="omnifaces.SelectItemsConverter" disabled="#{backBean.editMode}">
                        <f:selectItem itemLabel="Pilih Tahun Anggaran...." itemValue="#{backBean.yearNull}" />
                        <f:selectItems value="#{backBean.tahuns}" var="yearsitem" itemLabel="#{yearsitem.tahunAsString}" itemValue="#{yearsitem}" />
                        <p:ajax process="#{backBean.idComboYear}" update="#{backBean.updateYear}" event="change" listener="#{backBean.onYearChange}"/>
                    </p:selectOneMenu>
                </td>
            </tr>
        </table>
    </h:panelGroup>

</ui:composition>
