Hello,
I'm using code generation to generate
JSP documents and would like to be able to pass selection values to my custom select field tag as follows as opposed to dynamically building a List via scriptlets and passing the list as my "items":
<ui:select name="locked" items='${{"","Please Select"},{"true","Yes"},{"false","No"}}'/>
When I try this, I get the following stack trace. I've tried several varations of this syntax with no luck and was wondering if this is even possible or if I just haven't nailed the correct syntax yet.
As a side note, I'm using JSP 2.0 tag files as opposed to coding my tag library in
Java.
Thanks in advance!
Peter
org.apache.jasper.JasperException: /WEB-INF/forms/doctest_en-us.jspx(83,103) "${<<"","Please Select"},{"true","Yes"},{"false","No"}>>" contains invalid expression(s): javax.servlet.jsp.el.ELException: Encountered "{", expected one of [<INTEGER_LITERAL>, <FLOATING_POINT_LITERAL>, <STRING_LITERAL>, "true", "false", "null", "(", "-", "not", "!", "empty", <IDENTIFIER>]
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:83)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:402)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:236)
at org.apache.jasper.compiler.JspUtil.validateExpressions(JspUtil.java:640)
.
.
.