moqui - Pass parameters in transition to default-response -
it strange when defining parameters in default-response
the parameters defined within default-response not passed target url 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 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 work if adding empty actions in transition:
<transition name="editproductfeature"> <path-parameter name="productfeatureid"/> <actions></actions> <default-response url="../feature" parameter-map="['productfeatureid':productfeatureid, 'action':'edit']"> </default-response> </transition>
Comments
Post a Comment