Author: sergeyhalipov
Date: 2008-02-29 07:56:39 -0500 (Fri, 29 Feb 2008)
New Revision: 6447
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
Log:
Rendering of table headers. Some optimization.
Modified:
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java
===================================================================
---
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-02-29
12:44:05 UTC (rev 6446)
+++
trunk/ui/dataTable/src/main/java/org/richfaces/renderkit/AbstractTableRenderer.java 2008-02-29
12:56:39 UTC (rev 6447)
@@ -481,7 +481,7 @@
}
protected void addInplaceInput(FacesContext context, UIComponent column,
- StringBuffer buffer) throws IOException {
+ String buffer) throws IOException {
UIInput filterValueInput = (UIInput) column
.getFacet(FILTER_INPUT_FACET_NAME);
boolean inplaceInput = true;
@@ -503,7 +503,7 @@
if (null == filterEvent || "".equals(filterEvent)) {
filterEvent = "onchange";
}
- filterValueInput.getAttributes().put(filterEvent, buffer.toString());
+ filterValueInput.getAttributes().put(filterEvent, buffer);
filterValueInput.getAttributes().put(onkeydownEvent,
"RichFaces.blurFilterInput(event);");
filterValueInput.setValue(column.getAttributes().get("filterValue"));
@@ -512,7 +512,7 @@
getUtils().encodeEndFormIfNessesary(context, column);
}
- protected StringBuffer buildAjaxFunction(FacesContext context, UIComponent column,
boolean sortable) {
+ protected String buildAjaxFunction(FacesContext context, UIComponent column, boolean
sortable) {
UIComponent table = column.getParent();
String id = table.getClientId(context);
JSFunction ajaxFunction = AjaxRendererUtils.buildAjaxFunction(table, context);
@@ -526,7 +526,7 @@
StringBuffer buffer = new StringBuffer();
ajaxFunction.appendScript(buffer);
- return buffer;
+ return buffer.toString();
}
protected class SimpleHeaderEncodeStrategy implements HeaderEncodeStrategy {
Show replies by date