Win a copy of Head First Android this week in the Android 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Problem using richfaces - scrollableDataTable

 
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a jsf that use richfaces scrollabeDataTable but I'm getting error "Tag Library supports namespace: http://richfaces.org/rich, but no tag was defined for name: scrollableDataTable" searching in web to solve this error I saw a contact that say to use same version of jsf api and impl, i have the same version for both. I d'ont have any idea to solve this problem.
My JSF:

My pom:

Thanks in advance.
 
Saloon Keeper
Posts: 24533
167
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 is mixing RichFaces version 3.3.4 with RichFaces version 4.5.17.Final. You need to use only one version of RichFaces in your webapp. It should be a version 4 release, since RichFaces version 3 doesn't work on newer versions of Internet Explorer.
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, after remove RichFaces version 3.3.4 problem still the same.
The log of execution:
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
For RichFaces 4.5 you need the following JARs in your POM: richfaces-core.jar, richfaces-a4j.jar, richfaces-rich.jar

You can use Maven's archetype feature to generate a model RichFaces 4 project if you like.

The authoritative documentation for RichFaces is located at: https://richfaces.jboss.org/docs
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Error in xmlns:rich after rermove Richfaces 3.3.4.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
You really should visit the RichFaces Getting Started tutorial. They have downloadable examples that work.

But I believe that this is the master POM dependency that will automatically bring in all of RichFaces:


No other RichFaces dependencies should be necessary.

As far as scrollableDataTable goes, I am pretty sure it's obsolete and no longer available. Recall that I said there were major changes between RichFaces 3 and RichFaces 4 and JBoss made no effort towards backwards compatability.

What you need is now probably part of the extendedDataTable. Check out the showcase at http://showcase.richfaces.org/richfaces/component-sample.jsf?demo=select
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This link "https://docs.jboss.org/richfaces/latest_3_3_X/en/tlddoc/rich/scrollableDataTable.html" show an tag to use scroll in datatable I set in my html and now I d'ont receiving error and nothing occurs, my page is not displayed.
My POM:

My JSF:

The lib that contain scrollebDataTable is richfaces-ui 3.3.4.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
Repeating. Do not use Richfaces 3.3. It does not work properly with modern browsers. Use Richfaces 4.5.

RichFaces 4.5 has replaced scrollableDataTable with something more powerful.
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The project now is:
- RichFaces 4.
My pom.xml:

My web.xml:

My JSF with:

Log  with error:

Thanks.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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 following lines from your web.xml file should be removed:

They are not used in RichFaces 4.
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Now I gain this error after update the web.xml without filter of richfaces.

Thanks.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
Do a "mvn clean" before building. You may have junk in your project.

Also, what version of Maven are you using?
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How I do that?
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
Do what? The "mvn clean" command is literally

mvn clean

To get the version, issue the command

mvn --version
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Result of mvn clean:clean by right click in my project.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
"mvn clean" is what you type at a command prompt. If using an IDE and it has a "clean" Maven menu option, just use it as-is.
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have executed mvn clean inside the project by line command but problem still the same.
The Maven version is 3.6.3.
Log:

Untitled-1.jpg
[Thumbnail for Untitled-1.jpg]
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
OK, going back to an earlier question: What are your "endorsed dirs"? Your POM is awfully complicated.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
Additional note on the POM. It appears that the source and target Java versions are 1.7. I'd expect you'd want something newer.
 
Marshal
Posts: 26910
82
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Tim Holloway wrote:What are your "endorsed dirs"?



There's a special directory in the JRE where you can drop jar files, and that makes those jar files automatically be part of every application's class path. You don't see it mentioned much now because as much as it's a convenient feature, it's also a great way to shoot yourself in the foot. (I say that having shot myself in the foot that way more than once.) Typically what happens is that you forget you put Jar X there, and when you get a new version you add it to your class path, and then you wonder why your code still sees the old version; there are other foot-shooting options too. My advice these days is to avoid the endorsed directory.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
Actually, it's deprecated and the primary intended use appears to have been to override the standard built-in classes which are secured. Apparently at one time it was favored to override the built-in jaxb classes, for example.

I think the last time I used the endorsed feature of Java was somewhere around 1999. It's not something I'd expect to see in a JSF project. For one thing, JSF's classes are not in the JVM, they're in the webserver (for full-stack JEE) or the WEB-INF/lib WAR directory (for partial-stack or overrides on the webapp server).

Using the endorsed facility as a cheat to avoid the classpath does, indeed sound like a great way to get into trouble.
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know my pom was automatically created when I created my project. I must remove this entries?
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
What created your POM? It seems to be designed for an outdated version of RichFaces,
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I removed the all the references to "endorsed" in my pom and this is the result:
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In my Netbeans the references of "endorsed" in the pom.xml is created when is created an Maven project.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
If NetBeans is creating RichFaces version 3 projects, you need to either update NetBeans or find a more suitable way of creating a POM.

I just did a check on one of my working POMs and there is no maven-dependency plugin in it.
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My NetBeans is version 8.2
 
Cezar Apulchro
Ranch Hand
Posts: 360
3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In your opinion which ide I must to install Eclipse or Apache Netbeans I prefer Netbeans.
 
Tim Holloway
Saloon Keeper
Posts: 24533
167
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
When people ask us which IDE to use to learn Java, our standard response is "Windows Notepad".

The problem with using an IDE when you don't know the technology is that you're using a crutch instead of learning to walk. The "Wizards" that IDEs often use to build complex systems with almost never build an app that does exactly what you want and since they built the app and you didn't, it means you didn't learn how to make an app that actually does what you want and you won't know how to troubleshoot it when it doesn't work right. If you learn the technology first, then almost any IDE will do. Netbeans, Eclipse, IntelliJ, Oracle Designer (is that one still around?), even the Emacs text editor (yes, I've used it for Java development).

I have never built a JSF webapp with NetBeans, although based on questions I've been asked over the years, I suspect that NetBeans doesn't understand JSF very well. Eclipse is what I use most often, but I'll virtually guarantee it offers less help building JSF webapps than NetBeans does.  I don't use wizards to build my JSF webapps. I steal from working projects and I've made a few macro templates so I don't have to type the same code over and over again, but for the most part, I use my IDE as a text editor, debugger, and documentation aid. The actual design I do myself.

Really, your best bet is to go to the jboss.org website and download their tutorial ZIP file, expand it and explore it. It is the definitive example for JBoss 4.5 and JSF version 2 and it's what I would be consulting if I needed to understand how to design and build for the latest JBoss. Also read their documentation. It does a pretty good job of explaining the various steps and necessary resources. I can answer questions, but the Ranch isn't designed to be a complete training course itself - especially since we don't even get paid to do this!
 
reply
    Bookmark Topic Watch Topic
  • New Topic