[
https://issues.apache.org/jira/browse/OFBIZ-6987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15231693#comment-15231693
]
Deepak Dixit edited comment on OFBIZ-6987 at 4/8/16 8:19 AM:
-------------------------------------------------------------
Yes Jacques you are right, Its due to ModelUtil.isPotentialLocalizedField and
EntityUtil.localizedOrderBy methods introduced in OFBIZ-3311. These method
validate the orderByField with entity fields, as we use dash (-) or ASC/DESC
keyword in orderBy field to sort result in specific order and dash/ASC/DESC not
skipped/handled in isPotentialLocalizedField/localizedOrderBy method.
was (Author: deepak.dixit):
Yes Jacques you are right, Its due to ModelUtil.isPotentialLocalizedField and
EntityUtil.localizedOrderBy methods introduced in OFBIZ-3311. These method
validate the orderByField with entity fields, as we use dash (-) or ASC/DESC
keyword in orderBy field to sort result in specific order.
> Exception in Form Widget Examples
> ---------------------------------
>
> Key: OFBIZ-6987
> URL: https://issues.apache.org/jira/browse/OFBIZ-6987
> Project: OFBiz
> Issue Type: Bug
> Components: specialpurpose/example
> Affects Versions: Trunk
> Reporter: james yong
> Assignee: Pranay Pandey
> Priority: Minor
>
> I am running SVN version 1737587.
> Problem
> =======
> I navigate to https://localhost:8443/example/control/FormWidgetExamples, and
> found the following error on the page:
> {code}
> org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen
> [component://example/widget/example/FormWidgetExampleScreens.xml#FormWidgetExamples]:
> org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen
> [component://example/widget/example/CommonScreens.xml#main-decorator]:
> org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included form named
> [DropDownFieldsExampleForm] at location
> [component://example/widget/example/FormWidgetExampleForms.xml]:
> java.lang.IllegalArgumentException: The field name (or key) [-description] is
> not valid for entity [ExampleType].java.lang.IllegalArgumentException: The
> field name (or key) [-description] is not valid for entity [ExampleType].
> (Error rendering included form named [DropDownFieldsExampleForm] at location
> [component://example/widget/example/FormWidgetExampleForms.xml]:
> java.lang.IllegalArgumentException: The field name (or key) [-description] is
> not valid for entity [ExampleType].java.lang.IllegalArgumentException: The
> field name (or key) [-description] is not valid for entity [ExampleType].)
> (Error rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included form named
> [DropDownFieldsExampleForm] at location
> [component://example/widget/example/FormWidgetExampleForms.xml]:
> java.lang.IllegalArgumentException: The field name (or key) [-description] is
> not valid for entity [ExampleType].java.lang.IllegalArgumentException: The
> field name (or key) [-description] is not valid for entity [ExampleType].
> (Error rendering included form named [DropDownFieldsExampleForm] at location
> [component://example/widget/example/FormWidgetExampleForms.xml]:
> java.lang.IllegalArgumentException: The field name (or key) [-description] is
> not valid for entity [ExampleType].java.lang.IllegalArgumentException: The
> field name (or key) [-description] is not valid for entity [ExampleType].))
> (Error rendering screen
> [component://example/widget/example/CommonScreens.xml#main-decorator]:
> org.ofbiz.widget.renderer.ScreenRenderException: Error rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included form named
> [DropDownFieldsExampleForm] at location
> [component://example/widget/example/FormWidgetExampleForms.xml]:
> java.lang.IllegalArgumentException: The field name (or key) [-description] is
> not valid for entity [ExampleType].java.lang.IllegalArgumentException: The
> field name (or key) [-description] is not valid for entity [ExampleType].
> (Error rendering included form named [DropDownFieldsExampleForm] at location
> [component://example/widget/example/FormWidgetExampleForms.xml]:
> java.lang.IllegalArgumentException: The field name (or key) [-description] is
> not valid for entity [ExampleType].java.lang.IllegalArgumentException: The
> field name (or key) [-description] is not valid for entity [ExampleType].)
> (Error rendering screen
> [component://common/widget/CommonScreens.xml#GlobalDecorator]:
> java.lang.RuntimeException: Error rendering included form named
> [DropDownFieldsExampleForm] at location
> [component://example/widget/example/FormWidgetExampleForms.xml]:
> java.lang.IllegalArgumentException: The field name (or key) [-description] is
> not valid for entity [ExampleType].java.lang.IllegalArgumentException: The
> field name (or key) [-description] is not valid for entity [ExampleType].
> (Error rendering included form named [DropDownFieldsExampleForm] at location
> [component://example/widget/example/FormWidgetExampleForms.xml]:
> java.lang.IllegalArgumentException: The field name (or key) [-description] is
> not valid for entity [ExampleType].java.lang.IllegalArgumentException: The
> field name (or key) [-description] is not valid for entity [ExampleType].)))
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)