I am trying to create a zk-maven project from scratch. However, when I want to add [apply="sphinxSpeechRecog"] attribute inside the "window" tag, the eclipse IDE gives me an error-hint floating dialog saying :"sphinxSpeechRecog cannot be resolved to a type". I already check that the path of my class is correct.
I have tried to clean up the project but it didn't help.
the .zul:
<?page title="sphinx" contentType="text/html;charset=UTF-8"?>
<zk xmlns="http://www.zkoss.org/2005/zul">
<window title="sphinx" border="normal" apply="sphinxSpeechRecog">
</window>
</zk>
the .java:
import org.zkoss.zk.ui.Component;
import org.zkoss.zk.ui.select.SelectorComposer;
public class sphinxSpeechRecog extends SelectorComposer<org.zkoss.zk.ui.Component>{
}
This may be caused by the fact that I'm missing the "src/main/java" package when I create a blank maven project.
Referenced solution: with printscreen pictures(step-by-step)