Hi Konrad, Yes, this was a design decision. The point is that the deserializer can then decide what value to be returned for a missing input. But in retrospect, I think this may have been a bad call - if the user wants a default value, they can specify it on the <value> or <format> element.
I'm tempted to change this, and only call the deserializer when either the element or attribute is present or there's a default value supplied in the binding. Any comments on this possible change? - Dennis Dennis M. Sosnoski SOA and Web Services in Java Training and Consulting http://www.sosnoski.com - http://www.sosnoski.co.nz Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117 Konrad Hübner wrote: > Hi, > > is it correct that the manually provided deserializer is also called > when an optional element is nonexistent? It is then handed null as a > parameter. I would have expected that no call is executed as no > element exists to be deserialized. > > Thanks > Konrad > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > ------------------------------------------------------------------------ > > _______________________________________________ > jibx-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/jibx-users > ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ jibx-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-users
