You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by mm...@apache.org on 2005/10/31 03:18:00 UTC
svn commit: r329707 -
/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java
Author: mmarinschek
Date: Sun Oct 30 18:17:56 2005
New Revision: 329707
URL: http://svn.apache.org/viewcvs?rev=329707&view=rev
Log:
set default renderer type of component
Modified:
myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java
Modified: myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java?rev=329707&r1=329706&r2=329707&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java (original)
+++ myfaces/tomahawk/trunk/src/java/org/apache/myfaces/component/html/ext/HtmlDataTable.java Sun Oct 30 18:17:56 2005
@@ -92,7 +92,7 @@
log.info("Could not parse super.getClientId. forcedIdIndex will contain the rowIndex.");
return standardClientId+'_'+forcedIdIndex;
}
-
+
String parsedForcedClientId = standardClientId.substring(0, indexLast_+1)+forcedIdIndex;
return parsedForcedClientId;
@@ -784,7 +784,9 @@
//------------------ GENERATED CODE BEGIN (do not modify!) --------------------
public static final String COMPONENT_TYPE = "org.apache.myfaces.HtmlDataTable";
- private static final boolean DEFAULT_PRESERVEDATAMODEL = false;
+ public static final String DEFAULT_RENDERER_TYPE = "org.apache.myfaces.Table";
+
+ private static final boolean DEFAULT_PRESERVEDATAMODEL = false;
private static final boolean DEFAULT_PRESERVESORT = true;
private static final boolean DEFAULT_RENDEREDIFEMPTY = true;
@@ -797,11 +799,10 @@
private String _rowCountVar = null;
private String _previousRowDataVar = null;
- private String _currentColumnStyleClass = null;
-
- public HtmlDataTable()
- {
- }
+ public HtmlDataTable()
+ {
+ setRendererType(DEFAULT_RENDERER_TYPE);
+ }
public void setPreserveDataModel(boolean preserveDataModel)
{