You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by "rshekhar.in" <rs...@gmail.com> on 2012/09/12 15:13:36 UTC

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

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.

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

Posted by "rshekhar.in" <rs...@gmail.com>.
thanks, this works for me now

<set field="newMap{}" type="Map"/>
<set field="newList[]" type="List"/>



--
View this message in context: http://ofbiz.135035.n4.nabble.com/NewList-and-NewMap-keep-giving-warning-for-invalid-type-in-simple-method-tp4636243p4636247.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

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

Posted by Adrian Crum <ad...@sandglass-software.com>.
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.