logo       

Related Msgs: audio.musicbrai...    enbd.general/20...    ietf.idr/2002-0...    java.ant-contri...    gnu.make.genera...    qplus.devel/200...    video.freevo.cv...    os.netbsd.ports...    yellowdog.gener...    xfree86.cvs/200...    search.nutch.us...    freedesktop.xse...    programming.swi...    capabilities.ge...    telephony.pbx.a...    mail.sylpheed.c...    db.firebase.por...    boot-loaders.u-...    recreation.radi...    netbsd.bugs/200...    web.zope.plone....    user-groups.lin...   

Failure to get controlType - namespace related: msg#00068

Subject: Failure to get controlType - namespace related
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 ...
<Prev in Thread] Current Thread [Next in Thread>