-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Quick fix => copy class, past it in your project (same FQN) and alter the startsWidth to contains.
Good fix =>
ZK should update this line :
s.toLowerCase(java.util.Locale.ENGLISH).startsWith(prefix)
To :
match(s,prefix)
where method match:
protected boolean match(String s, String prefix) {
return s.toLowerCase(java.util.Locale.ENGLISH).startsWith(prefix);
}
Advantage is when subclassing this class => you can override the match method and implement your own one. (I'll notify ZK of this topic)
With the subclass you can use the chosenbox like this :
<chosenbox use="my.path.MyChosenbox" ... />
Greetz chill.
2 | No.2 Revision |
Quick fix => copy class, past it in your project (same FQN) and alter the startsWidth to contains.
Good fix =>
ZK should update think about updating this line :
s.toLowerCase(java.util.Locale.ENGLISH).startsWith(prefix)
To :
match(s,prefix)
where method match:
protected boolean match(String s, String prefix) {
return s.toLowerCase(java.util.Locale.ENGLISH).startsWith(prefix);
}
Advantage is when subclassing this class => you can override the match method and implement your own one. (I'll notify ZK of this topic)
With the subclass you can use the chosenbox like this :
<chosenbox use="my.path.MyChosenbox" ... />
Greetz chill.