blob: b866bc107d1e0926283c8996875229ea830744ce [file] [log] [blame]
cbateman0fbedc32007-05-15 22:00:39 +00001%@page contentType="text/html"%>
cbateman78cc5ad2006-10-20 23:34:10 +00002<%@page pageEncoding="UTF-8"%>
3<%--
4The taglib directive below imports the JSTL library. If you uncomment it,
5you must also add the JSTL library to the project. The Add Library... action
6on Libraries node in Projects view can be used to add the JSTL 1.1 library.
7--%>
8
9<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
10<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
11<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
12
13<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
14 "http://www.w3.org/TR/html4/loose.dtd">
15
16<html>
17 <head>
18 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
19 <title>JSP Page</title>
20 </head>
21 <body>
22 <f:view>
23 <h1>JSP Page</h1>
24 <!-- no errors -->
25 <h:outputText value="#{myBean.stringProperty <= '3'}"/>
26 <h:outputText value="#{myBean.stringProperty le '3'}"/>
27 <h:outputText value="#{myBean.integerProperty <= 3}"/>
28 <h:outputText value="#{myBean.integerProperty le 3}"/>
29 <h:outputText value="#{myBean.integerProperty <= '4' }"/>
30 <h:outputText value="#{myBean.integerProperty le '4' }"/>
31 <h:outputText value="#{myBean.comparableProperty <= myBean.collectionProperty}"/>
32 <h:outputText value="#{myBean.comparableProperty le myBean.collectionProperty}"/>
33 <h:outputText value="#{myBean.integerProperty <= -3}"/>
34 <h:outputText value="#{myBean.doubleProperty <= 5}"/>
35 <h:outputText value="#{5 le myBean.bigIntegerProperty}"/>
36 <h:outputText value="#{myBean.bigDoubleProperty <= myBean.bigIntegerProperty}"/>
cbateman0fbedc32007-05-15 22:00:39 +000037 <h:outputText value="#{myBean.coins <= 'quarter'}"/>
38 <h:outputText value="#{myBean.coins le 'quarter'}"/>
39 <h:outputText value="#{myBean.rawEnum <= 'quarter'}"/>
40 <h:outputText value="#{myBean.coinEnum le 'quarter'}"/>
41 <h:outputText value="#{myBean.rawEnum <= myBean.coins}"/>
42 <h:outputText value="#{myBean.coinEnum <= myBean.colors}"/>
cbateman78cc5ad2006-10-20 23:34:10 +000043
44 <!-- warnings -->
45 <h:outputText value="#{5 <= 3}"/>
46 <h:outputText value="#{5 le 3}"/>
47 <h:outputText value="#{'4' <= '34'}"/>
48 <h:outputText value="#{'4' le '34'}"/>
49 <h:outputText value="#{'34' <= '34'}"/>
50 <h:outputText value="#{'34' le '34'}"/>
51 <h:outputText value="#{-5 <= 2}"/>
52 <h:outputText value="#{-5 le 2}"/>
53 <h:outputText value="#{2 <= -5}"/>
54 <h:outputText value="#{2 le -5}"/>
55 <h:outputText value="#{-5 <= -5}"/>
56 <h:outputText value="#{-5 le -5}"/>
57 <h:outputText value="#{myBean.integerProperty <= null}"/>
58 <h:outputText value="#{null le myBean.integerProperty}"/>
59
60 <!-- errors -->
61 <h:outputText value="#{5 <= true}"/>
62 <h:outputText value="#{5 le true}"/>
63 <h:outputText value="#{myBean.integerProperty <= myBean.booleanProperty}"/>
64 <h:outputText value="#{myBean.integerProperty le myBean.booleanProperty}"/>
65 <h:outputText value="#{myBean.stringArrayProperty <= myBean.booleanProperty}"/>
66 <h:outputText value="#{myBean.stringArrayProperty le myBean.booleanProperty}"/>
67 <h:outputText value="#{myBean.integerProperty <= true }"/>
68 <h:outputText value="#{myBean.integerProperty le true }"/>
69 <h:outputText value="#{myBean.booleanProperty <= true}"/>
70 <h:outputText value="#{myBean.booleanProperty le true}"/>
71 <h:outputText value="#{true <= false}"/>
72 <h:outputText value="#{true le false}"/>
cbateman0fbedc32007-05-15 22:00:39 +000073 <h:outputText value="#{myBean.coins <= myBean.colors}"/>
74 <h:outputText value="#{myBean.coins le myBean.colors}"/>
cbateman78cc5ad2006-10-20 23:34:10 +000075 </f:view>
76 </body>
77</html>