[jira] [Commented] (OFBIZ-8203) Attribute 'value-field' must appear on element 'entity-one'

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Commented] (OFBIZ-8203) Attribute 'value-field' must appear on element 'entity-one'

Nicolas Malin (Jira)

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

Jacques Le Roux commented on OFBIZ-8203:
----------------------------------------

Thanks Florian, I confirm this behaviour. Since this works, now there are 2 possibilities.

* We fix all the existing cases by adding missing value-field values
* We no longer make the value-field attribute required and document this possibility in the XSD

Both solutions are easy and can be done one after the other. I'd prefer the 2nd because having a default value is always welcome (conventions over configuration). But because of consistency, I'd have to check that entity-one in Minilang behaves the same. If it does not then there are again 2 possibilities.

* We only fix all the existing cases by adding missing value-field values in widgets actions
* After doing the 2nd point above we also make the value-field attribute no longer required and document this possibility in the XSD.

Since I don't know what doing the same in Minilang entails. I'll simply doing the 1s point and will ask the community what they think about it.


> Attribute 'value-field' must appear on element 'entity-one'
> -----------------------------------------------------------
>
>                 Key: OFBIZ-8203
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-8203
>             Project: OFBiz
>          Issue Type: Bug
>          Components: content, humanres
>    Affects Versions: Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>
> I have found 4 such issues:
> {code}
> XmlFileLoader: File file:/C:/projectASF-Mars/ofbiz/applications/content/widget/content/ContentForms.xml process error. Line: 235. Error message: cvc-complex-type.4: Attribute 'value-field' must appear on element 'entity-one'.
> XmlFileLoader: File file:/C:/projectASF-Mars/ofbiz/applications/content/widget/contentsetup/ContentSetupForms.xml process error. Line: 217. Error message: cvc-complex-type.4: Attribute 'value-field' must appear on element 'entity-one'.
> XmlFileLoader: File file:/C:/projectASF-Mars/ofbiz/applications/humanres/widget/forms/EmploymentAppForms.xml process error. Line: 27. Error message: cvc-complex-type.4: Attribute 'value-field' must appear on element 'entity-one'.
> XmlFileLoader: File file:/C:/projectASF-Mars/ofbiz/applications/humanres/widget/forms/PayGradeForms.xml process error. Line: 65. Error message: cvc-complex-type.4: Attribute 'value-field' must appear on element 'entity-one'.h
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)