You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Mridul Pathak (Jira)" <ji...@apache.org> on 2026/10/06 13:25:00 UTC

[jira] [Closed] (OFBIZ-13644) Hold the area id and target of the update areas of forms as expressions instead of strings and a literal flag

     [ https://issues.apache.org/jira/browse/OFBIZ-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mridul Pathak closed OFBIZ-13644.
---------------------------------
    Fix Version/s: Upcoming Branch
                   24.09.08
       Resolution: Fixed

> Hold the area id and target of the update areas of forms as expressions instead of strings and a literal flag
> -------------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-13644
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-13644
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework/widget
>    Affects Versions: Upcoming Branch, 24.09.07
>            Reporter: Mridul Pathak
>            Assignee: Mridul Pathak
>            Priority: Minor
>             Fix For: Upcoming Branch, 24.09.08
>
>
> ModelForm.UpdateArea keeps the area id and the target as strings, with a flag that tells the getters whether to evaluate them or take them literally (added by OFBIZ-13642 and OFBIZ-13643 for the values of the callback token and of the update areas created by the renderers). The evaluation of the strings is repeated each time they are read, and the flag makes it hard to see which values are expressions.
> h3. Plan
> * Keep the area id and the target as FlexibleStringExpander objects: created with getInstance for what is defined in the widgets, so that they are parsed once, and with getLiteral for the values that are already evaluated, so that they are never parsed.
> * The getters return the evaluated value, or the original text for the ones that do not take a context.
> * Backport to release24.09.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)