maia_modificado/.svn/pristine/06/067a6da20f3d531edd431b8ef24...

60 lines
2.8 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_usuario}</title>
<h:body>
<h:form id="formTable">
<maia:pageEvents controller="#{userLovController}" queryProcess=":formTable:filters"
queryUpdate=":formTable:user" 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="fpku" value="#{msg_security.user}:" />
<p:inputText id="fpku" value="#{userLovController.mfilters['pk.usercode']}" maxlength="20"
style="width: 160px;" onkeyup="Maia.forceupper(event, this);" />
<p:outputLabel for="fnameuser" value="#{msg_general.lbl_name}:" />
<p:inputText id="fnameuser" value="#{userLovController.userName}" maxlength="100" style="width: 300px;"
onkeyup="Maia.forceupper(event, this);" />
</p:panelGrid>
<h:panelGrid columns="7" id="controls" styleClass="m-controls">
<p:commandButton value="#{msg_general.btn_query}" update="user" icon="ui-icon-search"
action="#{userLovController.query()}" process="@this, filters" />
<p:commandButton value="#{msg_general.btn_previous}" update="user" icon="ui-icon-seek-prev"
action="#{userLovController.previous()}" />
<p:commandButton value="#{msg_general.btn_next}" update="user" icon="ui-icon-seek-next"
action="#{userLovController.next()}" />
</h:panelGrid>
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_general.htbl_usuario}" />
</f:facet>
<p:dataTable id="user" var="row" value="#{userLovController.lrecord}" rows="200"
style="min-width: 500px; width: auto;" rowKey="#{row.rowkey()}" selectionMode="single"
selection="#{userLovController.record}">
<p:ajax event="rowSelect" listener="#{userLovController.setuser()}" />
<p:column headerText="#{msg_general.lbl_usuario}" resizable="true" style="width:70px"
sortBy="#{row.pk.usercode}">
<h:outputText value="#{row.pk.usercode}" />
</p:column>
<p:column headerText="#{msg_general.lbl_name}" resizable="true">
<h:outputText value="#{row.modifiedData['personname']}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</h:body>
</ui:define>
</ui:composition>