aspose file tools
The moose likes JSF and the fly likes quite advanced JSF question ( or not :-) ) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "quite advanced JSF question ( or not :-) )" Watch "quite advanced JSF question ( or not :-) )" New topic
Author

quite advanced JSF question ( or not :-) )

Victor Bucutea
Ranch Hand

Joined: Nov 24, 2008
Posts: 43
Hi ,


I'm trying to develop custom AJAX components, and i'm facing some problems on the JSF technology architecture . Pay attention ;) :

An action on the page launches an XMLHttpRequest to a certain URL ( .jsf suffix). My aim is to have the JSF engine process only a certain part of the JSF tree , that is the part which contains the children of the component that launched the request ( for example a tabPanel component generates an ajax request , and only that certain tabPanel needs to be processed by the JSF engine ) .


My aproach on the problem was to build a listener which would :


The thing is that new UIViewRoot will get populated - by that i mean all the previous children erased - on renderResponse phase with the JSP tags ( naturally because the engine would return the corresponding viewId ) . If I were to set an invalid viewId , e.g. a page that would not exist, than it would return a 404 page not found response.


What are your opinions on my approach , and what alternate suggestions do you have ?


Victor
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Crossposted: http://forums.sun.com/thread.jspa?threadID=5357099
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: quite advanced JSF question ( or not :-) )
 
Similar Threads
Problems using h:selectOneMenu
JSF ValueChange problems and Default method where the form submits to
why the same URL shows different page in JSF
Failing to take control of navigation.
JSF Mental Block