Skip to main content

new-instance-bean handler

This handler allows the craetion of a new business object and assign default attribute values. The value of the bean attributes is specified using multiple instances of the bean-attribute tag



Name of the business object class


EL expression that must be evaluated to true prior to handler action


EL expression that must be evaluated to false prior to handler action
bean-attribute/name Name of the attribute
bean-attribute/value EL expression with the value to assign

With the following example would create a new city within a country:

<datanode name="country">
    <finder name="cities" type="city" >
        <collection-finder collection="${instance.cities}">
        <new-instance-bean  className="City">
            <bean-attribute name="countryAbbreviation" value="${instance.abbreviation}"/>