EL Expressions"
From Documentation
(Created page with '{{ZUMLReferencePageHeader}} =Version History= Last Update : {{REVISIONYEAR}}/{{REVISIONMONTH}}/{{REVISIONDAY}} {| border='1px' | width="100%" ! Version !! Date !! Content |- | &…') |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ZUMLReferencePageHeader}} | {{ZUMLReferencePageHeader}} | ||
+ | |||
+ | The default evaluator for EL expressions are derived from [http://commons.apache.org/el/ Apache Commons EL]. Thus, its funcationality is the same as JSP 2.0's EL expressions<ref>Notice that the package names are all changed, and the dependency of JSP EL is removed, so it is OK to run under any Web server without any conflict</ref>. | ||
+ | |||
+ | If you prefer a more powerful EL evaluator, such as MVEL, OGNL<ref>Both MVEL and OGNL are supported in ZK EE.</ref> or your own implementation, you could specify it with the [[ZUML Reference/ZUML/Processing Instructions/evaluator|evaluator directive]]. For example, | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <?evaluator name="mvel" | ||
+ | import="org.zkoss.zul.Datebox,org.zkoss.zul.Combobox"?> | ||
+ | |||
+ | <window id="w" title="MVEL Demo"> | ||
+ | You see a textbox appended with MVEL: | ||
+ | ${new Datebox().setParent(w)} | ||
+ | Another example: | ||
+ | ${new org.zkoss.zul.Textbox().setParent(w)} | ||
+ | Another: | ||
+ | ${new Combobox().setParent(w)} | ||
+ | </window> | ||
+ | </source> | ||
+ | |||
+ | <blockquote> | ||
+ | ---- | ||
+ | <references/> | ||
+ | </blockquote> | ||
=Version History= | =Version History= | ||
− | + | {{LastUpdated}} | |
{| border='1px' | width="100%" | {| border='1px' | width="100%" | ||
! Version !! Date !! Content | ! Version !! Date !! Content |
Latest revision as of 07:05, 3 August 2011
The default evaluator for EL expressions are derived from Apache Commons EL. Thus, its funcationality is the same as JSP 2.0's EL expressions[1].
If you prefer a more powerful EL evaluator, such as MVEL, OGNL[2] or your own implementation, you could specify it with the evaluator directive. For example,
<?evaluator name="mvel"
import="org.zkoss.zul.Datebox,org.zkoss.zul.Combobox"?>
<window id="w" title="MVEL Demo">
You see a textbox appended with MVEL:
${new Datebox().setParent(w)}
Another example:
${new org.zkoss.zul.Textbox().setParent(w)}
Another:
${new Combobox().setParent(w)}
</window>
Version History
Version | Date | Content |
---|---|---|