maia/.svn/pristine/7a/7a8e03248f1d5794a7b848c540c...

63 lines
3.7 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_bpm.lvh_groups}</title>
<h:body>
<p:focus context="formTable"></p:focus>
<h:form id="formTable">
<maia:pageEvents controller="#{groupsLovController}"
queryProcess=":formTable:filters"
queryUpdate=":formTable:tgroups"
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_bpm.lbl_group}:" />
<p:inputText id="fpk" value="#{groupsLovController.mfilters['pk.groupcode']}" maxlength="20" style="width: 160px;" onkeyup="Maia.forceupper(event, this);"/>
<p:outputLabel for="fdesc" value="#{msg_bpm.lbl_description}:" />
<p:inputText id="fdesc" value="#{groupsLovController.mfilters['description']}" maxlength="60" style="width: 360px;" />
</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="#{groupsLovController.query()}" process="@this, filters"/>
<p:commandButton value="#{msg_general.btn_previous}" update="data-content" icon="ui-icon-seek-prev" action="#{groupsLovController.previous()}" />
<p:commandButton value="#{msg_general.btn_next}" update="data-content" icon="ui-icon-seek-next" action="#{groupsLovController.next()}" />
</h:panelGrid>
<p:panelGrid id="data-content" columns="1" styleClass="m-data-content">
<f:facet name="header">
<h:outputText value="#{msg_bpm.htbl_groups}" />
</f:facet>
<p:dataTable id="tgroups" var="row" value="#{groupsLovController.lrecord}" rows="200" style="min-width: 300px; width: auto;" rowKey="#{row.rowkey()}"
selectionMode="single" selection="#{groupsLovController.record}" >
<p:ajax event="rowSelect" listener="#{groupsLovController.setGroup()}" />
<p:column headerText="#{msg_bpm.lbl_group}" resizable="true" sortBy="#{row.pk.groupcode}">
<h:outputText value="#{row.pk.groupcode}" />
</p:column>
<p:column headerText="#{msg_bpm.lbl_description}" resizable="true" sortBy="#{row.description}">
<h:outputText value="#{row.description}" />
</p:column>
<p:column >
<p:commandButton icon="ui-icon-copy" actionListener="#{groupsLovController.setGroup(row)}" />
</p:column>
</p:dataTable>
</p:panelGrid>
</h:form>
</h:body>
</ui:define>
</ui:composition>