Author: dmorozov
Date: 2007-06-14 10:57:46 -0400 (Thu, 14 Jun 2007)
New Revision: 1185
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
Log:
Reload whole grid control by ajax request
Modified:
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java
===================================================================
---
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-06-14
14:33:59 UTC (rev 1184)
+++
trunk/sandbox/scrollable-grid/src/main/java/org/richfaces/renderkit/html/ScrollableGridBaseRenderer.java 2007-06-14
14:57:46 UTC (rev 1185)
@@ -638,9 +638,7 @@
public void encodeChildren(FacesContext context, UIComponent component
) throws IOException {
- AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
-
- if(ajaxContext.isAjaxRequest() && onlyPartialUpdateNeeded(component)){
+ if(onlyPartialUpdateNeeded(component)){
renderAjaxChildren(context, component);
}else{
super.encodeChildren(context, component);
@@ -655,9 +653,7 @@
setUpState(context, grid);
}
- AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
-
- if(!ajaxContext.isAjaxRequest() && !onlyPartialUpdateNeeded(component)){
+ if(!onlyPartialUpdateNeeded(component)){
super.encodeBegin(context, component);
}
}
@@ -666,9 +662,7 @@
if(component instanceof UIScrollableGrid){
- AjaxContext ajaxContext = AjaxContext.getCurrentInstance();
-
- if(!ajaxContext.isAjaxRequest() && !onlyPartialUpdateNeeded(component)){
+ if(!onlyPartialUpdateNeeded(component)){
super.encodeEnd(context, component);
}
}
Show replies by date