<?xml version='1.0' encoding='windows-1252'?>
<!--$Id: SREdit.jspx,v 1.13 2006/05/11 00:32:06 steve Exp $-->
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:af="http://xmlns.oracle.com/adf/faces"
          xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
          xmlns:afc="http://xmlns.oracle.com/adf/faces/webcache">
  <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
              doctype-system="http://www.w3.org/TR/html4/loose.dtd"
              doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
  <jsp:directive.page contentType="text/html;charset=UTF-8"/>
  <f:view>
    <f:loadBundle basename="oracle.srdemo.view.resources.UIResources" var="res"/>
    <af:document title="#{res['srdemo.browserTitle']}">
      <af:form>
        <af:panelPage title="#{res['sredit.pageTitle']}">
          <!--Page Content Start-->
          <af:panelBox>
            <af:panelForm partialTriggers="staffLOVLink">
              <af:panelLabelAndMessage label="#{bindings.svrId.label}:">
                <af:outputText value="#{bindings.SvrId.inputValue}"/>
              </af:panelLabelAndMessage>
              <af:panelLabelAndMessage label="#{bindings.CreatedBy.label}:">
                <af:panelHorizontal>
                  <f:facet name="separator">
                    <af:objectSpacer width="4" height="10"/>
                  </f:facet>
                  <af:outputText value="#{bindings.CreatedByFirstName.inputValue}"/>
                  <af:outputText value="#{bindings.CreatedByLastName.inputValue}"/>
                </af:panelHorizontal>
              </af:panelLabelAndMessage>
              <af:panelLabelAndMessage label="#{bindings.requestDate.label}:">
                <af:outputText value="#{bindings.RequestDate.inputValue}">
                  <f:convertDateTime pattern="#{bindings.requestDate.format}"/>
                </af:outputText>
              </af:panelLabelAndMessage>
              <af:panelLabelAndMessage label="#{bindings.AssignedTo.label}:">
                <af:panelHorizontal>
                  <f:facet name="separator">
                    <af:objectSpacer width="4" height="10"/>
                  </f:facet>
                  <af:outputText value="#{bindings.AssignedToFirstName.inputValue}"
                                 partialTriggers="staffLOVLink"/>
                  <af:outputText value="#{bindings.AssignedToLastName.inputValue}"
                                 partialTriggers="staffLOVLink"/>
                  <af:commandLink id="staffLOVLink" action="dialog:StaffSearch"
                                  useWindow="true" immediate="true"
                                  returnListener="#{backing_SREdit.handleStaffLOVReturn}"
                                  partialTriggers="status"
                                  disabled="#{bindings.Status.inputValue==2}"
                                  partialSubmit="true">
                    <af:objectImage height="24" width="24"
                                    source="/images/searchicon_enabled.gif"/>
                  </af:commandLink>
                </af:panelHorizontal>
              </af:panelLabelAndMessage>
              <af:selectOneChoice value="#{bindings.Status.inputValue}"
                                  label="#{bindings.Status.label}:"
                                  autoSubmit="true" id="status">
                <f:selectItems value="#{bindings.Status.items}"/>
              </af:selectOneChoice>
              <af:selectInputDate value="#{bindings.AssignedDate.inputValue}"
                                  label="#{bindings.AssignedDate.label}:"
                                  partialTriggers="staffLOVLink status"
                                  binding="#{backing_SREdit.assignedDate}"
                                  disabled="#{bindings.Status.inputValue==2}">
                <af:validator binding="#{bindings.AssignedDate.validator}"/>
                <f:convertDateTime pattern="#{bindings.assignedDate.format}"/>
              </af:selectInputDate>
              <af:inputText value="#{bindings.ProblemDescription.inputValue}"
                            label="#{bindings.ProblemDescription.label}:"
                            required="#{bindings.ProblemDescription.mandatory}"
                            columns="#{bindings.ProblemDescription.displayWidth}"
                            rows="4"
                            disabled="#{bindings.Status.inputValue==2}"
                            partialTriggers="status"/>
              <f:facet name="footer">
                <af:panelButtonBar>
                  <af:commandButton text="#{res['srdemo.cancel']}"
                                    actionListener="#{bindings.cancelEditsToCurrentServiceRequest.execute}"
                                    action="#{userState.retrieveReturnNavigationRule}"
                                    immediate="true">
                  </af:commandButton>
                  <af:commandButton text="#{res['srdemo.save']}"
                                    actionListener="#{bindings.Commit.execute}"
                                    action="#{userState.retrieveReturnNavigationRule}">
                  </af:commandButton>
                </af:panelButtonBar>
              </f:facet>
            </af:panelForm>
          </af:panelBox>
          <!-- Page Content End -->
          <f:facet name="branding">
            <af:objectImage height="69" width="340"
                            source="/images/SRBranding.gif"/>
          </f:facet>          
          <f:facet name="menu1">
            <afc:cache duration="864000" varyBy="userInfo.userName">
              <af:menuTabs var="menuTab" value="#{menuModel.model}">
                <f:facet name="nodeStamp">
                  <af:commandMenuItem text="#{menuTab.label}"
                                      action="#{menuTab.getOutcome}"
                                      rendered="#{menuTab.shown and menuTab.type=='default'}"
                                      disabled="#{menuTab.readOnly}"/>
                </f:facet>
              </af:menuTabs>
            </afc:cache>
          </f:facet>
          <f:facet name="menu2">
            <af:menuBar>
              <af:objectSpacer height="14"/>
            </af:menuBar>
          </f:facet>          
          <f:facet name="menuGlobal">
            <f:subview id="globalMenufragment">
              <jsp:include page="/app/globalMenu.jspx"/>
            </f:subview>
          </f:facet>
          <f:facet name="messages">
            <af:messages/>
          </f:facet>
          <f:facet name="appCopyright">
            <!--Copyright msg-->
            <af:outputText value="#{res['srdemo.copyright']}"/>
          </f:facet>
          <f:facet name="appAbout">
              <!-- The About this Application Link-->
              <af:commandLink text="#{res['srdemo.about']}" action="GlobalAbout"
                              immediate="true"/>
          </f:facet>
          <f:facet name="infoUser">
            <!-- Show the Logged in user -->
              <h:outputFormat value="#{res['srdemo.connectedUser']}"
                              rendered="#{userInfo.authenticated}"
                              escape="false">
                     <f:param value="#{userInfo.userName}"/>
              </h:outputFormat>
          </f:facet>
        </af:panelPage>
      </af:form>
    </af:document>
  </f:view>
</jsp:root>
