-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hi,
I want to dynamically assign the value of the Caption's image by using EL Expressions with Choose and When conditional evaluation but not work ... where I wrong? can anyone help me pls!
below, tests I did:
1° TEST NO WORK ... UnsupportedOperationException error:
Failed to assign <image > to <Caption nUFU90> <zk switch> in native not allowed yet [11-11-04 15:48:42.397] {http://*:80-12} >>java.lang.UnsupportedOperationException: <zk switch> in native not allowed yet
<?taglib uri="/WEB-INF/tld/commons.tld" prefix="C"?> <window id="win_utente_detail" width="100%" height="100%" border="normal" closable="true" apply="my.ComposerCtrl"> <caption label="Hello"> <attribute name="image" trim="true"> <zk choose=""> <zk when="${C:UU_isCliente(win_utente_detail$composer.argIdentity)}"> <zk choose=""> <zk when="${C:UU_isAbilitato(win_utente_detail$composer.argIdentity)}">~./image/icon/user_information.png</zk> <zk>~./image/icon/user_lock.png</zk> </zk> </zk> <zk>~./image/icon/user_headset.png</zk> </zk> </attribute> </caption> </window>
<img src="%0a%09%09%09%09%0a%09%09%09%09%20%20%20%20%20%20%20%20%0a%09%09%09%09%20%20%20%20%09%0a%09%09%09%09%09%20%20%20%20~./image/icon/user_information.png%0a%09%09%09%09%09%20%20%20%20~./image/icon/user_lock.png%0a%09%09%09%09%09%09%0a%09%09%09%09%20%20%20%20%0a%09%09%09%09%20%20%20%20~./image/icon/user_headset.png%0a%09%09%09%09%0a%09%09%09" align="absmiddle">
<?taglib uri="/WEB-INF/tld/commons.tld" prefix="C"?> <window id="win_utente_detail" width="100%" height="100%" border="normal" closable="true" apply="my.ComposerCtrl"> <caption label="Hello"> <attribute name="image" trim="true"> <zk> <zk when="${C:UU_isCliente(win_utente_detail$composer.argIdentity)}"> <zk> <zk when="${C:UU_isAbilitato(win_utente_detail$composer.argIdentity)}">~./image/icon/user_information.png</zk> <zk>~./image/icon/user_lock.png</zk> </zk> </zk> <zk>~./image/icon/user_headset.png</zk> </zk> </attribute> </caption> </window>
<?taglib uri="/WEB-INF/tld/commons.tld" prefix="C"?> <window id="win_utente_detail" width="100%" height="100%" border="normal" closable="true" apply="my.ComposerCtrl"> <caption label="Hello"> <attribute name="image"> <zk> <zk when="${C:UU_isCliente(win_utente_detail$composer.argIdentity)}"> <zk> <zk when="${C:UU_isAbilitato(win_utente_detail$composer.argIdentity)}"> <attribute name="image" trim="true">~./image/icon/user_information.png</attribute> </zk> <zk> <attribute name="image" trim="true">~./image/icon/user_lock.png</attribute> </zk> </zk> </zk> <zk> <attribute name="image" trim="true">~./image/icon/user_headset.png</attribute> </zk> </zk> </attribute> </caption> </window>
hi @samchuang, thanks for your answer
maybe I've misspelled ... I would like to understand how to assign a value to the caption' s image using EL Expressions:
- Conditional Evaluation Choose and When (see)
- Special Element Attribute (see)
this is possible? how? in the examples that I posted above, where I wrong?
Best Regards
OR@ZIO
Asked: 2011-11-04 15:10:52 +0800
Seen: 297 times
Last updated: Nov 09 '11