Show Table of Contents
4.18. Using the Mapping Decoder to Bind
- Configure the Mapping Decoder as shown below to bind a different value to your object model, based on the data in your input message:
<jb:value property="name" decoder="Mapping" data="history/@warehouse"> <jb:decodeParam name="1">Dublin</jb:decodeParam> <jb:decodeParam name="2">Belfast</jb:decodeParam> <jb:decodeParam name="3">Cork</jb:decodeParam> </jb:value> - An input data value of "1" is mapped to the name property as a value of "Dublin". Likewise for values "2" and "3".

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.