<?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="#{bean.pemdaCombo.idPanel}" rendered="#{bean.pemdaCombo.view}">
        <table align="#{bean.pemdaCombo.align}">
            <tr>
                <td  style="#{bean.pemdaCombo.labelStyle}" > <h:outputText value="#{bean.pemdaCombo.label}" />  </td>
                <td style="width: 500px; padding: 5px;"> 
                    <p:selectOneMenu filter="true" filterMatchMode="contains" id="#{bean.pemdaCombo.idCombo}" value="#{bean.pemdaCombo.selectedPemda}" 
                                     panelStyle="font-size:12px; width: 290px;" style="font-size:12px; width: 290px"
                                     converter="omnifaces.SelectItemsConverter" disabled="#{bean.pemdaCombo.mode}"
                                     placeholder="Silahkan Pilih Pemerintah Derah"
                                     >
                        <f:selectItems value="#{bean.pemdaCombo.pemdas}" var="pe" itemLabel="#{pe.namaPemda}" itemValue="#{pe}" />
                        <p:ajax process="#{bean.pemdaCombo.idCombo}" update="#{bean.pemdaCombo.update}" event="change" listener="#{bean.onPemdaChange}"/>
                    </p:selectOneMenu>
                </td>
            </tr>
        </table>
    </h:panelGroup>

</ui:composition>
