Hello,
I've tried to solve this problem many ways, I just can't seem to find a good way around this. Thanks for any advice.
I'm using Richfaces, although, this problem also occurs in other frameworks, so I'm assuming its
JSF 1.2 specific.
What I'd like to do and what I have is one page say test.jsp, that is the app with Richfaces components. In this
app I have a very large data pagination table that is in a verbatim section draw by calling a
Java method. The
table does not use any components. What happens is, the a4j slows down tons, due to trying to render this full
table on all ajax calls, I'm not sure why JSF or the framework calls the method to redraw this part of the page
and holds it in the tree to send through ajax, but I understand using a postback check should prevent this.
So I've tried to use the post back check in 1.2:
public static boolean isPostBack() {
ResponseStateManager rsm = FacesContext.getCurrentInstance().getRenderKit().getResponseStateManager();
return rsm.isPostback(FacesContext.getCurrentInstance());
}
Inside the method that is getting called, however, FF consistently doesn't draw since this is a postback call when doing
a javascript resubmit onclicking a link in the app that is non-ajax based, although IE will seemingly randomly draw the
table. I'm not sure if this postback check is an issue with JSF or the browsers.
I'm also not sure how to get around this problem, I tried adding in code to fix this, which gets around the problem in FF but
not in IE. Just curious on how to render this table without ajax slowing down keeping the table in the tree for the view.
Thanks, I hope I explained this well, its hard to describe the issue, feel free to ask more questions on my issue etc. I'd
really like to understand the issues here and how to get around this.