Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-6254

Minilang: type="NewMap" and type="NewList" for the Set element don't work

    Details

      Description

      In simple-methods the types "NewMap" and "NewList" for the Set element don't work unless you add <<set-if-null="true">>

        Activity

        Hide
        jacques.le.roux Jacques Le Roux added a comment - - edited

        I guess so far nobody complained because nobody used it (know it or used

         <set field="resultMap" value="${groovy: new HashMap()}"/> 

        instead)

        Fixed in
        trunk r1673859 + 1673912
        R14.12 r1673863 + 1673913
        R13.07 r1673865 + 1673914
        R12.04 r1673866 + 1673915

        Show
        jacques.le.roux Jacques Le Roux added a comment - - edited I guess so far nobody complained because nobody used it (know it or used <set field= "resultMap" value= "${groovy: new HashMap()}" /> instead) Fixed in trunk r1673859 + 1673912 R14.12 r1673863 + 1673913 R13.07 r1673865 + 1673914 R12.04 r1673866 + 1673915
        Hide
        soledad Nicolas Malin added a comment - - edited
         <set field="resultMap" value="${groovy: new HashMap()}"/> 
        

        or more easier

         <set field="resultMap" value="${groovy: [:]}"/> 
        

        But it's necessary to know groovy

        Show
        soledad Nicolas Malin added a comment - - edited <set field= "resultMap" value= "${groovy: new HashMap()}" /> or more easier <set field= "resultMap" value= "${groovy: [:]}" /> But it's necessary to know groovy
        Hide
        jacques.le.roux Jacques Le Roux added a comment -

        Indeed, still Java minded

        Show
        jacques.le.roux Jacques Le Roux added a comment - Indeed, still Java minded

          People

          • Assignee:
            jacques.le.roux Jacques Le Roux
            Reporter:
            jacques.le.roux Jacques Le Roux
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development