• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

package javax.faces.component does not exist  RSS feed

 
Ranch Hand
Posts: 397
2
  • Mark post as helpful
  • send pies
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!