You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2006/01/10 02:19:58 UTC
svn commit: r367452 -
/myfaces/api/trunk/api/src/main/java/javax/faces/component/html/HtmlDataTable.java
Author: skitching
Date: Mon Jan 9 17:19:55 2006
New Revision: 367452
URL: http://svn.apache.org/viewcvs?rev=367452&view=rev
Log:
Add comments/javadoc only.
Modified:
myfaces/api/trunk/api/src/main/java/javax/faces/component/html/HtmlDataTable.java
Modified: myfaces/api/trunk/api/src/main/java/javax/faces/component/html/HtmlDataTable.java
URL: http://svn.apache.org/viewcvs/myfaces/api/trunk/api/src/main/java/javax/faces/component/html/HtmlDataTable.java?rev=367452&r1=367451&r2=367452&view=diff
==============================================================================
--- myfaces/api/trunk/api/src/main/java/javax/faces/component/html/HtmlDataTable.java (original)
+++ myfaces/api/trunk/api/src/main/java/javax/faces/component/html/HtmlDataTable.java Mon Jan 9 17:19:55 2006
@@ -22,6 +22,9 @@
import javax.faces.el.ValueBinding;
/**
+ * Extend standard UIData component to add support for html-specific features
+ * such as CSS style attributes and event handler scripts.
+ * <p>
* see Javadoc of <a href="http://java.sun.com/j2ee/javaserverfaces/1.1_01/docs/api/index.html">JSF Specification</a>
*
* @author Thomas Spiegl (latest modification by $Author$)
@@ -34,7 +37,13 @@
*/
public void encodeBegin(FacesContext context) throws IOException
{
+ // Ensure that the "current row" is set to "no row", so that the
+ // correct clientId is set for this component etc. User code may
+ // have left this in some other state before rendering began...
setRowIndex(-1);
+
+ // Now invoke the superclass encodeBegin, which will eventually
+ // execute the encodeBegin for the associated renderer.
super.encodeBegin(context);
}