| <%@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.booleanProperty && myBean.booleanProperty}"/> |
| <h:outputText value="#{myBean.booleanProperty and myBean.booleanProperty}"/> |
| <h:outputText value="#{myBean.booleanProperty && true }"/> |
| <h:outputText value="#{myBean.booleanProperty and true }"/> |
| <h:outputText value="#{'true' && myBean.booleanProperty}"}/> |
| <h:outputText value="#{'true' and myBean.booleanProperty}"}/> |
| |
| <!-- warnings --> |
| <h:outputText value="#{false && myBean.booleanProperty}"/> |
| <h:outputText value="#{false and myBean.booleanProperty}"/> |
| <h:outputText value="#{null && myBean.booleanProperty }"/> |
| <h:outputText value="#{null and myBean.booleanProperty }"/> |
| <h:outputText value="#{'notTrue' && myBean.booleanProperty}" }/> |
| |
| <h:outputText value="#{myBean.booleanProperty && false}"/> |
| <h:outputText value="#{myBean.booleanProperty and false}"/> |
| <h:outputText value="#{myBean.booleanProperty && null }"/> |
| <h:outputText value="#{myBean.booleanProperty and null}"/> |
| <h:outputText value="#{myBean.booleanProperty && 'notTrue'}" }/> |
| <h:outputText value="#{true && false}"/> |
| <h:outputText value="#{null && true}"/> |
| |
| <!-- errors --> |
| <h:outputText value="#{myBean.integerProperty && true}"/> |
| <h:outputText value="#{true && myBean.integerProperty}"/> |
| <h:outputText value="#{4 && true}/> |
| </f:view> |
| </body> |
| </html> |