blob: 01e75d0ad2e5d022b83817d48c3ad0bc09463e77 [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 ne '3'}"/>
<h:outputText value="#{myBean.integerProperty != 3}"/>
<h:outputText value="#{myBean.integerProperty ne 3}"/>
<h:outputText value="#{myBean.booleanProperty != true}"/>
<h:outputText value="#{myBean.booleanProperty ne true}"/>
<h:outputText value="#{myBean.integerProperty != '4' }"/>
<h:outputText value="#{myBean.integerProperty ne '4' }"/>
<h:outputText value="#{myBean.bigDoubleProperty != 4.5}"/>
<h:outputText value="#{myBean.doubleProperty ne 67}"/>
<h:outputText value="#{myBean.bigIntegerProperty != 500}"/>
<h:outputText value="#{myBean.stringArrayProperty != '3'}"/>
<h:outputText value="#{myBean.stringArrayProperty ne myBean.listProperty}"/>
<h:outputText value="#{myBean.coins != 'dime'}" />
<h:outputText value="#{myBean.coins ne 'dime'}" />
<h:outputText value="#{myBean.colors != 'red'}"/>
<h:outputText value="#{myBean.colors ne 'red'}"/>
<h:outputText value="#{myBean.coins != myBean.stringProperty}"/>
<h:outputText value="#{myBean.coins ne myBean.stringProperty}"/>
<h:outputText value="#{myBean.rawEnum != 'red'}"/>
<h:outputText value="#{myBean.coinEnum ne myBean.coins}"/>
<!-- warnings -->
<h:outputText value="#{5 != 3}"/>
<h:outputText value="#{5 ne 3}"/>
<h:outputText value="#{true != false}"/>
<h:outputText value="#{true ne false}"/>
<h:outputText value="#{'4' != '34'}"/>
<h:outputText value="#{'4' ne '34'}"/>
<h:outputText value="#{'34' != '34'}"/>
<h:outputText value="#{'34' ne '34'}"/>
<h:outputText value="#{myBean.integerProperty != null}"/>
<h:outputText value="#{null ne myBean.integerProperty}"/>
<h:outputText value="#{5.4 != 4.3}"/>
<h:outputText value="#{true != true}"/>
<h:outputText value="#{myBean.coins != 'notAValue'}"/>
<h:outputText value="#{myBean.coins ne 'notAValue'}"/>
<h:outputText value="#{myBean.coins != 'notAValue' || myBean.coins != 'dime'}"/>
<h:outputText value="#{myBean.coins ne 'notAValue' || myBean.coins ne 'dime'}"/>
<h:outputText value="#{myBean.coins != myBean.colors}"/>
<!-- errors -->
<h:outputText value="#{5 != true}"/>
<h:outputText value="#{5 ne true}"/>
<h:outputText value="#{myBean.integerProperty != myBean.booleanProperty}"/>
<h:outputText value="#{myBean.integerProperty ne myBean.booleanProperty}"/>
<h:outputText value="#{myBean.stringArrayProperty != myBean.booleanProperty}"/>
<h:outputText value="#{myBean.booleanProperty ne myBean.stringArrayProperty}"/>
<h:outputText value="#{myBean.integerProperty != true }"/>
<h:outputText value="#{myBean.integerProperty ne true }"/>
<h:outputText value="#{false != myBean.integerProperty}"/>
</f:view>
</body>
</html>