Tuesday, 12 September 2017

How to use List of integer values as bean property using smaller syntax ?


BASIC USAGE
<constructor-arg index='0'>
  <list>
    <value>1</value>
    <value>2</value>
    <value>3</value>
    <value>4</value>
  </list>
</constructor-arg>



ANOTHER SHORT WAY OF DEFINING LIST VALUES
<constructor-arg index="0" 
      value="#{T(java.util.Arrays).asList(1,2,3,4,5)}" />
 

No comments:

Post a Comment

Note: only a member of this blog may post a comment.