Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

a4j is not defined  RSS feed

 
Khushwinder Chahal
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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,
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!