You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Chris Howe <cj...@yahoo.com> on 2007/03/14 21:01:58 UTC

Screen Widget: global="true" strange behavior

Does the following seem like the correct behavior?

In the main-decorator you have the following...
<set field="layoutSettings.companyName"
from-field="uiLabelMap.AccountingCompanyName" global="true"/>

in a screen that is called that is decorated by the main-decorator you
have the following:

<set field="layoutSettings.javaScripts[]" value="/images/myJS.js"/>

When you render the screen, layoutSettings.companyName is undefined.
It's as if the layoutSettings.javaScripts[] overwrote the
layoutSettings map instead of simply appending to it.  If both are
global="true", it works correctly and if both are global="false" it
works correctly.

I assumed (perhaps incorrectly) that global="true" meant that even if
the decorated screen had a layoutSettings.companyName set, the value in
the main-decorator would be used.

Thanks for any clarification.