aspose file tools*
The moose likes JSF and the fly likes a4j is not found Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "a4j is not found" Watch "a4j is not found" New topic
Author

a4j is not found

abhijita singha
Greenhorn

Joined: Sep 07, 2010
Posts: 7
i m using rich faces 3.3.3 with jsf 1.2 and facelets 1.1.14
i m getting the a4j not found error
when using <a4j commandbutton
i think may be there is some problem with
web.xml
so here is my file
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
<context-param>
<param-name>org.richfaces.SKIN</param-name>
<param-value>blueSky</param-value>
</context-param>
<!-- Making the RichFaces skin spread to standard HTML controls -->
<context-param>
<param-name>org.richfaces.CONTROL_SKINNING</param-name>
<param-value>enable</param-value>
</context-param>
<!-- Defining and mapping the RichFaces filter -->
<filter>
<display-name>RichFaces Filter</display-name>
<filter-name>richfaces</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>richfaces</filter-name>
<servlet-name>Faces Servlet</servlet-name>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
<dispatcher>INCLUDE</dispatcher>
</filter-mapping>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>
</web-app>

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

Welcome to the JavaRanch, Abhijita!

There is a "Code" button on our message editor. You can use that to add tags to your message that make code and XML samples more readable.

I think your message is actually coming from the "xhtml" page. You have to declare the a4j namespace like this:


Customer surveys are for companies who didn't pay proper attention to begin with.
abhijita singha
Greenhorn

Joined: Sep 07, 2010
Posts: 7
yes it is from xhtml page......and i have done the name space declaration in the HTML tag itself
as i am a new bee in JSF i don't know about the composition....if you help me a little i m thankful to you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: a4j is not found