Expression options[value] is undefined
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <OFF709B6B3.00AE1DAA-ON852574B0.00766E79-852574B0.0076F61A@tsys.com> |
I've mucked around with this for hours now and I don't know what it wants.
According to the documentation this should be a no brainer.
The FTL.
<@spring.bind "foo" />
<div>
<h2>Program Select</h2>
<@spring.formInput 'foo.name' />
<@spring.formSingleSelect "foo.progId", nameMap, ""/>
The code. (Its just strings going into the map with string keys.
Map<String,String> defaultList = delegate.getNames(id);
rVal.put("nameMap", defaultList);
The problematic instruction:
----------
==> ${options[value]?html} [on line 224, column 66 in spring.ftl]
in user-directive spring.formSingleSelect
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression options[value] is
undefined on line 224, column 68 in spring.ftl.
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. The information may also constitute a legally
privileged confidential communication. If the reader of this
message is not the intended recipient or an agent responsible for
delivering it to the intended recipient, you are hereby notified
that you have received this communication in error and that any
review, dissemination, copying, or unauthorized use of this
information, or the taking of any action in reliance on the
contents of this information is strictly prohibited. If you have
received this communication in error, please notify us immediately
by e-mail, and delete the original message. Thank you
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/