Commits

Anonymous committed 5938427

- added javadoc to populateComponentHtmlId method in both Form and FormButton

Issue number: WW-769
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@2683573baa09-0c28-0410-bef9-dab3c582ae83

  • Participants
  • Parent commits 756683d

Comments (0)

Files changed (2)

src/java/com/opensymphony/webwork/components/Form.java

         }
     }
 
+    /**
+     * 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);
     	

src/java/com/opensymphony/webwork/components/FormButton.java

      *   <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) {