index.jsp
来自「一个JSF的商业组件的DEMO,infragistics-netadvantag」· JSP 代码 · 共 157 行
JSP
157 行
<%--
Copyright 2005 Infragistics. All Rights Reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
conditions are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistribution in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials
provided with the distribution.
Neither the name of Infragistics or the names of
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
This software is provided "AS IS," without a warranty of any
kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
EXCLUDED. INFRAGISTICS AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE OR
ITS DERIVATIVES. IN NO EVENT WILL INFRAGISTICS OR ITS LICENSORS BE LIABLE
FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF INFRAGISTICS HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
You acknowledge that this software is not designed, licensed or
intended for use in the design, construction, operation or
maintenance of any nuclear facility.
--%>
<%@ page contentType="text/html" language="java"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="ig" uri="http://www.infragistics.com/faces/netadvantage"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Infragistics NetAdvantage For Java Server Faces - Demo</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description"
content="Infragistics NetAdvantage for Java Server Faces - Demo">
<link href="../../resources/default.css" rel="stylesheet"
type="text/css">
</head>
<body class="rightPanel">
<f:view>
<h:form>
<h:panelGroup styleClass="main">
<%-- TITLE --%>
<h:outputText styleClass="title"
value="WebInput - DateChooser - Overview" />
<h:panelGroup styleClass="section1">
<h:outputText styleClass="title" value="Settings" />
<h:panelGrid columns="2" >
<h:outputText value="Show Header: " />
<h:selectBooleanCheckbox
binding="#{webinput_dateChooserIndex.showHeader}"
immediate="true" value="true" />
<%-- show the dayHeader? --%>
<h:outputText value="Show DayHeader: " />
<h:selectBooleanCheckbox
binding="#{webinput_dateChooserIndex.showDayHeader}"
immediate="true" value="true" />
<%-- day header format --%>
<h:outputText value="DayHeader Format: " />
<h:selectOneRadio
binding="#{webinput_dateChooserIndex.dayHeaderFormat}"
immediate="true" value="short">
<f:selectItem itemValue="short"
itemLabel="Short" />
<f:selectItem itemValue="medium"
itemLabel="Medium" />
<f:selectItem itemValue="long" itemLabel="Long" />
</h:selectOneRadio>
<%-- first day of week --%>
<h:outputText
value="Choose the first day of week: " />
<h:selectOneListbox size="1"
binding="#{webinput_dateChooserIndex.firstDayOfWeek}">
<f:selectItem itemValue="1" itemLabel="Sunday" />
<f:selectItem itemValue="2" itemLabel="Monday" />
<f:selectItem itemValue="3" itemLabel="Tuesday" />
<f:selectItem itemValue="4"
itemLabel="Wednesday" />
<f:selectItem itemValue="5" itemLabel="Thursday" />
<f:selectItem itemValue="6" itemLabel="Friday" />
<f:selectItem itemValue="7" itemLabel="Saturday" />
</h:selectOneListbox>
<%-- min date --%>
<h:outputText value="MinDate (MM/dd/YYYY): " />
<h:outputText
value="#{webinput_dateChooserIndex.minDate}">
<f:convertDateTime pattern="MM/dd/yyyy" />
</h:outputText>
<%-- max date --%>
<h:outputText value="MaxDate (MM/dd/YYYY): " />
<h:outputText
value="#{webinput_dateChooserIndex.maxDate}">
<f:convertDateTime pattern="MM/dd/yyyy" />
</h:outputText>
<%-- edit mask --%>
<h:outputText value="Edit mask : " />
<h:inputText
binding="#{webinput_dateChooserIndex.editMasks}" />
<%-- --%>
<h:outputText escape="false " value=" " />
<h:outputText escape="false " value=" " />
</h:panelGrid>
<h:commandButton
actionListener="#{webinput_dateChooserIndex.applySetting}"
value="Apply Settings"
title="Apply the settings to the date chooser" />
</h:panelGroup>
<h:panelGroup styleClass="section">
<%-- =================================== INFRAGISTICS-CODE ==================================== --%>
<h:outputText
value="Click on the date chooser to see the result: " />
<ig:dateChooser
binding="#{webinput_dateChooserIndex.dateChooser}"
maximumDate="#{webinput_dateChooserIndex.maxDate}"
minimumDate="#{webinput_dateChooserIndex.minDate}" />
<%-- =================================== INFRAGISTICS-CODE ==================================== --%>
</h:panelGroup>
<h:panelGroup styleClass="section">
<%-- DESCRIPTION --%>
<ig:tabView>
<ig:tabItem value="Description">
<f:verbatim escape="false">
This sample demostrates the different aspects of the DateChooser. Selecting the
button next to the text box will bring up the DateChooser. To change the look
and behavior of the DateChooser update any of the settings and press the
Apply Settings button
</f:verbatim>
</ig:tabItem>
<ig:tabItem value="JSP Source Code">
<h:outputText escape="false"
value="#{shared.jspSourceCode}" />
</ig:tabItem>
</ig:tabView>
</h:panelGroup>
</h:panelGroup>
</h:form>
</f:view>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?