[
https://issues.apache.org/jira/browse/OFBIZ-12678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17614400#comment-17614400
]
Jacques Le Roux commented on OFBIZ-12678:
-----------------------------------------
Commit 45300fef14f453fdb25ecc6ad458b89d5e7fdaa0 in ofbiz-framework's branch
refs/heads/trunk from Florian Motteau
[https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=45300fef14]
Improved: Use FlexibleStringExpander for disabled attribute on fields
(OFBIZ-12678)
Add disabled support on all form field types
Note: information added by hand, the commit comment was not conform
> 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: Upcoming Branch
> Reporter: Florian Motteau
> Priority: Major
> Fix For: Upcoming Branch
>
> Attachments: OFBIZ-12678.patch
>
>
> 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)