You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by "Jacques Le Roux (JIRA)" <ji...@apache.org> on 2013/06/11 22:15:20 UTC

[jira] [Closed] (OFBIZ-5211) Make "showDescription" of filed configurable individually

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

Jacques Le Roux closed OFBIZ-5211.
----------------------------------

       Resolution: Fixed
    Fix Version/s: SVN trunk
         Assignee: Jacques Le Roux

Thanks Leon,

Your slightly modified patch is in trunk at revision: 1491936

jleroux: I formatted the XSD documentation and used 

showDescription = "Y".equals(UtilProperties.getPropertyValue("widget", "widget.lookup.showDescription", "Y"));
instead of
showDescription = "Y".equals(UtilProperties.getPropertyValue("widget", "widget.lookup.showDescription", "N"));

Because, in widget.properties, widget.lookup.showDescription is Y by default (and I know that well, since I made this description working correctly in all cases)

                
> 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
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: SVN trunk
>
>         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