NewList and NewMap keep giving warning for invalid type in simple-method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

NewList and NewMap keep giving warning for invalid type in simple-method

rshekhar.in
Are these deprecated from ofbiz-minilang-simplemethods ?

<set field="theList" type="NewList"/>
<set field="theMap" type="NewMap"/>

I keep getting a warning "Invalid type NewList Method" and "Invalid type NewMap Method"

I am using ofbiz 12.04 trunk
-------------------------------------------------
'There are two choices in life-Take it or leave it !'
-------------------------------------------------
Reply | Threaded
Open this post in threaded view
|

Re: NewList and NewMap keep giving warning for invalid type in simple-method

Adrian Crum-3
Yes, those values are deprecated. Mini-language supports
auto-vivification, so you can do this:

<set field="theList[]" from="foo"/>

and a List will be created automatically if it does not already exist.

-Adrian

On 9/12/2012 2:13 PM, rshekhar.in wrote:

> Are these deprecated from ofbiz-minilang-simplemethods ?
>
> <set field="theList" type="NewList"/>
> <set field="theMap" type="NewMap"/>
>
> I keep getting a warning "Invalid type NewList Method" and "Invalid type
> NewMap Method"
>
> I am using ofbiz 12.04 trunk
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/NewList-and-NewMap-keep-giving-warning-for-invalid-type-in-simple-method-tp4636243.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply | Threaded
Open this post in threaded view
|

Re: NewList and NewMap keep giving warning for invalid type in simple-method

rshekhar.in
thanks, this works for me now

<set field="newMap{}" type="Map"/>
<set field="newList[]" type="List"/>
-------------------------------------------------
'There are two choices in life-Take it or leave it !'
-------------------------------------------------