Hi,
I'm trying to run Schema2XForms with a schema that imports another schema
but it fails with NPE for controlType, somewhere in AbstractSchemaFormBuilder.
Debuging a bit deeper, I've found that, in case the type is not in my schema
but in the 2nd schema, controlType should be set by this code:
AbstractSchemaFormBuilder:
1227 } else if (enumValues.size() == 1) {
1228 // only one compatible type, set the controlType value
1229 // and fall through
1230 controlType = getSchema().getComplexType((String)enumValues.get(0));
1231
1232 }
Problem is that "(String)enumValues.get(0)" will return only the type name,
without namespace prefix. If I manually add "my2ndPrefix:" there, it gets
the type from castor without problems. What has to be changed so that
enumValues would have "nsPrefix:typeName" and not only "typeName"??
Tks,
Diego
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
|
Try Searching:
servers, voip, java, networking, microsoft ...
|
|
|
|