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

[jira] [Assigned] (OFBIZ-12678) Form element: Use FlexibleStringExpander for "disabled" and "read-only" attribute

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

Jacques Le Roux reassigned OFBIZ-12678:
---------------------------------------

    Assignee: Jacques Le Roux

> Form element: Use FlexibleStringExpander for "disabled" and "read-only" attribute
> ---------------------------------------------------------------------------------
>
>                 Key: OFBIZ-12678
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12678
>             Project: OFBiz
>          Issue Type: Improvement
>    Affects Versions: 18.12.05
>            Reporter: Florian Motteau
>            Assignee: Jacques Le Roux
>            Priority: Major
>
> For now, "disabled" and "read-only" attribute types on form elements (text, check, textarea...) is "boolean".
> It would be nice to be able to define their values with an evaluated expression :
> {code:java}
> <text disabled="${someVariable > 4 || someOtherVariable}" />{code}
> This means switching to a string type for these attributes, and use a FlexibleStringExpander in the rendering process.
> There may be more attributes that would benefit from this.



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