-
FEATURED COMPONENTS
First time here? Check out the FAQ!
1 | initial version | |
Today I discovered the release-note in the freshly builds and found the Upgrade Notes I needed. As it says changing @Init annotation to @AfterCompose solved that problem.
But I found another one. I was using this code to add onSort event listener to some listheaders:
lh.addEventListener(Events.ON_SORT, new EventListener<Event>() {
public void onEvent(Event arg0) throws Exception {
Listheader lh;
lh = (Listheader)arg0.getTarget();
//Obtenemos el número de columna por el que se ordenará (está guardado
//como value de cada listheader)
numColumnaOrdenacion = lh.getValue().toString();
tipoOrdenacion = "DL";
if(((SortEvent)arg0).isAscending()){
//Something happens
}
But....since I update to the new freshly build I get this Exception:
GRAVE: >>java.lang.ClassCastException: org.zkoss.zk.ui.event.Event cannot be cast to org.zkoss.zk.ui.event.SortEvent
>> at org.sts.generales.PlantillasZul.NuevoSeguimientoSelector$3.onEvent(NuevoSeguimientoSelector.java:505)
>> at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2734)
>> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2705)
>> at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2646)
>> at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
>> at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:534)
>> at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:461)
How can I solve it????