• 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Problem to use PrimeFaces - no taglibrary exists for that namespace.

 
Ranch Hand
Posts: 298
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I downloaded Primefaces 8.0 and trying to use I have defined an class with datatable but I am receiving an error "Warning: This page calls for XML namespace http://primefaces.org/ui declared with prefix p but no taglibrary exists for that namespace".
pom.xml:

web.xml:

My class:

Thanks.
 
Marshal
Posts: 3457
493
Android Eclipse IDE TypeScript Redhat MicroProfile Quarkus Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Cezar Apulchro wrote:I have defined an class with datatable but I am receiving an error ...


Where/when do you see the error?

Also, your xhtml document is missing a closing tag for the <div> element.
 
Cezar Apulchro
Ranch Hand
Posts: 298
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I send only a piece of my class, in the copy </div> was left out but the div is closed ok, the error occur when I execute localhost.
 
Saloon Keeper
Posts: 23409
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your XML PI on your "class" is invalid again. You're using single quotes where you should be using double quotes:

It's not a class, though. it's a View Template.

That URL is awful. It has embedded spaces in it. Yes, it's legal, but there are all sorts of ways for careless people and software to make mistakes.

 
Cezar Apulchro
Ranch Hand
Posts: 298
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Change made but the problem is still the same.
 
Tim Holloway
Saloon Keeper
Posts: 23409
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Your POM specified JDK 7. Are you sure you want something that old?

Also, does your Maven project create a /target/ITC_Systems_ClientesMedicos/WEB-INF/lib/primefaces.jar file?
 
Cezar Apulchro
Ranch Hand
Posts: 298
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I downloaded jdk 16 and nothing is shown, no errors and no datatable results. I changed the path of JAVA_HOME to jdk 16 there is another place to be changed.
 
Cezar Apulchro
Ranch Hand
Posts: 298
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if i understand you, no, maven don't created a /target/ITC_Systems_ClientesMedicos/WEB-INF/lib/primefaces.jar file
 
Tim Holloway
Saloon Keeper
Posts: 23409
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

This says to compile based on Java 7 source code specifications and to produce classes designed to run under Java 7. What JDK version you use does not matter, since the JDK compiler will apply the rules that Maven tells it do.

And if you don't have a /target/ITC_Systems_ClientesMedicos/WEB-INF/lib/primefaces-8.0.jar file in your Maven project when you do a maven build then Maven is not building the project properly and you need to look closely at your POM.
 
Cezar Apulchro
Ranch Hand
Posts: 298
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I made two test, first I deleted plugin of endorsed dir,  second deleted endorsed dir and change source for 1.8 in plugin but problem still the same without error and datatable contents.
 
Tim Holloway
Saloon Keeper
Posts: 23409
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The endorsed directories are just a distraction. We already covered them last time you had a problem.

And what do you mean, "without error"? This thread started when you reported a message trying to display a web page.
 
Cezar Apulchro
Ranch Hand
Posts: 298
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm saying that I don't receiving error msg I receive only blank page.
 
Tim Holloway
Saloon Keeper
Posts: 23409
159
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Cezar Apulchro wrote:I'm saying that I don't receiving error msg I receive only blank page.

Well, I can certainly believe that:
 
Cezar Apulchro
Ranch Hand
Posts: 298
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, sorry by delay. I solve the problem but solution was install Eclipse and create new project with primefaces.
Thanks and best regards.
 
Always look on the bright side of life. At least this ad is really tiny:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic