Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7741781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:06:57+00:00 2026-06-01T09:06:57+00:00

Hi I got a simple fresh project based on MyFaces 2.0.11 with Primefaces 3.0

  • 0

Hi I got a simple fresh project based on MyFaces 2.0.11 with Primefaces 3.0 on Tomcat 6

When I’m trying to navigate to a page I’m getting Uncaught ReferenceError: jsf is not defined error which directs me to a ref in my js code jsf.ajax.addOnEvent … (which is reasonable cause I’m trying to use the jsf.js and it’s not event present I’m my page..)

And if I do view source of my page I dont the the include of the jsf.js file

Now if I add it manually like this

<h:outputScript name="jsf.js" library="javax.faces" target="head"/>

every thing works just fine… but I prefer not to include it manually , Instead I would like to know what are the reasons that can cause the lack of the jsf.js in my page

I google for a while and none of the similar case represents mine

I do have <h:head> and <h:body> My page is really simple…

Any Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:06:59+00:00Added an answer on June 1, 2026 at 9:06 am

    This script will only be auto-included whenever you use <f:ajax> in the view. If you don’t, then it won’t be auto-included.

    Just add an extra check before you call jsf.ajax.addOnEvent:

    if (typeof jsf !== 'undefined') {
        jsf.ajax.addOnEvent(someFunctionName);
    }
    

    Or, explicitly include the library by <h:outputScript> on the proper library, like as you already did.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got simple java-based ppt->swf sub-project that basically works. The open source software out
I got a simple page with a HtmlInputHidden field. I use a javascript to
I've got a simple CakePHP site (1.2) . I've got a page where you
I'm trying to make work the example from hibernate reference. I've got simple table
So I've got a simple bio type page with a series of images on
I got a simple widget that's show a label with text. What I'm trying
I got a simple question about jquery fancybox. In my recent project I have
I got a simple problem in SQLAlchemy. I have one model in a table,
I got this simple cache class setted up as a library in the Codeigniter:
I've got a simple little WPF app with a TextBox and a WebBrowser control.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.