You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by tm...@apache.org on 2006/08/13 08:55:17 UTC
svn commit: r431150 - in
/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components:
Form.java FormButton.java
Author: tmjee
Date: Sat Aug 12 23:55:16 2006
New Revision: 431150
URL: http://svn.apache.org/viewvc?rev=431150&view=rev
Log:
WW-769
- added javadoc to method populateComponentHtmlId in Form
and FormButton
Modified:
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java
struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FormButton.java
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java?rev=431150&r1=431149&r2=431150&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/Form.java Sat Aug 12 23:55:16 2006
@@ -180,6 +180,13 @@
}
}
+ /**
+ * Form component determine the its HTML element id as follows:-
+ * <ol>
+ * <li>if an 'id' attribute is specified.</li>
+ * <li>if an 'action' attribute is specified, it will be used as the id.</li>
+ * </ol>
+ */
protected void populateComponentHtmlId(Form form) {
boolean isAjax = "ajax".equalsIgnoreCase(this.theme);
Modified: struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FormButton.java
URL: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FormButton.java?rev=431150&r1=431149&r2=431150&view=diff
==============================================================================
--- struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FormButton.java (original)
+++ struts/struts2/trunk/core/src/main/java/org/apache/struts2/components/FormButton.java Sat Aug 12 23:55:16 2006
@@ -92,6 +92,7 @@
* <li>[this_component_name]</li>
* <li>[this_component_action]_[this_component_method]</li>
* <li>[this_component_method]</li>
+ * <li>[some_random_number]</li>
* </ol>
*/
protected void populateComponentHtmlId(Form form) {