submission error

classic Classic list List threaded Threaded
7 messages Options
hcr
Reply | Threaded
Open this post in threaded view
|

submission error

hcr

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: submission error

Alessandro Vernet
Administrator
2008/8/18 hechengrong <[hidden email]>:
> [well, nothing :)]

I assume that your intent was not to send an empty message to the
list. Just in case you haven't already noticed :).

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
hcr
Reply | Threaded
Open this post in threaded view
|

Re: Re: submission error

hcr
 Oh, yes.
   I have a problem with xforms:submission. for example:
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ev="http://www.w3.org/2001/xml-events"
      xmlns:xforms="http://www.w3.org/2002/xforms">
    <head>
         <xforms:model>
              <xforms:instance id="data">
                  <form xmlns="">
                       <data>
                           <Person rdf:id="Person-1"/>
                       </data>
                  </form>
              </xforms:instance>
              <xforms:submission id="next" method="post" ref="instance('data')/data"
                  replace="all"/>
         </xforms:model>
    </head>
    <body>
        <xforms:trigger>
             <xforms:label></xforms:label>
             <xforms:send submission="next" ev:event="DOMActivate"/>
        </xforms:trigger>
    </body>
</html>
 
   It will receive a error when click the button. The error info is that:
Fatal error: The prefix "rdf" for attribute "rdf:id" associated with a element
type "Person" is not bound.
 
 

在2008-08-19,"Alessandro Vernet" <[hidden email]> 写道:
>2008/8/18 hechengrong 



想免费升级vip邮箱吗?快来参加喝汇源游网易活动吧!

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: Re: Re: submission error

Ryan Puddephatt-3

It’s possible the # in your namespace causes a problem, try removing it and seeing if it works. If this is the case I think this is an orbeon bug, because I’m pretty sure # is an allowed character.

 

-----------------------------------------------

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

Office: +44 (0) 20 7462 4200

Direct: +44 (0) 20 7323 6112

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7462 4242

Email: [hidden email]

Web: http://www.latentzero.com

 

From: hechengrong [mailto:[hidden email]]
Sent: 19 August 2008 08:57
To: [hidden email]
Subject: [ops-users] Re: Re: submission error

 

 Oh, yes.

   I have a problem with xforms:submission. for example:

      xmlns="http://www.w3.org/1999/xhtml"

      xmlns:ev="http://www.w3.org/2001/xml-events"

      xmlns:xforms="http://www.w3.org/2002/xforms">

    <head>

         <xforms:model>

              <xforms:instance id="data">

                  <form xmlns="">

                       <data>

                           <Person rdf:id="Person-1"/>

                       </data>

                  </form>

              </xforms:instance>

              <xforms:submission id="next" method="post" ref="instance('data')/data"

                  replace="all"/>

         </xforms:model>

    </head>

    <body>

        <xforms:trigger>

             <xforms:label></xforms:label>

             <xforms:send submission="next" ev:event="DOMActivate"/>

        </xforms:trigger>

    </body>

</html>

 

   It will receive a error when click the button. The error info is that:

Fatal error: The prefix "rdf" for attribute "rdf:id" associated with a element

type "Person" is not bound.

 

 

 

2008-08-19"Alessandro Vernet" <[hidden email]> 写道:
>2008/8/18 hechengrong 

 


想免费升级vip邮箱吗?快来参加喝汇源游网易活动吧!
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Re: submission error

Alessandro Vernet
Administrator
In reply to this post by hcr
2008/8/19 hechengrong <[hidden email]>:
>    It will receive a error when click the button. The error info is that:
> Fatal error: The prefix "rdf" for attribute "rdf:id" associated with a
> element
> type "Person" is not bound.

Mmmh... could you include the full Java stack trace for this error, as
it appears in orbeon.log?

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
hcr
Reply | Threaded
Open this post in threaded view
|

Re: RE: Re: Re: submission error

