[jboss-dev-forums] [Design of JBossXB] - Re: Attributes problem
adrian@jboss.org
do-not-reply at jboss.com
Thu Mar 6 03:57:56 EST 2008
"adrian at jboss.org" wrote :
| From a bit of debugging, I can see that the problem is caused by the handler
| being a BuilderParticleHandler, but I fail to see where in the builder we set this on
| on a typeBinding with the exception of JBossXmlChild handlers which isn't in play here?
|
It is this place but for a different reason.
The issue is that it is an @JBossXmlGroupText
| @JBossXmlGroupText(wrapper=StringValueMetaData.class, property="value")
|
This correctly wraps the value (CDATA) in the StringValueMetaData but it doesn't
process the attributes because it uses a BuilderParticleHandler (BPH)
setup just before. Unlike the @JBossXMLClient there are no subelements for this case.
The thing I don't understand though is how to fix it? :-)
When I looked at when the attributes are passed to the BPH
the only information I have is that the parent is a MapEntry.
I'm obviously missing something or we are not setting up the parsing model
correctly for this case?
What it needs to do is process the attributes against the object returned by
the ValueHandler, i.e. the wrapped value.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4134484#4134484
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4134484
More information about the jboss-dev-forums
mailing list