Announcement Announcement Module
Collapse
No announcement yet.
double "." in generated validation.xml Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Seems like a bug in the generator. Please post a JIRA ticket.

    Comment

    Working...
    X