users@jaxb.java.net

Wrapper element splitted in different list

From: Michenux <lmichenaud_at_adeuza.fr>
Date: Sat, 31 Oct 2009 09:22:47 -0700 (PDT)

Hi,

I have a list :
<bean>
<wrapper>
     
     
   
   
   
</wrapper>
</bean>

I want to map to a different list for each kind of elements, so i did :

public class Bean {

@XmlElementWrapper(name="wrapper")
@XmlElement(name="a")
private List listA ;

@XmlElementWrapper(name="wrapper")
@XmlElement(name="b")
private List listB ;
}

My problem is that only the listA is populated and listB is null.
If i comment the field listA in the bean, the listB is well populated.

So, i think i'm doing wrong or maybe it is not possible.

Thanks for helping.


-- 
View this message in context: http://old.nabble.com/Wrapper-element-splitted-in-different-list-tp26143797p26143797.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.