maia_modificado/.svn/pristine/07/0712acad1baf6b91489bc6170e3...

54 lines
2.6 KiB
Plaintext
Executable File

<ui:composition xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core" xmlns:c="http://java.sun.com/jstl/core"
xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"
xmlns:pe="http://primefaces.org/ui/extensions" template="/WEB-INF/templates/template.xhtml"
xmlns:maia="http://java.sun.com/jsf/composite/maiaComponents">
<ui:define name="content">
<title>LOV: #{msg_general.lvh_table}</title>
<h:form id="formTable">
<maia:pageEvents controller="#{entityLovController}" queryProcess=":formTable:filters"
queryUpdate=":formTable:tentity" focusContainer=":formTable:filters" />
<p:panelGrid id="filters" columns="9" styleClass="m-filters">
<f:facet name="header">
<h:outputText value="#{msg_general.lbl_filters}" />
</f:facet>
<p:outputLabel for="fpk" value="#{msg_general.lbl_code}:" />
<p:inputText id="fpk" value="#{entityLovController.mfilters['pk.tname']}" maxlength="30"
style="width: 200px;" onkeyup="Maia.forceupper(event, this);">
</p:inputText>
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<p:commandButton value="#{msg_general.btn_query}" update="data-content" icon="ui-icon-search"
action="#{entityLovController.query()}" process="@this, filters" />
<p:commandButton value="#{msg_general.btn_previous}" update="data-content" icon="ui-icon-seek-prev"
action="#{entityLovController.previous()}" />
<p:commandButton value="#{msg_general.btn_next}" update="data-content" icon="ui-icon-seek-next"
action="#{entityLovController.next()}" />
</h:panelGrid>
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_general.htbl_table}" />
</f:facet>
<p:dataTable id="tentity" var="row" value="#{entityLovController.lrecord}" rows="200"
style="min-width: 300px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single"
selection="#{entityLovController.record}">
<p:ajax event="rowSelect" listener="#{entityLovController.setentity()}" />
<p:column headerText="#{msg_general.lbl_code}" resizable="true" sortBy="#{row.pk.tname}"
style="width:70px; height:25px">
<h:outputText value="#{row.pk.tname}" />
</p:column>
<p:column rendered="false">
<p:commandButton icon="ui-icon-copy" actionListener="#{entityLovController.setentity(row)}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</ui:define>
</ui:composition>