[ 
https://issues.apache.org/jira/browse/OFBIZ-12678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17578295#comment-17578295
 ] 

Florian Motteau commented on OFBIZ-12678:
-----------------------------------------

Hi [~mbrohl] , thank you for the advice about affected/fix version.

It would have a certain cost, so I guess this could slow things down for 
screens with many form elements using these attributes. I'm not able to 
evaluate this impact (how OFBiz caches would handle it).

We did it on a client project (with the precious help of [~nmalin] ), I think 
this would be really nice to have this in trunk. My use case was on a multi 
form, I needed to disable some input for some rows.

> 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
>
>
> 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)

Reply via email to