PDA

View Full Version : double "." in generated validation.xml


jo
Oct 3rd, 2005, 04:02 PM
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:

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:

<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?

irbouho
Oct 25th, 2005, 10:20 PM
Seems like a bug in the generator. Please post a JIRA ticket.