blob: a354d2204a0f1c1c3ac92b6639d14a7be40558ce [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 eq '3'}"/>
<h:outputText value="#{myBean.integerProperty == 3}"/>
<h:outputText value="#{myBean.integerProperty eq 3}"/>
<h:outputText value="#{myBean.booleanProperty == true}"/>
<h:outputText value="#{myBean.booleanProperty eq true}"/>
<h:outputText value="#{myBean.integerProperty == '4' }"/>
<h:outputText value="#{myBean.integerProperty eq '4' }"/>
<h:outputText value="#{myBean.bigDoubleProperty == 4.5}"/>
<h:outputText value="#{myBean.doubleProperty eq 67}"/>
<h:outputText value="#{myBean.bigIntegerProperty == 500}"/>
<h:outputText value="#{myBean.stringArrayProperty == '3'}"/>
<h:outputText value="#{myBean.stringArrayProperty eq myBean.listProperty}"/>
<!-- warnings -->
<h:outputText value="#{5 == 3}"/>
<h:outputText value="#{5 eq 3}"/>
<h:outputText value="#{true == false}"/>
<h:outputText value="#{true eq false}"/>
<h:outputText value="#{'4' == '34'}"/>
<h:outputText value="#{'4' eq '34'}"/>
<h:outputText value="#{'34' == '34'}"/>
<h:outputText value="#{'34' eq '34'}"/>
<h:outputText value="#{myBean.integerProperty == null}"/>
<h:outputText value="#{null eq myBean.integerProperty}"/>
<h:outputText value="#{5.4 == 4.3}"/>
<h:outputText value="#{true == true}"/>
<!-- errors -->
<h:outputText value="#{5 == true}"/>
<h:outputText value="#{5 eq true}"/>
<h:outputText value="#{myBean.integerProperty == myBean.booleanProperty}"/>
<h:outputText value="#{myBean.integerProperty eq myBean.booleanProperty}"/>
<h:outputText value="#{myBean.stringArrayProperty == myBean.booleanProperty}"/>
<h:outputText value="#{myBean.booleanProperty eq myBean.stringArrayProperty}"/>
<h:outputText value="#{myBean.integerProperty == true }"/>
<h:outputText value="#{myBean.integerProperty eq true }"/>
<h:outputText value="#{false == myBean.integerProperty}"/>
</f:view>
</body>
</html>