Hi, I am getting the following error message when I try to compile MyActionListener at
web page I have the following jars in my class path:
jsf-api.jar;jsf-impl.jar,standard.jar
--------------------------------------------------------------------
MyActionListener.java:4: package javax.faces.component does not
import javax.faces.component.UIComponent;
^
MyActionListener.java:5: package javax.faces.context does not e
import javax.faces.context.FacesContext;
^
MyActionListener.java:6: package javax.faces.event does not exi
import javax.faces.event.ActionEvent;
^
MyActionListener.java:7: package javax.faces.event does not exi
import javax.faces.event.ActionListener;
^
MyActionListener.java:8: package javax.faces.event does not exi
import javax.faces.event.PhaseId;
^
MyActionListener.java:9: package javax.faces.tree does not exis
import javax.faces.tree.Tree;
^
MyActionListener.java:11: cannot resolve symbol
symbol : class ActionListener
location: class jsfApp.MyActionListener
public class MyActionListener implements ActionListener {
^
MyActionListener.java:13: cannot resolve symbol
symbol : class PhaseId
location: class jsfApp.MyActionListener
public PhaseId getPhaseId() {
^
MyActionListener.java:18: cannot resolve symbol
symbol : class ActionEvent
location: class jsfApp.MyActionListener
public void processAction(ActionEvent event) {
^
MyActionListener.java:39: cannot resolve symbol
symbol : class UIComponent
location: class jsfApp.MyActionListener
private void navigateComponentTree(UIComponent component, i
^
MyActionListener.java:15: cannot resolve symbol
symbol : variable PhaseId
location: class jsfApp.MyActionListener
return PhaseId.APPLY_REQUEST_VALUES;
^
MyActionListener.java:22: cannot resolve symbol
symbol : class UIComponent
location: class jsfApp.MyActionListener
UIComponent component = event.getComponent();
^
MyActionListener.java:30: cannot resolve symbol
symbol : class FacesContext
location: class jsfApp.MyActionListener
FacesContext facesContext = FacesContext.getCurrentInst
^
MyActionListener.java:30: cannot resolve symbol
symbol : variable FacesContext
location: class jsfApp.MyActionListener
FacesContext facesContext = FacesContext.getCurrentInst
^
MyActionListener.java:31: cannot resolve symbol
symbol : class Tree
location: class jsfApp.MyActionListener
Tree tree = facesContext.getTree();
^
MyActionListener.java:32: cannot resolve symbol
symbol : class UIComponent
location: class jsfApp.MyActionListener
UIComponent root = tree.getRoot();
^
MyActionListener.java:51: cannot resolve symbol
symbol : class UIComponent
location: class jsfApp.MyActionListener
UIComponent child = (UIComponent) children.next();
^
MyActionListener.java:51: cannot resolve symbol
symbol : class UIComponent
location: class jsfApp.MyActionListener
UIComponent child = (UIComponent) children.next();
----------------------------------------------------------------------------
Best Regards
Ayub