This content has been marked as final.
Show 5 replies
-
1. Re: Ajax Support won't work in my Pages
ilya_shaikovsky Mar 26, 2009 10:50 AM (in response to mdolphin)do you have RF filter in web.xml?
-
2. Re: Ajax Support won't work in my Pages
mdolphin Mar 26, 2009 11:44 AM (in response to mdolphin)OK, this was really stupid:
When I used JBOSS Tools in Eclipse to put some RichFaces GUI Elemets on the Page, my Web.xml was automatically modified in the Background. That's what have been put into web.xml<context-param> <param-name>org.richfaces.SKIN</param-name> <param-value>blueSky</param-value> </context-param> <context-param> <param-name>org.richfaces.CONTROL_SKINNING</param-name> <param-value>enable</param-value> </context-param> <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>
Thats exactly the same as shown in the RichFaces "Getting Started" Guide at http://www.jboss.org/file-access/default/members/jbossrichfaces/freezone/docs/devguide/en/html/GettingStarted.html
So, of course I thought it has to be that way. BUT: Accidentally I used the Context Menu on the Project in Eclipse (Web Projects View) and chose JBOSS Tools JSF-> Add custom capabilities->JBOSS Rich Faces 3.3
Now my web.xml was modified again, but this time the filter setting was applied this way:<context-param> <param-name>org.ajax4jsf.SKIN</param-name> <param-value>classic</param-value> </context-param> <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>
With these Settings it works now!
So the "Getting started" guide seems to be outdated as well as the automated Tooling in JBOSS Tools for Eclipse. Without this tricky context menu in Eclipse I would have never figured out was was wrong.
Regards
Peter -
3. Re: Ajax Support won't work in my Pages
ilya_shaikovsky Mar 27, 2009 7:27 AM (in response to mdolphin)both mappings are ok.. seems just deployment problem.
-
4. Re: Ajax Support won't work in my Pages
mdolphin Mar 27, 2009 3:42 PM (in response to mdolphin)I haven't really deployed yet. Just tried it out in eclipses internal browser and eclipse "run as.." ->"on server" Feature.
-
5. Re: Ajax Support won't work in my Pages
nbelaevski Mar 27, 2009 4:08 PM (in response to mdolphin)Eclipse deploys files internally. Please check if deployment folder (double click server to open properties view and look what deployment folder is used) contains actual version of web.xml with correct filter mappings.