cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dani...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel FormDefinitionBuilder.java
Date Tue, 08 Jun 2004 15:42:19 GMT
danielf     2004/06/08 08:42:19

  Modified:    src/blocks/forms/java/org/apache/cocoon/forms/formmodel
                        FormDefinitionBuilder.java
  Log:
  Added the possiblity to have an id attribute to the form widget.
  
  Revision  Changes    Path
  1.3       +2 -2      cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/FormDefinitionBuilder.java
  
  Index: FormDefinitionBuilder.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/java/org/apache/cocoon/forms/formmodel/FormDefinitionBuilder.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FormDefinitionBuilder.java	9 Mar 2004 13:08:45 -0000	1.2
  +++ FormDefinitionBuilder.java	8 Jun 2004 15:42:19 -0000	1.3
  @@ -29,7 +29,7 @@
       public WidgetDefinition buildWidgetDefinition(Element formElement) throws Exception
{
           FormDefinition formDefinition = new FormDefinition();
           setLocation(formElement, formDefinition);
  -        formDefinition.setId("");
  +        formDefinition.setId(DomHelper.getAttribute(formElement, "id", ""));
           setDisplayData(formElement, formDefinition);
           setValidators(formElement, formDefinition);
   
  
  
  

Mime
View raw message