This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes How to isolate Ajax rendered area for ui:include loaded view in richfaces 4.x Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to isolate Ajax rendered area for ui:include loaded view in richfaces 4.x" Watch "How to isolate Ajax rendered area for ui:include loaded view in richfaces 4.x" New topic
Author

How to isolate Ajax rendered area for ui:include loaded view in richfaces 4.x

Shayan Shah
Greenhorn

Joined: Aug 28, 2009
Posts: 25

Hi All,

I want to develop a web app that contains an "Menu Area" and "Active Area". That "Active Area" points to a page in the "Controller" managed bean and loads it by ajax request. The page to be loaded is set by ajax request through "A4j:Commandlink" and renders the "Active Area'. Here is the code

1. Index.xhtml


2. Menu.xhtml


3. Include1.xhtml


4. Controller.java


Now, when a page is loaded to active area that as you see contains a "a4j:commandButton" with an actionListener, if the button is clicked, instead of calling the listener method, the page is loaded again, and the when the second time the button is clicked, the page is loaded as well as the listener method is called. Which means that whole page is refreshed again and view is then set and method is called. In richfaces 3.3.x, I used to use "a4j:include" for the active area. Everything worked fine. Now in richfaces 4.x, I have to use ui:include component. 3.3.x had “a4j:region” component to isolate a region. But in 4.x its bahavious has been changed.

Now I dont know how to isolate this region to be re-rendered and the Ajax request. I want only the active are to be changed instead of the whole page to be refreshed.

Thanks
Shayan Shah
Greenhorn

Joined: Aug 28, 2009
Posts: 25

I wonder if my question is really vague Or is it that no one knows the solution???
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to isolate Ajax rendered area for ui:include loaded view in richfaces 4.x
 
Similar Threads
Navigation Problem
Why events are not fired when value changes in h:selectOneMenu? I am stuck!
JSF-Facelets Dynamic Navigation Problem
Split Pane effect with JSF 1.2, Facelets, Javascript, RichFaces
Edit or delete records resulting from search