hcr
In reply to this post by Ryan Puddephatt-3
 
     I try to modify the namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns". This is always error.
     I debug the Orbeon source, find that: In XFormsModelSubmission.java:
 
     ...
     public void performDefaultAction(PipelineContext pipelineContext, XFormsEvent event) {
         ...
         // Serialize
         final byte[] messageBody;
         final String queryString;
         final String defaultMediatypeForSerialization;
         if (serialize) {
             if (overriddenSerializedData != null && !overriddenSerializedData.equals("")) {
                 // Form author set data to serialize
                 ...
             } else if (requestedSerialization.equals("application/x-www-form-urlencoded")) {
                 // Perform "application/x-www-form-urlencoded" serialization
                 ...
             } else if (requestedSerialization.equals("application/xml")) {
                 // Serialize XML to a stream of bytes
                 try {
                     final Transformer identity = TransformerUtils.getIdentityTransformer();
                     TransformerUtils.applyOutputProperties(identity, "xml", resolvedVersion, null, null,
                             resolvedEncoding, resolvedOmitxmldeclaration, resolvedStandalone,
                             resolvedIndent, 4);
                     // TODO: use cdata-section-elements
                     final ByteArrayOutputStream os = new ByteArrayOutputStream();
                     identity.transform(new DocumentSource(documentToSubmit), new StreamResult(os));
                     messageBody = os.toByteArray();

                  } catch (Exception e) {
                     throw new XFormsSubmissionException(e,
                          "xforms:submission: exception while serializing instance to XML.", "serializing instance");
                  }
                  defaultMediatypeForSerialization = "application/xml";
                  queryString = null;
             } else if (requestedSerialization.equals("multipart/related")) {
                  // TODO
                  ...
             } else if (requestedSerialization.equals("multipart/form-data")) {
                  // TODO
                  ...
             } else if (requestedSerialization.equals("application/octet-stream")) {
                  // Binary serialization
                  ...
             } else if (XMLUtils.isTextContentType(requestedSerialization)) {
                  // TODO: Text serialization
                  ...
             } else {
                  ...
             }
         } else {
             ...
         }
 
         ...
     }
     ...
 
    The problem is the red code. The "documentToSubmit" is:
 
 <data>
    <Person xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" rdf:id="Person-1"/>
 </data>
  
    But the "messageBody" is:
 <data>
    <Person rdf:id="Person-1"/>
 </data>
 
    It lose xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#". 
 

在2008-08-19,"Ryan Puddephatt" <[hidden email]> 写道:

It’s possible the # in your namespace causes a problem, try removing it and seeing if it works. If this is the case I think this is an orbeon bug, because I’m pretty sure # is an allowed character.

 

-----------------------------------------------

Ryan Puddephatt

FIX Developer

Fidessa LatentZero

1 Alfred Place

London WC1E 7EB

Office: +44 (0) 20 7462 4200

Direct: +44 (0) 20 7323 6112

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7462 4242

Email: [hidden email]

Web: http://www.latentzero.com

 

From: hechengrong [mailto:[hidden email]]
Sent: 19 August 2008 08:57
To: [hidden email]
Subject: [ops-users] Re: Re: submission error

 

 Oh, yes.

   I have a problem with xforms:submission. for example:

      xmlns="http://www.w3.org/1999/xhtml"

      xmlns:ev="http://www.w3.org/2001/xml-events"

      xmlns:xforms="http://www.w3.org/2002/xforms">

    <head>

         <xforms:model>

              <xforms:instance id="data">

                  <form xmlns="">

                       <data>

                           <Person rdf:id="Person-1"/>

                       </data>

                  </form>

              </xforms:instance>

              <xforms:submission id="next" method="post" ref="instance('data')/data"

                  replace="all"/>

         </xforms:model>

    </head>

    <body>

        <xforms:trigger>

             <xforms:label></xforms:label>

             <xforms:send submission="next" ev:event="DOMActivate"/>

        </xforms:trigger>

    </body>

</html>

 

   It will receive a error when click the button. The error info is that:

Fatal error: The prefix "rdf" for attribute "rdf:id" associated with a element

type "Person" is not bound.

 

 

 

2008-08-19"Alessandro Vernet" <[hidden email]> 写道:
>2008/8/18 hechengrong 

 


想免费升级vip邮箱吗?快来参加喝汇源游网易活动吧!
______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________


_______________________________________________________________________
The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.

_____________________________________________________________________
This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com



22元超值饭面,8.5折纯珍比萨,必胜宅急送网上点餐优惠多

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: RE: Re: Re: submission error

Alessandro Vernet
Administrator
2008/8/19 hechengrong <[hidden email]>:
>  
>      I try to modify the namespace
> "http://www.w3.org/1999/02/22-rdf-syntax-ns". This is always error.
>      I debug the Orbeon source, find that: In XFormsModelSubmission.java:
>  [...]

Alright, I see. Here is the bug for this one:

http://forge.objectweb.org/tracker/index.php?func=detail&aid=310908&group_id=168&atid=350207

Erik fixed it, so you might want to give a try to the next nightly
build. Thank you for the details about this one!

Alex
--
Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
Personal Blog: http://avernet.blogspot.com/
Twitter - http://twitter.com/avernet



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws