<?xml version='1.0' encoding='windows-1252'?>
<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: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']}"
                 initialFocusId="viewButton">
      <af:form>
        <af:panelPage title="#{res['srlist.pageTitle']}">
          <!--Page Content Start-->
        <af:table value="#{bindings.LoggedInUserServiceRequests.collectionModel}"
                  var="row"
                  rows="#{bindings.LoggedInUserServiceRequests.rangeSize}"
                  first="#{bindings.LoggedInUserServiceRequests.rangeStart}"
                  emptyText="#{bindings.LoggedInUserServiceRequests.viewable ? 'No rows yet.' : 'Access Denied.'}"
                  selectionState="#{bindings.LoggedInUserServiceRequests.collectionModel.selectedRow}"
                  selectionListener="#{bindings.LoggedInUserServiceRequests.collectionModel.makeCurrent}">
          <af:column headerText="#{bindings.LoggedInUserServiceRequests.labels.SvrId}"
                     sortProperty="SvrId" sortable="false">
             <af:commandLink text="#{row.SvrId}"
                              actionListener="#{bindings.setCurrentRowWithKey.execute}"
                              action="View">
                  <af:setActionListener from="#{row.rowKeyStr}"
                                        to="#{processScope.rowKeyStr}"/>
                        <af:setActionListener from="#{'GlobalHome'}"
                                              to="#{userState.returnNavigationRule}"/>
             </af:commandLink>                              
          </af:column>
          <af:column headerText="#{bindings.LoggedInUserServiceRequests.labels.Status}"
                     sortProperty="Status" sortable="false">
            <af:outputText value="#{row.Status}"/>
          </af:column>
          <af:column headerText="#{bindings.LoggedInUserServiceRequests.labels.RequestDate}"
                     sortProperty="RequestDate" sortable="false">
            <af:outputText value="#{row.RequestDate}">
              <f:convertDateTime pattern="#{bindings.LoggedInUserServiceRequests.formats.RequestDate}"/>
            </af:outputText>
          </af:column>
          <af:column headerText="#{bindings.LoggedInUserServiceRequests.labels.ProblemDescription}"
                     sortProperty="ProblemDescription" sortable="false">
            <af:outputText value="#{row.ProblemDescription}"/>
          </af:column>
          <af:column headerText="#{bindings.LoggedInUserServiceRequests.labels.AssignedDate}"
                     sortProperty="AssignedDate" sortable="false">
            <af:outputText value="#{row.AssignedDate}">
              <f:convertDateTime pattern="#{bindings.LoggedInUserServiceRequests.formats.AssignedDate}"/>
            </af:outputText>
          </af:column>
          <f:facet name="selection">
            <af:tableSelectOne text="#{res['srlist.selectAnd']}">
              <af:commandButton text="#{res['srlist.buttonbar.view']}"
                                id="viewButton"
                                actionListener="#{bindings.setCurrentRowWithKey.execute}"
                                action="View">
                  <af:setActionListener from="#{row.rowKeyStr}"
                                        to="#{processScope.rowKeyStr}"/>
                        <af:setActionListener from="#{'GlobalHome'}"
                                              to="#{userState.returnNavigationRule}"/>                                        
                </af:commandButton>
              <af:commandButton text="#{res['srlist.buttonbar.edit']}"
                                actionListener="#{bindings.setCurrentRowWithKey.execute}"
                                action="Edit"
                                rendered="#{userInfo.manager}">
                  <af:setActionListener from="#{row.rowKeyStr}"
                                        to="#{processScope.rowKeyStr}"/>
                        <af:setActionListener from="#{'GlobalHome'}"
                                              to="#{userState.returnNavigationRule}"/>                                        
              </af:commandButton>
            </af:tableSelectOne>
          </f:facet>
        </af:table>   
          <!-- Page Content End -->
          <f:facet name="branding">
            <af:objectImage height="69" width="340"
                            source="/images/SRBranding.gif"/>
          </f:facet>
          <f:facet name="menu1">
            <!-- Tab menu across the top of the page -->
              <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}">
                  </af:commandMenuItem>                                      
                </f:facet>
              </af:menuTabs>
            </afc:cache>
          </f:facet>
          <f:facet name="menuGlobal">
            <f:subview id="globalMenufragment">
              <jsp:include page="/app/globalMenu.jspx"/>
            </f:subview>
          </f:facet>
          <f:facet name="menu2">
            <!-- Sub Tabs shown in the header bar -->
            <af:menuBar>
              <af:commandMenuItem text="#{res['srlist.menubar.openLink']}"
                                  disabled="#{!bindings.ExecuteWithParams.enabled}"
                                  selected="#{userState.listModeOpen}"
                                  actionListener="#{bindings.ExecuteWithParams.execute}">
                <af:setActionListener from="#{'Open'}"
                                      to="#{userState.listMode}"/>
              </af:commandMenuItem>
              <af:commandMenuItem text="#{res['srlist.menubar.pendingLink']}"
                                  disabled="#{!bindings.ExecuteWithParams.enabled}"
                                  selected="#{userState.listModePending}"
                                  actionListener="#{bindings.ExecuteWithParams.execute}">
                <af:setActionListener from="#{'Pending'}"
                                      to="#{userState.listMode}"/>
              </af:commandMenuItem>
              <af:commandMenuItem text="#{res['srlist.menubar.closedLink']}"
                                  disabled="#{!bindings.ExecuteWithParams.enabled}"
                                  selected="#{userState.listModeClosed}"
                                  actionListener="#{bindings.ExecuteWithParams.execute}">
                <af:setActionListener from="#{'Closed'}"
                                      to="#{userState.listMode}"/>
              </af:commandMenuItem>
              <af:commandMenuItem text="#{res['srlist.menubar.allRequests']}"
                                  selected="#{userState.listModeAll}"
                                  disabled="#{!bindings.ExecuteWithParams.enabled}"
                                  actionListener="#{bindings.ExecuteWithParams.execute}">
                <af:setActionListener from="#{'%'}" to="#{userState.listMode}"/>
              </af:commandMenuItem>
              <af:commandMenuItem text="#{res['srlist.menubar.newLink']}"                                  
                                  action="GlobalCreate"/>
            </af:menuBar>
          </f:facet>
          <f:facet name="messages">
            <h:panelGroup>
              <af:messages/>
            </h:panelGroup>
          </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>
