ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mohammad Kathawala (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OFBIZ-7061) Autocompletion for Compound Widget
Date Wed, 22 Jun 2016 11:06:57 GMT

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

Mohammad Kathawala commented on OFBIZ-7061:
-------------------------------------------

Getting following or similar errors on console while going through any application.


bq. [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 25. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed
to appear in element 'set'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 25. Error message: cvc-complex-type.4: Attribute 'field' must appear
on element 'set'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 28. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed
to appear in element 'now-timestamp'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 28. Error message: cvc-complex-type.4: Attribute 'field' must appear
on element 'now-timestamp'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 29. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed
to appear in element 'sequenced-id'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 29. Error message: cvc-complex-type.4: Attribute 'field' must appear
on element 'sequenced-id'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 30. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed
to appear in element 'set'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 30. Error message: cvc-complex-type.4: Attribute 'field' must appear
on element 'set'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 40. Error message: cvc-complex-type.3.2.2: Attribute 'field' is not allowed
to appear in element 'set'.
     [java] 2016-06-22 16:30:10,128 |http-nio-8443-exec-7 |UtilXml                       |E|
XmlFileLoader: File file:/home/mohammad/ofbiz-trunk/applications/commonext/minilang/SystemInfoServices.xml
process error. Line: 40. Error message: cvc-co
 

> Autocompletion for Compound Widget
> ----------------------------------
>
>                 Key: OFBIZ-7061
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7061
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: framework
>    Affects Versions: Trunk
>            Reporter: james yong
>            Assignee: Jacques Le Roux
>            Priority: Minor
>             Fix For: Upcoming Branch
>
>         Attachments: OFBIZ-7061.patch, OFBIZ-7061.patch, OFBIZ-7061.patch
>
>
> I am trying to enable auto-completion when coding compound widget.
> My plan as follows:
> 1. The following xsd will be modified to use namespace
> site-conf.xsd
> widget-form.xsd
> widget-screen.xsd
> widget-menu.xsd
> simple-methods.xsd
> For example, in site-conf.xsd, we add the following document level attribute
> {code}
> xmlns="http://ofbiz.apache.org/sc" targetNamespace="http://ofbiz.apache.org/sc"
> {code}
> 2. Import the above schema into compound-widgets.xsd so that compound widgets use only
one consolidated schema. 
> 3. Update ExampleCompoundWidgets.xml to use the new compound-widgets.xsd. For example
> {code}
> <compound-widgets xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
>         xmlns:sc="http://ofbiz.apache.org/sc"
>         xmlns:m="http://ofbiz.apache.org/m"
>         xmlns:s="http://ofbiz.apache.org/s"
>         xmlns:f="http://ofbiz.apache.org/f"
>         xmlns:sm="http://ofbiz.apache.org/sm"
>         xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/compound-widgets.xsd">
>     <site-conf>
>         <sc:request-map uri="CompoundWidgets1">
>             <sc:security https="true" auth="true"/>
>             <sc:event type="simple" invoke="CompoundWidgetsFunc" path="component://example/widget/example/ExampleCompoundWidgets.xml"/>
>             <sc:response name="success" type="view" value="CompoundWidgets1"/>
>         </sc:request-map>
>         <sc:request-map uri="CompoundWidgets2"><sc:security https="true" auth="true"/><sc:response
name="success" type="view" value="CompoundWidgets2"/></sc:request-map>
>         
>         <sc:view-map name="CompoundWidgets1" type="screen" page="component://example/widget/example/ExampleCompoundWidgets.xml#CompoundWidgets1"/>
>         <sc:view-map name="CompoundWidgets2" type="screen" page="component://example/widget/example/ExampleCompoundWidgets.xml#CompoundWidgets2"/>
>     </site-conf>
> ...... the rest
> {code}
> 4. Change java code to support reading xml with namespace (i.e. xml for compound widgets)
> 5. Update the attributes at document level for rest of the controllers, menus, forms,
simple methods and screens. Current setting will not work for schema with a namespace. For
example, in controller.xml, we will change 
> {code}
> xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/site-conf.xsd”
> {code} 
> to 
> {code}
> xmlns="http://ofbiz.apache.org/sc” xsi:schemaLocation="http://ofbiz.apache.org/dtds/site-conf-ns.xsd”>
> {code}



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

Mime
View raw message