This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 90004 - Add Ajax4JSF support
Summary: Add Ajax4JSF support
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: Facelets 1.1.x (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-24 13:02 UTC by jfurmankiewicz
Modified: 2013-02-13 10:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jfurmankiewicz 2006-11-24 13:02:27 UTC
Ajax4JSF has been all the rage recently:
https://ajax4jsf.dev.java.net/nonav/ajax/ajax-jsf/

It would be quite trivial to add support for it to Facelets.

Namely,
a) Ajax4JSF JARs need to be added or prompted for in the new web app wizard
b) add the following lines to web.xml

<filter>
          <display-name>Ajax4jsf Filter</display-name>
          <filter-name>ajax4jsf</filter-name>
          <filter-class>org.ajax4jsf.Filter</filter-class>
          </filter>
          <filter-mapping>
          <filter-name>ajax4jsf</filter-name>
          <servlet-name>Faces Servlet</servlet-name>
          <dispatcher>REQUEST</dispatcher>
          <dispatcher>FORWARD</dispatcher>
          <dispatcher>INCLUDE</dispatcher>
</filter-mapping>

c) also add this to web.xml

<context-param>
      <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
      <param-value>com.sun.facelets.FaceletViewHandler</param-value>
</context-param>

d) REMOVE the Facelets application tags in faces-config.xml

  <application>
    <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
  </application>

This would create a Facelets project with full Ajax4JSF support. 

More info here:
https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/developerGuide.html#d0e75
https://ajax4jsf.dev.java.net/nonav/documentation/ajax-documentation/developerGuide.html#d0e2464

P.S. Without the last step, you could also add full Ajax4JSF support like this
to a regular JSF project (i.e. non-Facelets)