Expression Language (EL)"
m (correct highlight (via JWB)) |
|||
Line 5: | Line 5: | ||
==Overview== | ==Overview== | ||
− | Like JSP<ref>Tutorial for EL in JSP http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html</ref>, you could use Expression Language in ZUML pages. Expression Language is a scripting language. Through it, developer can write code in ZUML to access Java components (JavaBeans) easily. More than that, developer can access components in ZUML with simple and clear expression. EL can access implicit objects also. You can even import java methods to EL. Note that '''EL doesn't support "=" operator'''. Therefore, you can use EL to '''read value''', but '''not change value'''. EL also supports operators like < | + | Like JSP<ref>Tutorial for EL in JSP http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html</ref>, you could use Expression Language in ZUML pages. Expression Language is a scripting language. Through it, developer can write code in ZUML to access Java components (JavaBeans) easily. More than that, developer can access components in ZUML with simple and clear expression. EL can access implicit objects also. You can even import java methods to EL. Note that '''EL doesn't support "=" operator'''. Therefore, you can use EL to '''read value''', but '''not change value'''. EL also supports operators like <code>></code>,<code>==</code>,<code>+</code>,<code>-</code> , it can work with ZK attributes like <code>if</code> to provide sophisticated layout of components. |
− | EL expressions use the syntax < | + | EL expressions use the syntax <code>${expr}</code>. |
'''Notes''' | '''Notes''' |
Latest revision as of 10:36, 19 January 2022
This documentation is for an older version of ZK. For the latest one, please click here.
This documentation is for an older version of ZK. For the latest one, please click here.
Overview
Like JSP[1], you could use Expression Language in ZUML pages. Expression Language is a scripting language. Through it, developer can write code in ZUML to access Java components (JavaBeans) easily. More than that, developer can access components in ZUML with simple and clear expression. EL can access implicit objects also. You can even import java methods to EL. Note that EL doesn't support "=" operator. Therefore, you can use EL to read value, but not change value. EL also supports operators like >
,==
,+
,-
, it can work with ZK attributes like if
to provide sophisticated layout of components.
EL expressions use the syntax ${expr}
.
Notes
- ↑ Tutorial for EL in JSP http://java.sun.com/j2ee/1.4/docs/tutorial/doc/JSPIntro7.html