cbateman | 0fbedc3 | 2007-05-15 22:00:39 +0000 | [diff] [blame^] | 1 | %@page contentType="text/html"%> |
cbateman | 78cc5ad | 2006-10-20 23:34:10 +0000 | [diff] [blame] | 2 | <%@page pageEncoding="UTF-8"%> |
| 3 | <%-- |
| 4 | The taglib directive below imports the JSTL library. If you uncomment it, |
| 5 | you must also add the JSTL library to the project. The Add Library... action |
| 6 | on Libraries node in Projects view can be used to add the JSTL 1.1 library. |
| 7 | --%> |
| 8 | |
| 9 | <%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> |
| 10 | <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> |
| 11 | <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%> |
| 12 | |
| 13 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 14 | "http://www.w3.org/TR/html4/loose.dtd"> |
| 15 | |
| 16 | <html> |
| 17 | <head> |
| 18 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 19 | <title>JSP Page</title> |
| 20 | </head> |
| 21 | <body> |
| 22 | <f:view> |
| 23 | <h1>JSP Page</h1> |
| 24 | <!-- no errors --> |
| 25 | <h:outputText value="#{myBean.stringProperty <= '3'}"/> |
| 26 | <h:outputText value="#{myBean.stringProperty le '3'}"/> |
| 27 | <h:outputText value="#{myBean.integerProperty <= 3}"/> |
| 28 | <h:outputText value="#{myBean.integerProperty le 3}"/> |
| 29 | <h:outputText value="#{myBean.integerProperty <= '4' }"/> |
| 30 | <h:outputText value="#{myBean.integerProperty le '4' }"/> |
| 31 | <h:outputText value="#{myBean.comparableProperty <= myBean.collectionProperty}"/> |
| 32 | <h:outputText value="#{myBean.comparableProperty le myBean.collectionProperty}"/> |
| 33 | <h:outputText value="#{myBean.integerProperty <= -3}"/> |
| 34 | <h:outputText value="#{myBean.doubleProperty <= 5}"/> |
| 35 | <h:outputText value="#{5 le myBean.bigIntegerProperty}"/> |
| 36 | <h:outputText value="#{myBean.bigDoubleProperty <= myBean.bigIntegerProperty}"/> |
cbateman | 0fbedc3 | 2007-05-15 22:00:39 +0000 | [diff] [blame^] | 37 | <h:outputText value="#{myBean.coins <= 'quarter'}"/> |
| 38 | <h:outputText value="#{myBean.coins le 'quarter'}"/> |
| 39 | <h:outputText value="#{myBean.rawEnum <= 'quarter'}"/> |
| 40 | <h:outputText value="#{myBean.coinEnum le 'quarter'}"/> |
| 41 | <h:outputText value="#{myBean.rawEnum <= myBean.coins}"/> |
| 42 | <h:outputText value="#{myBean.coinEnum <= myBean.colors}"/> |
cbateman | 78cc5ad | 2006-10-20 23:34:10 +0000 | [diff] [blame] | 43 | |
| 44 | <!-- warnings --> |
| 45 | <h:outputText value="#{5 <= 3}"/> |
| 46 | <h:outputText value="#{5 le 3}"/> |
| 47 | <h:outputText value="#{'4' <= '34'}"/> |
| 48 | <h:outputText value="#{'4' le '34'}"/> |
| 49 | <h:outputText value="#{'34' <= '34'}"/> |
| 50 | <h:outputText value="#{'34' le '34'}"/> |
| 51 | <h:outputText value="#{-5 <= 2}"/> |
| 52 | <h:outputText value="#{-5 le 2}"/> |
| 53 | <h:outputText value="#{2 <= -5}"/> |
| 54 | <h:outputText value="#{2 le -5}"/> |
| 55 | <h:outputText value="#{-5 <= -5}"/> |
| 56 | <h:outputText value="#{-5 le -5}"/> |
| 57 | <h:outputText value="#{myBean.integerProperty <= null}"/> |
| 58 | <h:outputText value="#{null le myBean.integerProperty}"/> |
| 59 | |
| 60 | <!-- errors --> |
| 61 | <h:outputText value="#{5 <= true}"/> |
| 62 | <h:outputText value="#{5 le true}"/> |
| 63 | <h:outputText value="#{myBean.integerProperty <= myBean.booleanProperty}"/> |
| 64 | <h:outputText value="#{myBean.integerProperty le myBean.booleanProperty}"/> |
| 65 | <h:outputText value="#{myBean.stringArrayProperty <= myBean.booleanProperty}"/> |
| 66 | <h:outputText value="#{myBean.stringArrayProperty le myBean.booleanProperty}"/> |
| 67 | <h:outputText value="#{myBean.integerProperty <= true }"/> |
| 68 | <h:outputText value="#{myBean.integerProperty le true }"/> |
| 69 | <h:outputText value="#{myBean.booleanProperty <= true}"/> |
| 70 | <h:outputText value="#{myBean.booleanProperty le true}"/> |
| 71 | <h:outputText value="#{true <= false}"/> |
| 72 | <h:outputText value="#{true le false}"/> |
cbateman | 0fbedc3 | 2007-05-15 22:00:39 +0000 | [diff] [blame^] | 73 | <h:outputText value="#{myBean.coins <= myBean.colors}"/> |
| 74 | <h:outputText value="#{myBean.coins le myBean.colors}"/> |
cbateman | 78cc5ad | 2006-10-20 23:34:10 +0000 | [diff] [blame] | 75 | </f:view> |
| 76 | </body> |
| 77 | </html> |