Results 1 to 2 of 2

Thread: double "." in generated validation.xml

  1. #1
    Join Date
    Feb 2005
    Posts
    14

    Default double "." in generated validation.xml

    I'm generating Common Validators validation.xml with XDoclet tags, like
    @spring.validator type="required"

    Doing this works fine for all simple objects, and objects that have one level of sub objects, but I get strange (I think...) results whith objects with two levels of sub objects. For these objects, some double "." are created in validation.xml. An example may look something like this:

    Code:
    public class A{
      ...
    
      /**
         * @spring.validator type="required"
       */
      public void setB (B b){
        this.b = b;
       }
    }
    
    public class B{
      ...
    
      /**
         * @spring.validator type="required"
       */
      public void setC (C c){
        this.c=c;
       }
    }
    
    public class C{
      ...
    
      /**
         * @spring.validator type="required"
       */
      public void setSomeProperty (Boolean someProperty){
        this.someProperty=someProperty;
       }
    }

    This will make the generated validation.xml look like this:

    Code:
    <form name="a">
       <field property="b..c.someProprty" depends="required">
           <arg0 key="a.b..c.someProperty"/>
       </field>
     </form>
    Can somebody explain the double "." between b and c?

  2. #2
    Join Date
    Aug 2004
    Location
    Montréal, Canada
    Posts
    845

    Default

    Seems like a bug in the generator. Please post a JIRA ticket.
    Omar Irbouh

    Spring Modules Team
    http://irbouh.blogspot.com/

Similar Threads

  1. Replies: 0
    Last Post: Oct 11th, 2005, 10:04 AM
  2. Update validation.xml Programatically
    By ibibhef in forum Container
    Replies: 1
    Last Post: May 23rd, 2005, 08:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •