• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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,
 
WARNING! Do not activate jet boots indoors or you will see a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic