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

Leon commented on OFBIZ-5211:
-----------------------------

1. I keep "N" the default value for "widget.lookup.showDescription" since it's 
original behavior framework provides. (Jacques is right, it's not very 
consistent with the default value .xsd implies. The best solution is to discard 
global property "widget.lookup.showDescription", but it maybe cause some other 
problems)
2. Since we introduce individual "showDescription" configuration, the global 
"SHOW_DESCRIPTION" is unable to work properly. In new patch, I fix it too.
3. Show description function depends on ajax-auotocompleter, but not vice 
versa. That's why I remove the condition [options.showDescription != ""] from 
_createAjaxAutoComplete function.
                
> Make "showDescription" of <lookup> filed configurable individually
> ------------------------------------------------------------------
>
>                 Key: OFBIZ-5211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-5211
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>            Reporter: Leon
>            Priority: Minor
>         Attachments: OFBIZ-5211.patch
>
>
> For now, It's configured globally through "widget.lookup.showDescription" in 
> widget.properties. 
> In some case, we want to disable this feature for particular <lookup> filed. 
> So we try to make it enabled.
> 1. update the widget-form.xsd to add new attribute "show-description" to 
> <lookup> filed
>   * if set this attribute explicitly to true or false, then showDescription 
> feature is enabled or disabled respectively
>   * if this attribute is not set (default), then showDescription or not 
> depends on the "widget.lookup.showDescription" setting
> 2. modify ModelFormField and MacroFormRenderer to make it works

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to