String
in a listbox
. I have created a new type converter StringTrimConverter
, which trims a string to the specified length. Hope, someone else may find it useful, see http://sites.google.com/site/xmedeko/code/zk-web-framework/stringtrimconverter.
3 komentáře:
Hello,
in my zk developing i had the same Converter, without the maxLength initialization via zul. Very Nice.
Could you please explain how are you passing the parameters to the Converter via the self="@{maxLength(60)}"?
Hi, check the source code, method getMaxLength() perform a lazy initialisation of the maxLength. Not very convenient, though. I have already submitted a feature request 2962571.
I have simplified the way, how to pass maxLength parameter to the converter. Check the new version.
Okomentovat