There is a workaround - instead of trying to initialize the default value in the main decorator, try using the default-value attribute in the main decorator's <set> action:

<set field="productId" from-field="productId" default-value="0"/>

-Adrian

Jacek Wagner wrote:
Adrian Crum wrote:
You can't - because decorator actions are run after the decorated widget's actions.

-Adrian

Jacek Wagner wrote:
All,

I set up a global variable productId in the main decorator with a default value of 0.

In the course of various screen widgets and forms I have established a final productId which I want to keep.

How can I override the default productId variable?

Jacek

So how can I keep my final productId without passing it thru countless screen widgets, screen forms and freemarker forms?

Jacek

Reply via email to