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 8478871
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:52:02+00:00 2026-06-10T18:52:02+00:00

I cant get myFaces (2.1.8 but same prob with 2.0) to work along with

  • 0

I cant get myFaces (2.1.8 but same prob with 2.0) to work along with RichFaces 4.2.2 on Tomee 1.1 container.
Tried googling but found nothing relevant.

A soon as richfaces tags are added to the page, the myFace JavaScript library link usually included in the 1st form of the page:

<script type="text/javascript" src="/pilot/javax.faces.resource/oamSubmit.js.xhtml?ln=org.apache.myfaces">

disappears from the rendered HTML. And consequently all “h:commandLink” links fail in the browser with a javascript error “myFaces not defined”.

here is a sample

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich">

<h:head></h:head>
<h:body>

<h:form>
<h:commandLink value="Index" action="welcome" immediate="true" />
<rich:popupPanel >
</rich:popupPanel>
</h:form>

</h:body>
</html>
  • 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-10T18:52:04+00:00Added an answer on June 10, 2026 at 6:52 pm

    Apparently Myfaces is defined in jsf.js and there is some issue around that.

    Anyways adding the following code in web.xml fixes the problem

    <context-param>
        <param-name>org.apache.myfaces.USE_MULTIPLE_JS_FILES_FOR_JSF_UNCOMPRESSED_JS</param-name>
        <param-value>true</param-value>
    </context-param>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried different ways to do this but i cant get it work. this
Cant get this script to work with my menu really have tried everything any
I'm probably doing something realy stupid but I cant get this to work: var
Hi I've literally tried everything and cant get anything to work. I'm trying to
I cant get jquery's date picker to work on my page. I have a
Probably I cant get more dumb, but seriously this is the first time I
Cant get any data to work with databinding, I have the INotify event, I
Cant get this to work can any one help. List the part number, part
I just cant get this working. I tried using the code below with onTouchEventand
I'm new to javascript and cant get this little thing to work. (all external

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.