-
FEATURED COMPONENTS
First time here? Check out the FAQ!
In order to get internationalized values from properties files I'm using often the core tag "l" on my zul files.
Example: <label value="${c:l('global.username')}:"/>
Looking inside the code I found the tag "l2" that, as far as I could understand, should behave as Labels.getLabel(String, Object[]) does.
However I couldn't figure out which is the correct syntax to use this tag.
I suppose it should be somenthing like ... value="${c:l2('labelName', ???)}", but i don't know what can replace the ???.
Is it possible to have a usage sample for this tag?
I got this solution:
<zscript>
Object[] parms = new Oblect[] {value1, valuen};
</zscript>
...
<label value="${c:l2('global.username', parms)}:"/>
This soluton is not fully satisfying my requerements because I would like to enter the parms via EL (such as ${...}).
Any hint?
I have added a feature request https://sourceforge.net/tracker/?func=detail&aid=3157608&group_id=152762&atid=785194 to change the l2 tag.
nice =)
Asked: 2009-11-10 07:59:38 +0800
Seen: 681 times
Last updated: Apr 16 '15