-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I have following code in my zul page
<menupopup id="contextMenu">
<menuitem forEach="${customMenu}" label="${each.key}" forward="${each.value}"/>
<!--
<menuitem label="Delete" forward="onDeleteMenuItemClick"/>
-->
</menupopup>
and my custom menu is defined as a property in the spring bean def
...
<property name="customMenu">
<map>
<entry>
<key><value>Delete</value></key>
<value>onDeleteMenuItemClick</value>
</entry>
</map>
</property>
...
I get an Xel exception: Encountered EOF when it was expecting other character(s). Am I doing something wrong?
I have verified that the map entry is coming in correctly.
When I hard code it, as in the commented line above it works perfectly
looks like forward directive doesn't support full el-expression, i've posted it to feature-request. please follow this tracker.
/robbie
Asked: 2009-05-29 00:26:14 +0800
Seen: 253 times
Last updated: Jun 02 '09