• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

quite advanced JSF question ( or not :-) )

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Crossposted: http://forums.sun.com/thread.jspa?threadID=5357099
Please read this: http://faq.javaranch.com/java/BeForthrightWhenCrossPostingToOtherSites
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic