submission problem

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

submission problem

tayjack
Hi,

Below is my source, when xforms-ready, instance customer is empty.

When I fill http://localhost:8888/orbeon/purchase-order/customer directly in browser, console show me XML which select from database (I enable debug), but nothing in browser.

Is something wrong with my code?

view.xhtml

  <xforms:instance id="customer">
    <dummy xmlns="" />
  </xforms:instance>

  <xforms:submission id="customer-service" resource="http://localhost:8888/orbeon/purchase-order/customer" replace="instance" instance="customer" method="get" encoding="utf-8" version="1.0" />
  <xforms:send ev:event="xforms-ready" submission="customer-service" />

page-flow.xml

<config xmlns="http://www.orbeon.com/oxf/controller">
  <page path-info="/purchase-order/" view="view.xhtml" />
  <page path-info="/purchase-order/customer" model="customer-service.xpl" />
  <epilogue url="oxf:/config/epilogue.xpl"/>
</config>

customer-service.xpl

<p:config xmlns:oxf="http://www.orbeon.com/oxf/processors"
          xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:sql="http://orbeon.org/oxf/xml/sql">

  <p:param type="output" name="data" />

  <p:processor name="oxf:sql">
    <p:input name="datasource" href="datasource.xml" />
    <p:input name="config">
      <sql:config>
        <customers>
          <sql:connection>
            <sql:execute>
              <sql:query>select * from customer</sql:query>
              <sql:result-set>
                <sql:row-iterator>
                  <customer>
                    <sql:get-columns />
                  </customer>
                </sql:row-iterator>
              </sql:result-set>
              <sql:no-results>
                <customer>
                  none
                </customer>
              </sql:no-results>
            </sql:execute>
          </sql:connection>
        </customers>
      </sql:config>
    </p:input>
    <p:output name="data" ref="data" debug="true" />
  </p:processor>

</p:config>

Thank you very much,

Jack





--
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 problem

Ryan Puddephatt-3

Do you authentication on your server?

 

Try changing your @resource on the xforms:submission to be relative rather than absolute in this case @resource=”customer”

 

Also your page flow entry for customer should have @view not @model

 

Thanks

 

Ryan

 

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

Ryan Puddephatt

Connectivity Developer

Fidessa LatentZero

1 Old Jewry

London EC2R 8DN

Office: +44 (0) 20 7105 1000

Direct: +44 (0) 20 7105 1821

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7105 1818

Email: [hidden email]

Web: http://www.latentzero.com

 

From: penguintj [mailto:[hidden email]]
Sent: 06 January 2009 08:27
To: [hidden email]
Subject: [ops-users] submission problem

 

Hi,

Below is my source, when xforms-ready, instance customer is empty.

When I fill http://localhost:8888/orbeon/purchase-order/customer directly in browser, console show me XML which select from database (I enable debug), but nothing in browser.

Is something wrong with my code?

view.xhtml

  <xforms:instance id="customer">
    <dummy xmlns="" />
  </xforms:instance>

  <xforms:submission id="customer-service" resource="http://localhost:8888/orbeon/purchase-order/customer" replace="instance" instance="customer" method="get" encoding="utf-8" version="1.0" />
  <xforms:send ev:event="xforms-ready" submission="customer-service" />

page-flow.xml

<config xmlns="http://www.orbeon.com/oxf/controller">
  <page path-info="/purchase-order/" view="view.xhtml" />
  <page path-info="/purchase-order/customer" model="customer-service.xpl" />
  <epilogue url="oxf:/config/epilogue.xpl"/>
</config>

customer-service.xpl

<p:config xmlns:oxf="http://www.orbeon.com/oxf/processors"
          xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:sql="http://orbeon.org/oxf/xml/sql">

  <p:param type="output" name="data" />

  <p:processor name="oxf:sql">
    <p:input name="datasource" href="datasource.xml" />
    <p:input name="config">
      <sql:config>
        <customers>
          <sql:connection>
            <sql:execute>
              <sql:query>select * from customer</sql:query>
              <sql:result-set>
                <sql:row-iterator>
                  <customer>
                    <sql:get-columns />
                  </customer>
                </sql:row-iterator>
              </sql:result-set>
              <sql:no-results>
                <customer>
                  none
                </customer>
              </sql:no-results>
            </sql:execute>
          </sql:connection>
        </customers>
      </sql:config>
    </p:input>
    <p:output name="data" ref="data" debug="true" />
  </p:processor>

</p:config>

Thank you very much,

Jack




______________________________________________________________________
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: submission problem

tayjack
I try it but don't effect!

Thank you anyway

Does somebody have another suggestion?

Jack

-----Original Message-----
From: Ryan Puddephatt <[hidden email]>
Reply-to: [hidden email]
To: [hidden email]
Subject: [ops-users] RE: submission problem
Date: Tue, 6 Jan 2009 09:47:10 -0000

Do you authentication on your server?

 

Try changing your @resource on the xforms:submission to be relative
rather than absolute in this case @resource=”customer”

 

Also your page flow entry for customer should have @view not @model

 

Thanks

 

Ryan

 

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

Ryan Puddephatt

Connectivity Developer

Fidessa LatentZero

1 Old Jewry

London EC2R 8DN

Office: +44 (0) 20 7105 1000

Direct: +44 (0) 20 7105 1821

Blackberry: +44 (0) 79 8539 2458

Fax: +44 (0) 20 7105 1818

Email: [hidden email]

Web: http://www.latentzero.com


 

From: penguintj [mailto:[hidden email]]
Sent: 06 January 2009 08:27
To: [hidden email]
Subject: [ops-users] submission problem


 

Hi,

Below is my source, when xforms-ready, instance customer is empty.

When I fill http://localhost:8888/orbeon/purchase-order/customer
directly in browser, console show me XML which select from database (I
enable debug), but nothing in browser.

Is something wrong with my code?

view.xhtml

  <xforms:instance id="customer">
    <dummy xmlns="" />
  </xforms:instance>

  <xforms:submission id="customer-service"
resource="http://localhost:8888/orbeon/purchase-order/customer"
replace="instance" instance="customer" method="get" encoding="utf-8"
version="1.0" />
  <xforms:send ev:event="xforms-ready" submission="customer-service" />

page-flow.xml

<config xmlns="http://www.orbeon.com/oxf/controller">
  <page path-info="/purchase-order/" view="view.xhtml" />
  <page path-info="/purchase-order/customer"
model="customer-service.xpl" />
  <epilogue url="oxf:/config/epilogue.xpl"/>
</config>

customer-service.xpl

<p:config xmlns:oxf="http://www.orbeon.com/oxf/processors"
          xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:sql="http://orbeon.org/oxf/xml/sql">

  <p:param type="output" name="data" />

  <p:processor name="oxf:sql">
    <p:input name="datasource" href="datasource.xml" />
    <p:input name="config">
      <sql:config>
        <customers>
          <sql:connection>
            <sql:execute>
              <sql:query>select * from customer</sql:query>
              <sql:result-set>
                <sql:row-iterator>
                  <customer>
                    <sql:get-columns />
                  </customer>
                </sql:row-iterator>
              </sql:result-set>
              <sql:no-results>
                <customer>
                  none
                </customer>
              </sql:no-results>
            </sql:execute>
          </sql:connection>
        </customers>
      </sql:config>
    </p:input>
    <p:output name="data" ref="data" debug="true" />
  </p:processor>

</p:config>

Thank you very much,

Jack




______________________________________________________________________
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
plain text document attachment (message-footer.txt)
--
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



--
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: submission problem

Alessandro Vernet
Administrator
Jack,

I suggest you:

* Use the XML inspector in your XForms so you can see what the state  
of your instances are.
* Add some debug to your XPL to see if it is called and what it returns.
* Use a tool (such as TCPmon) to see what goes between your XForms and  
your service.

I hope this helps,

Alex

On Jan 6, 2009, at 2:11 PM, penguintj <[hidden email]> wrote:

> I try it but don't effect!
>
> Thank you anyway
>
> Does somebody have another suggestion?
>
> Jack
>
> -----Original Message-----
> From: Ryan Puddephatt <[hidden email]>
> Reply-to: [hidden email]
> To: [hidden email]
> Subject: [ops-users] RE: submission problem
> Date: Tue, 6 Jan 2009 09:47:10 -0000
>
> Do you authentication on your server?
>
>
>
> Try changing your @resource on the xforms:submission to be relative
> rather than absolute in this case @resource=”customer”
>
>
>
> Also your page flow entry for customer should have @view not @model
>
>
>
> Thanks
>
>
>
> Ryan
>
>
>
> -----------------------------------------------
>
> Ryan Puddephatt
>
> Connectivity Developer
>
> Fidessa LatentZero
>
> 1 Old Jewry
>
> London EC2R 8DN
>
> Office: +44 (0) 20 7105 1000
>
> Direct: +44 (0) 20 7105 1821
>
> Blackberry: +44 (0) 79 8539 2458
>
> Fax: +44 (0) 20 7105 1818
>
> Email: [hidden email]
>
> Web: http://www.latentzero.com
>
>
>
>
> From: penguintj [mailto:[hidden email]]
> Sent: 06 January 2009 08:27
> To: [hidden email]
> Subject: [ops-users] submission problem
>
>
>
>
> Hi,
>
> Below is my source, when xforms-ready, instance customer is empty.
>
> When I fill http://localhost:8888/orbeon/purchase-order/customer
> directly in browser, console show me XML which select from database (I
> enable debug), but nothing in browser.
>
> Is something wrong with my code?
>
> view.xhtml
>
>  <xforms:instance id="customer">
>    <dummy xmlns="" />
>  </xforms:instance>
>
>  <xforms:submission id="customer-service"
> resource="http://localhost:8888/orbeon/purchase-order/customer"
> replace="instance" instance="customer" method="get" encoding="utf-8"
> version="1.0" />
>  <xforms:send ev:event="xforms-ready" submission="customer-service" />
>
> page-flow.xml
>
> <config xmlns="http://www.orbeon.com/oxf/controller">
>  <page path-info="/purchase-order/" view="view.xhtml" />
>  <page path-info="/purchase-order/customer"
> model="customer-service.xpl" />
>  <epilogue url="oxf:/config/epilogue.xpl"/>
> </config>
>
> customer-service.xpl
>
> <p:config xmlns:oxf="http://www.orbeon.com/oxf/processors"
>          xmlns:p="http://www.orbeon.com/oxf/pipeline"
>          xmlns:sql="http://orbeon.org/oxf/xml/sql">
>
>  <p:param type="output" name="data" />
>
>  <p:processor name="oxf:sql">
>    <p:input name="datasource" href="datasource.xml" />
>    <p:input name="config">
>      <sql:config>
>        <customers>
>          <sql:connection>
>            <sql:execute>
>              <sql:query>select * from customer</sql:query>
>              <sql:result-set>
>                <sql:row-iterator>
>                  <customer>
>                    <sql:get-columns />
>                  </customer>
>                </sql:row-iterator>
>              </sql:result-set>
>              <sql:no-results>
>                <customer>
>                  none
>                </customer>
>              </sql:no-results>
>            </sql:execute>
>          </sql:connection>
>        </customers>
>      </sql:config>
>    </p:input>
>    <p:output name="data" ref="data" debug="true" />
>  </p:processor>
>
> </p:config>
>
> Thank you very much,
>
> Jack
>
>
>
>
> ______________________________________________________________________
> 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
> plain text document attachment (message-footer.txt)
> --
> 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
>
>
> --
> 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


--
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 problem

tayjack
Alex,

Thank you for your suggestion.

* Use the XML inspector in your XForms so you can see what the state
of your instances are.

- I already use XML inspector but instance is empty.

* Add some debug to your XPL to see if it is called and what it returns.

- I enable debug like this <p:output name="data" ref="data" debug="true" /> and console actually show me some XML from database.
  This mean my request is success! But why my instance is empty? I have no idea!
Jack
-----Original Message-----
From: Alessandro Vernet <[hidden email]>
Reply-to: [hidden email]
To: [hidden email] <[hidden email]>
Subject: [ops-users] Re: Re: submission problem
Date: Tue, 6 Jan 2009 22:31:31 +0100

Jack,

I suggest you:

* Use the XML inspector in your XForms so you can see what the state  
of your instances are.
* Add some debug to your XPL to see if it is called and what it returns.
* Use a tool (such as TCPmon) to see what goes between your XForms and  
your service.

I hope this helps,

Alex

On Jan 6, 2009, at 2:11 PM, penguintj <[hidden email]> wrote:

> I try it but don't effect!
>
> Thank you anyway
>
> Does somebody have another suggestion?
>
> Jack
>
> -----Original Message-----
> From: Ryan Puddephatt <[hidden email]>
> Reply-to: [hidden email]
> To: [hidden email]
> Subject: [ops-users] RE: submission problem
> Date: Tue, 6 Jan 2009 09:47:10 -0000
>
> Do you authentication on your server?
>
>
>
> Try changing your @resource on the xforms:submission to be relative
> rather than absolute in this case @resource=”customer”
>
>
>
> Also your page flow entry for customer should have @view not @model
>
>
>
> Thanks
>
>
>
> Ryan
>
>
>
> -----------------------------------------------
>
> Ryan Puddephatt
>
> Connectivity Developer
>
> Fidessa LatentZero
>
> 1 Old Jewry
>
> London EC2R 8DN
>
> Office: +44 (0) 20 7105 1000
>
> Direct: +44 (0) 20 7105 1821
>
> Blackberry: +44 (0) 79 8539 2458
>
> Fax: +44 (0) 20 7105 1818
>
> Email: [hidden email]
>
> Web: http://www.latentzero.com
>
>
>
>
> From: penguintj [[hidden email]]
> Sent: 06 January 2009 08:27
> To: [hidden email]
> Subject: [ops-users] submission problem
>
>
>
>
> Hi,
>
> Below is my source, when xforms-ready, instance customer is empty.
>
> When I fill http://localhost:8888/orbeon/purchase-order/customer
> directly in browser, console show me XML which select from database (I
> enable debug), but nothing in browser.
>
> Is something wrong with my code?
>
> view.xhtml
>
>  <xforms:instance id="customer">
>    <dummy xmlns="" />
>  </xforms:instance>
>
>  <xforms:submission id="customer-service"
> resource="http://localhost:8888/orbeon/purchase-order/customer"
> replace="instance" instance="customer" method="get" encoding="utf-8"
> version="1.0" />
>  <xforms:send ev:event="xforms-ready" submission="customer-service" />
>
> page-flow.xml
>
> <config xmlns="http://www.orbeon.com/oxf/controller">
>  <page path-info="/purchase-order/" view="view.xhtml" />
>  <page path-info="/purchase-order/customer"
> model="customer-service.xpl" />
>  <epilogue url="oxf:/config/epilogue.xpl"/>
> </config>
>
> customer-service.xpl
>
> <p:config xmlns:oxf="http://www.orbeon.com/oxf/processors"
>          xmlns:p="http://www.orbeon.com/oxf/pipeline"
>          xmlns:sql="http://orbeon.org/oxf/xml/sql">
>
>  <p:param type="output" name="data" />
>
>  <p:processor name="oxf:sql">
>    <p:input name="datasource" href="datasource.xml" />
>    <p:input name="config">
>      <sql:config>
>        <customers>
>          <sql:connection>
>            <sql:execute>
>              <sql:query>select * from customer</sql:query>
>              <sql:result-set>
>                <sql:row-iterator>
>                  <customer>
>                    <sql:get-columns />
>                  </customer>
>                </sql:row-iterator>
>              </sql:result-set>
>              <sql:no-results>
>                <customer>
>                  none
>                </customer>
>              </sql:no-results>
>            </sql:execute>
>          </sql:connection>
>        </customers>
>      </sql:config>
>    </p:input>
>    <p:output name="data" ref="data" debug="true" />
>  </p:processor>
>
> </p:config>
>
> Thank you very much,
>
> Jack
>
>
>
>
> ______________________________________________________________________
> 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
> plain text document attachment (message-footer.txt)
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: [hidden email]
> For general help: [hidden email]
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>
> --
> You receive this message as a subscriber of the [hidden email]  
> mailing list.
> To unsubscribe: [hidden email]
> For general help: [hidden email]
> OW2 mailing lists service home page: http://www.ow2.org/wws
plain text document attachment (message-footer.txt)
--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws


--
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 problem

tayjack
In reply to this post by tayjack
I solve my problem,

two mistakes

first:

like Ryan said, my page flow entry for customer should have @view not @model

second:

my submission usage is wrong,

i wrote

<xforms:submission id="customer-service"
        resource="http://localhost:8888/orbeon/purchase-order/customer"
        replace="instance" instance="customer" method="get" encoding="utf-8"
        version="1.0" />

before, but actually should be

<xforms:submission id="customer-service" ref="instance('customer')" replace="instance" method="post" action="/purchase-order/customer"/>

Another question, why my usage originally is wrong? I add ref attribute and it's working.

thank you everyone,

Jack



--
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: submission problem

Ryan Puddephatt-3
Jack,
        You've also changed the @method and removed @encoding and @version, if you change @method="get" and remove @ref does it work?

Thanks

Ryan

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1821
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: penguintj [mailto:[hidden email]]
Sent: 07 January 2009 03:32
To: [hidden email]
Subject: [ops-users] Re: submission problem

I solve my problem,

two mistakes

first:

like Ryan said, my page flow entry for customer should have @view not @model

second:

my submission usage is wrong,

i wrote

<xforms:submission id="customer-service"
        resource="http://localhost:8888/orbeon/purchase-order/customer"
        replace="instance" instance="customer" method="get" encoding="utf-8"
        version="1.0" />

before, but actually should be

<xforms:submission id="customer-service" ref="instance('customer')" replace="instance" method="post" action="/purchase-order/customer"/>

Another question, why my usage originally is wrong? I add ref attribute and it's working.

thank you everyone,

Jack



______________________________________________________________________
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: submission problem

tayjack
Ryan,

Do you mean this

<xforms:submission id="customer-service"
        resource="/purchase-order/customer"
        replace="instance" instance="customer" method="get" />

No, it doesn't work!

Jack

-----Original Message-----
From: Ryan Puddephatt <[hidden email]>
Reply-to: [hidden email]
To: [hidden email]
Subject: [ops-users] RE: Re: submission problem
Date: Wed, 7 Jan 2009 09:37:31 -0000

Jack,
        You've also changed the @method and removed @encoding and @version, if you change @method="get" and remove @ref does it work?

Thanks

Ryan

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1821
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: penguintj [mailto:[hidden email]]
Sent: 07 January 2009 03:32
To: [hidden email]
Subject: [ops-users] Re: submission problem

I solve my problem,

two mistakes

first:

like Ryan said, my page flow entry for customer should have @view not @model

second:

my submission usage is wrong,

i wrote

<xforms:submission id="customer-service"
        resource="http://localhost:8888/orbeon/purchase-order/customer"
        replace="instance" instance="customer" method="get" encoding="utf-8"
        version="1.0" />

before, but actually should be

<xforms:submission id="customer-service" ref="instance('customer')" replace="instance" method="post" action="/purchase-order/customer"/>

Another question, why my usage originally is wrong? I add ref attribute and it's working.

thank you everyone,

Jack



______________________________________________________________________
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
plain text document attachment (message-footer.txt)
--
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



--
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: submission problem

Ryan Puddephatt-3
But adding the @ref back in, still using @method="get" works? This sounds like a bug

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1821
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: penguintj [mailto:[hidden email]]
Sent: 07 January 2009 10:22
To: [hidden email]
Subject: [ops-users] Re: submission problem

Ryan,

Do you mean this

<xforms:submission id="customer-service"
        resource="/purchase-order/customer"
        replace="instance" instance="customer" method="get" />

No, it doesn't work!

Jack

-----Original Message-----
From: Ryan Puddephatt <[hidden email]>
Reply-to: [hidden email]
To: [hidden email]
Subject: [ops-users] RE: Re: submission problem
Date: Wed, 7 Jan 2009 09:37:31 -0000

Jack,
        You've also changed the @method and removed @encoding and @version, if you change @method="get" and remove @ref does it work?

Thanks

Ryan

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1821
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: penguintj [mailto:[hidden email]]
Sent: 07 January 2009 03:32
To: [hidden email]
Subject: [ops-users] Re: submission problem

I solve my problem,

two mistakes

first:

like Ryan said, my page flow entry for customer should have @view not @model

second:

my submission usage is wrong,

i wrote

<xforms:submission id="customer-service"
        resource="http://localhost:8888/orbeon/purchase-order/customer"
        replace="instance" instance="customer" method="get" encoding="utf-8"
        version="1.0" />

before, but actually should be

<xforms:submission id="customer-service" ref="instance('customer')" replace="instance" method="post" action="/purchase-order/customer"/>

Another question, why my usage originally is wrong? I add ref attribute and it's working.

thank you everyone,

Jack



______________________________________________________________________
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 plain text document attachment (message-footer.txt)
--
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



______________________________________________________________________
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: submission problem

tayjack
I try two situations, one use same instance with instance attribute and the other use different instance.

Use same instance works but another doesn't work!

This one doesn't work!

<xforms:submission id="pick-service"
        resource="/purchase-order/customer" ref="instance('purchase-order')"
        replace="instance" instance="pick-instance" method="get" />

This one works!

<xforms:submission id="pick-service"
        resource="/purchase-order/customer" ref="instance('pick-instance')"
        replace="instance" instance="pick-instance" method="get" />

Jack

-----Original Message-----
From: Ryan Puddephatt <[hidden email]>
Reply-to: [hidden email]
To: [hidden email]
Subject: [ops-users] RE: Re: submission problem
Date: Wed, 7 Jan 2009 12:40:16 -0000

But adding the @ref back in, still using @method="get" works? This sounds like a bug 

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1821
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: penguintj [[hidden email]] 
Sent: 07 January 2009 10:22
To: [hidden email]
Subject: [ops-users] Re: submission problem

Ryan,

Do you mean this

<xforms:submission id="customer-service"
        resource="/purchase-order/customer"
        replace="instance" instance="customer" method="get" />

No, it doesn't work!

Jack

-----Original Message-----
From: Ryan Puddephatt <[hidden email]>
Reply-to: [hidden email]
To: [hidden email]
Subject: [ops-users] RE: Re: submission problem
Date: Wed, 7 Jan 2009 09:37:31 -0000

Jack,
	You've also changed the @method and removed @encoding and @version, if you change @method="get" and remove @ref does it work?

Thanks

Ryan 

-----------------------------------------------
Ryan Puddephatt
Connectivity Developer
Fidessa LatentZero
1 Old Jewry
London EC2R 8DN
Office: +44 (0) 20 7105 1000
Direct: +44 (0) 20 7105 1821
Blackberry: +44 (0) 79 8539 2458
Fax: +44 (0) 20 7105 1818
Email: [hidden email]
Web: http://www.latentzero.com


-----Original Message-----
From: penguintj [[hidden email]]
Sent: 07 January 2009 03:32
To: [hidden email]
Subject: [ops-users] Re: submission problem

I solve my problem,

two mistakes

first:

like Ryan said, my page flow entry for customer should have @view not @model

second:

my submission usage is wrong,

i wrote

<xforms:submission id="customer-service"
        resource="http://localhost:8888/orbeon/purchase-order/customer"
        replace="instance" instance="customer" method="get" encoding="utf-8"
        version="1.0" />

before, but actually should be

<xforms:submission id="customer-service" ref="instance('customer')" replace="instance" method="post" action="/purchase-order/customer"/>

Another question, why my usage originally is wrong? I add ref attribute and it's working.

thank you everyone,

Jack



______________________________________________________________________
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 plain text document attachment (message-footer.txt)
--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws



______________________________________________________________________
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
plain text document attachment (message-footer.txt)
--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: [hidden email]
For general help: [hidden email]
OW2 mailing lists service home page: http://www.ow2.org/wws


--
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