blob: b866bc107d1e0926283c8996875229ea830744ce [file] [log] [blame]
%@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 le '3'}"/>
<h:outputText value="#{myBean.integerProperty <= 3}"/>
<h:outputText value="#{myBean.integerProperty le 3}"/>
<h:outputText value="#{myBean.integerProperty <= '4' }"/>
<h:outputText value="#{myBean.integerProperty le '4' }"/>
<h:outputText value="#{myBean.comparableProperty <= myBean.collectionProperty}"/>
<h:outputText value="#{myBean.comparableProperty le myBean.collectionProperty}"/>
<h:outputText value="#{myBean.integerProperty <= -3}"/>
<h:outputText value="#{myBean.doubleProperty <= 5}"/>
<h:outputText value="#{5 le myBean.bigIntegerProperty}"/>
<h:outputText value="#{myBean.bigDoubleProperty <= myBean.bigIntegerProperty}"/>
<h:outputText value="#{myBean.coins <= 'quarter'}"/>
<h:outputText value="#{myBean.coins le 'quarter'}"/>
<h:outputText value="#{myBean.rawEnum <= 'quarter'}"/>
<h:outputText value="#{myBean.coinEnum le '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 le 3}"/>
<h:outputText value="#{'4' <= '34'}"/>
<h:outputText value="#{'4' le '34'}"/>
<h:outputText value="#{'34' <= '34'}"/>
<h:outputText value="#{'34' le '34'}"/>
<h:outputText value="#{-5 <= 2}"/>
<h:outputText value="#{-5 le 2}"/>
<h:outputText value="#{2 <= -5}"/>
<h:outputText value="#{2 le -5}"/>
<h:outputText value="#{-5 <= -5}"/>
<h:outputText value="#{-5 le -5}"/>
<h:outputText value="#{myBean.integerProperty <= null}"/>
<h:outputText value="#{null le myBean.integerProperty}"/>
<!-- errors -->
<h:outputText value="#{5 <= true}"/>
<h:outputText value="#{5 le true}"/>
<h:outputText value="#{myBean.integerProperty <= myBean.booleanProperty}"/>
<h:outputText value="#{myBean.integerProperty le myBean.booleanProperty}"/>
<h:outputText value="#{myBean.stringArrayProperty <= myBean.booleanProperty}"/>
<h:outputText value="#{myBean.stringArrayProperty le myBean.booleanProperty}"/>
<h:outputText value="#{myBean.integerProperty <= true }"/>
<h:outputText value="#{myBean.integerProperty le true }"/>
<h:outputText value="#{myBean.booleanProperty <= true}"/>
<h:outputText value="#{myBean.booleanProperty le true}"/>
<h:outputText value="#{true <= false}"/>
<h:outputText value="#{true le false}"/>
<h:outputText value="#{myBean.coins <= myBean.colors}"/>
<h:outputText value="#{myBean.coins le myBean.colors}"/>
</f:view>
</body>
</html>