I've changed my XML structure to be simplier. It doesn't need 
backFillReferences antmore and I can use a IdRefDefMapper thak works 
fine as attribute ref.

Thanks anyway for help !

Nicolas De Loof a écrit :
> I tried this but the unmarshalling fails. My backfillreference is never 
> resolved.
>
> denis queffeulou a écrit :
>   
>> you should use
>> style="attribute" for the target value
>>
>>   
>>     
>>> This is what my current binding uses, and it produces an element in the 
>>> XML. I'd like to render my reference as an attribute.
>>>
>>> <mapping name="reference"
>>>    <structure field="target" name="target"
>>>               marshaller="....TableIdRef"
>>>               unmarshaller="....TableIdRef"/>
>>>  
>>> generates :
>>>
>>> <reference>
>>>     <target ref="ID"/>
>>> </reference
>>>
>>> I'd like to get <reference target="ID"/>
>>>
>>> Nico.
>>>
>>> Kees de Kooter a écrit :
>>>  
>>>
>>>     
>>>       
>>>>> It seems the marshaller/unmarshaller attributes are not allowed on 
>>>>> <value> element. Only serializer/deserializer can be set, but I can't 
>>>>> register a backFillReference from a serializer as it doesn't have access 
>>>>> to the UnmarshallingContext.
>>>>>
>>>>>    
>>>>>      
>>>>>
>>>>>         
>>>>>           
>>>> You can use a structure tag instead of a value tag. Here is an example
>>>> that works for me:
>>>>
>>>>    <mapping name="P"
>>>>        class="nl...P">
>>>>        <structure name="x"
>>>>            marshaller="nl...support.LiteralMarshaller"
>>>>            unmarshaller="nl...support.LiteralMarshaller"
>>>>            get-method="getX"
>>>>            set-method="setX"/>
>>>>        <value name="y" field="y"/>
>>>>        <value name="z" field="z"/>
>>>>    </mapping>
>>>>
>>>> hth
>>>> Kees
>>>>
>>>> -------------------------------------------------------------------------
>>>> Using Tomcat but need to do more? Need to support web services, security?
>>>> Get stuff done quickly with pre-integrated technology to make your job 
>>>> easier
>>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>>> _______________________________________________
>>>> jibx-users mailing list
>>>> jibx-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>>>
>>>>  
>>>>    
>>>>
>>>>       
>>>>         
>>> This message contains information that may be privileged or confidential 
>>> and is the property of the Capgemini Group. It is intended only for the 
>>> person to whom it is addressed. If you are not the intended recipient,  you 
>>> are not authorized to read, print, retain, copy, disseminate,  distribute, 
>>> or use this message or any part thereof. If you receive this  message in 
>>> error, please notify the sender immediately and delete all  copies of this 
>>> message.
>>>
>>>
>>> -------------------------------------------------------------------------
>>> Using Tomcat but need to do more? Need to support web services, security?
>>> Get stuff done quickly with pre-integrated technology to make your job 
>>> easier
>>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>>> _______________________________________________
>>> jibx-users mailing list
>>> jibx-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>>
>>>
>>>  
>>>
>>>     
>>>       
>> -------------------------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services, security?
>> Get stuff done quickly with pre-integrated technology to make your job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> jibx-users mailing list
>> jibx-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jibx-users
>>
>>   
>>     
>
> This message contains information that may be privileged or confidential and 
> is the property of the Capgemini Group. It is intended only for the person to 
> whom it is addressed. If you are not the intended recipient,  you are not 
> authorized to read, print, retain, copy, disseminate,  distribute, or use 
> this message or any part thereof. If you receive this  message in error, 
> please notify the sender immediately and delete all  copies of this message.
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> jibx-users mailing list
> jibx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jibx-users
>
>   

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to