• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

package javax.faces.component does not exist

 
Ranch Hand
Posts: 399
2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic