Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

a4j is not defined

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I am integrating struts2 with jsf.
I have develope a simple echo.jsp in my project.
The code is as follows:



If i am running this page separately its working fine.
But i am clicking on some link and then calling struts action and from that action i am calling this jsp it is not working.


It is giving java script err "A4J is not defined".
Believe me i have tried it a lot. If there will be some configuration problems than this page should not run at all.
Please reply me if anybody has any idea.

Any suggestion.
Thanks in advance.
 
Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I just want to add something more in this post.


I have all the library files in my application because if i run that file echo.jsf single handedly it works fine.
with the url :

http://localhost:8080/apps/echo.jsf

But if i first call struts action and then call to this jsf file it appears but richfaces example does not work as it gives the js err a4j not defined. In this case the url is:

http://localhost:8080/apps/edit.action

I am also sending you my web.xml file. Have a look at this :




My container is tomcat 6 with jsf richfaces version 3.1 with struts 2.

Thanks and Regards,
 
Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My struts.xml file is as given below. I am using Struts 2 JSF Plugin 2.1.2



Thanks and Regards,
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic