This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • 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:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

package javax.faces.component does not exist  RSS feed

 
Ranch Hand
Posts: 399
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
 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!