⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fileupload_.jspx

📁 对应的文件上传的页面上的代码,附带有菜单功能部分代码
💻 JSPX
字号:
<?xml version='1.0' encoding='GBK'?>
<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:cust="http://xmlns.oracle.com/adf/faces/customizable"
          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=GBK"/>
  <f:view>
    <f:loadBundle basename="webview.resources.UIResources" var="res"/>
    <f:loadBundle basename="webview.resources.UIResourcesStorageModule_zh_CN" var="local"/>
    <af:document title="#{res['srdemo.browserTitle']}">
    <afh:html>
      <afh:body>
        <af:form usesUpload="true">
          <af:panelPage title="#{res['upOutMasterID']}">
          
          <af:inputFile label="#{res['upOutMasterID']}"
                         value="#{bindings.FileFullName.inputValue}"
                        valueChangeListener="#{backing_storage_StorageOutMasterInsert.fileUploaded}"
                        binding="#{backing_storage_StorageOutMasterInsert.fileNameInput}"
                         required="true"
                        />
         <af:panelButtonBar>
          <af:commandButton text="#{res['PreviOusLabel']}" action="success" immediate="true"/>
          <af:commandButton text="#{res['NextLabel']}"
                            action="#{backing_storage_StorageOutMasterInsert.done}"/>
                  <af:commandButton text="#{res['srdemo.cancel']}"  immediate="true"
                                    action="#{backing_storage_StorageOutMasterInsert.cancel}"/>
        </af:panelButtonBar>
          <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="#{sessionScope.RoleId}">
              <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">
            <!-- Sub Tabs shown in the header bar -->
            <af:menuBar var="menuSubTab"
                        startDepth="1"
                        value="#{menuModel.model}">
              <f:facet name="nodeStamp">
                <af:commandMenuItem text="#{menuSubTab.label}"
                                    action="#{menuSubTab.getOutcome}"
                                    rendered="#{menuSubTab.shown and menuSubTab.type=='default'}"
                                    disabled="#{menuSubTab.readOnly}"/>
                </f:facet>
              </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">
            <h:panelGroup>
              <af:messages/>
            </h:panelGroup>
          </f:facet>
          <f:facet name="appCopyright">
            <!--Copyright msg-->
            <af:outputFormatted value="#{res['srdemo.copyright']}"/>
          </f:facet>
          <f:facet name="appPrivacy">
            <!-- The Contact Us link -->
            <af:commandLink text="#{res['srdemo.contact']}" 
                            action="dialog:GlobalContact"
                            partialSubmit="true" 
                            immediate="true"
                            useWindow="true"/>          
          </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']}"
                              escape="false">
                     <f:param value="#{sessionScope.UserName}"/>
              </h:outputFormat>
          </f:facet>          
           </af:panelPage>         
        </af:form>
      </afh:body>
    </afh:html>
    </af:document>
  </f:view>
</jsp:root>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -