Skip to main content
summaryrefslogtreecommitdiffstats
blob: dbbc2c720624b42900288fab9f5f957e38f2f43f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
    <f:view>
    <h1>JSP Page</h1>
    	<!--  no errors -->
    	<h:outputText value="#{myBean.stringProperty >= '3'}"/>
    	<h:outputText value="#{myBean.stringProperty ge '3'}"/>
    	<h:outputText value="#{myBean.integerProperty >= 3}"/>
    	<h:outputText value="#{myBean.integerProperty ge 3}"/>
    	<h:outputText value="#{myBean.integerProperty >= '4' }"/>
    	<h:outputText value="#{myBean.integerProperty ge '4' }"/>
     	<h:outputText value="#{myBean.comparableProperty >= myBean.collectionProperty}"/>
    	<h:outputText value="#{myBean.comparableProperty ge myBean.collectionProperty}"/>
  	    <h:outputText value="#{myBean.integerProperty >= -3}"/>
    	<h:outputText value="#{myBean.doubleProperty >= 5}"/>
    	<h:outputText value="#{5 ge myBean.bigIntegerProperty}"/>
    	<h:outputText value="#{myBean.bigDoubleProperty >= myBean.bigIntegerProperty}"/>
    	<h:outputText value="#{myBean.coins >= 'quarter'}"/>
    	<h:outputText value="#{myBean.coins ge 'quarter'}"/>
    	<h:outputText value="#{myBean.rawEnum >= 'quarter'}"/>
    	<h:outputText value="#{myBean.coinEnum ge 'quarter'}"/>
	<h:outputText value="#{myBean.rawEnum >= myBean.coins}"/>
	<h:outputText value="#{myBean.coinEnum >= myBean.colors}"/>
  	    	
		<!--  warnings -->
		<h:outputText value="#{5 >= 3}"/>
		<h:outputText value="#{5 ge 3}"/>
		<h:outputText value="#{'4' >= '34'}"/>
		<h:outputText value="#{'4' ge '34'}"/>
		<h:outputText value="#{'34' >= '34'}"/>
		<h:outputText value="#{'34' ge '34'}"/>
		<h:outputText value="#{-5 >= 2}"/>
		<h:outputText value="#{-5 ge 2}"/>
		<h:outputText value="#{2 >= -5}"/>
		<h:outputText value="#{2 ge -5}"/>
		<h:outputText value="#{-5 >= -5}"/>
		<h:outputText value="#{-5 ge -5}"/>
		<h:outputText value="#{myBean.integerProperty >= null}"/>
		<h:outputText value="#{null ge myBean.integerProperty}"/>
		
		<!-- errors -->
		<h:outputText value="#{5 >= true}"/>
		<h:outputText value="#{5 ge true}"/>
		<h:outputText value="#{myBean.integerProperty >= myBean.booleanProperty}"/>
		<h:outputText value="#{myBean.integerProperty ge myBean.booleanProperty}"/>
		<h:outputText value="#{myBean.stringArrayProperty >= myBean.booleanProperty}"/>
		<h:outputText value="#{myBean.stringArrayProperty ge myBean.booleanProperty}"/>
    	<h:outputText value="#{myBean.integerProperty >= true }"/>
    	<h:outputText value="#{myBean.integerProperty ge true }"/>
    	<h:outputText value="#{myBean.booleanProperty >= true}"/>
    	<h:outputText value="#{myBean.booleanProperty ge true}"/>
 		<h:outputText value="#{true >= false}"/>
 		<h:outputText value="#{true ge false}"/>
		<h:outputText value="#{myBean.coins >= myBean.colors}"/>
		<h:outputText value="#{myBean.coins ge myBean.colors}"/>
    </f:view>
    </body>
</html>

Back to the top