Problem Description
In a zul, we can use <custom-attributes composerName=""/> to set a variable name for the composer used in EL. But it doesn't work in 6.0.x
Actually, I have tested it under 5.0.11 with GenericForwardComposer, it doesn't work, either.
Reproducing Step:
Run the following code.
package composer; import org.zkoss.zk.ui.select.SelectorComposer; public class MyComposer extends SelectorComposer { public String getName(){ return "testing name"; } }
<window id="win" title="custom" border="normal" apply="composer.MyComposer"> <custom-attributes composerName="mc"/> <vlayout> <label>window id prefix: ${win$composer.name}</label> <label>window attribute: ${win.attributes.composerName}</label> <label>access composer: ${mc.name}</label> </vlayout> </window>
Expected result:
3rd line should print
access composer: testing name
Actually result:
access composer:
It doesn't get composer's name attribute.