0

It is strange when defining parameters in default-response

The parameters defined within default-response are not passed to the target url as below:

<transition name="editProductFeature">
    <path-parameter name="productFeatureId"/>
    <default-response url="../Feature">
        <parameter name="productFeatureId" from="productFeatureId"/>
        <parameter name="action" value="edit"/>
    </default-response>
</transition>

It does not work either when defining them in parameter-map:

<transition name="editProductFeature">
    <path-parameter name="productFeatureId"/>
    <default-response url="../Feature" parameter-map="['productFeatureId':productFeatureId, 'action':'edit']">
    </default-response>
</transition>

but it does work if adding an empty actions in the transition:

<transition name="editProductFeature">
    <path-parameter name="productFeatureId"/>
    <actions></actions>
    <default-response url="../Feature" parameter-map="['productFeatureId':productFeatureId, 'action':'edit']">
    </default-response>
</transition>
Jimmy Shen
  • 240
  • 1
  • 12

0 Answers0