I am running the following code in my xforms latest nighly build which just gets the state from session
in xforms-ready event. <xhtml:head> <xhtml:title>Accessing the Session - Shopping Cart</xhtml:title> <xforms:model id="main-model"> <xforms:instance id="test1"> <xi:include href="input:data" /> </xforms:instance> <xforms:instance id="test"> <test xmlns=""> </test> </xforms:instance> <xforms:action ev:event="xforms-ready"> <xforms:send submission="get"/> </xforms:action> <xforms:submission id="get" method="post" action="/udfsession/get" replace="instance" instance="test"/> </xforms:model> </xhtml:head> The above code doesnt get the state in xforms-ready event when deployed with latest nighly build and surprisingly works with the orbeon release 3.6. I couldnt figure out whether it is a defect or it can done in alternative way. Suggest Please. Thanks Ginnuri.retrievesession.rar |
Administrator
|
Try to enable XForms logging and see what's going on during
initialization: http://www.orbeon.com/ops/doc/reference-xforms-2#xforms-logging This should tell you whether your submission runs, and if so how it completes. -Erik On Jun 27, 2008, at 12:12 PM, Ginnuri wrote: > > I am running the following code in my xforms latest nighly build > which just > gets the state from session > in xforms-ready event. > > > <xhtml:head> > <xhtml:title>Accessing the Session - Shopping Cart</ > xhtml:title> > <xforms:model id="main-model"> > <xforms:instance id="test1"> > <xi:include href="input:data" /> > </xforms:instance> > <xforms:instance id="test"> > <test xmlns=""> > </test> > </xforms:instance> > <xforms:action ev:event="xforms-ready"> > <xforms:send submission="get"/> > </xforms:action> > <xforms:submission id="get" method="post" action="/udfsession/get" > replace="instance" instance="test"/> > </xforms:model> > </xhtml:head> > > > The above code doesnt get the state in xforms-ready event when > deployed with > latest nighly build and surprisingly works with the orbeon release > 3.6. > > I couldnt figure out whether it is a defect or it can done in > alternative > way. Suggest Please. > > Thanks > Ginnuri. http://www.nabble.com/file/p18162004/retrievesession.rar > retrievesession.rar > -- > View this message in context: http://www.nabble.com/session-retrieval-in-xforms-ready-tp18162004p18162004.html > Sent from the ObjectWeb OPS - Users mailing list archive at > Nabble.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 Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.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 |
Eric,
thanks for the response. I enabled logging and found that the submission runs but it says instance couldnt be replaced as it gets nothing from the session. I am attaching the source code of a sample which tries to get instance from session in its xforms ready and the log file which i observed. Could u help me figure out what is going wrong with the session? 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - event - dispatching {name: "xforms-ready", id: "main-model", location: "line 154 of XFormsEventFactory.java"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - action - executing {action name: "action"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - action - executing {action name: "send"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - event - dispatching {name: "xforms-submit", id: "get", location: "line 49 of XFormsSendAction.java"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - model - performing revalidate {model id: "main-model"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - event - dispatching {name: "xxforms-valid", id: "test1", location: "line 911 of XFormsModel.java"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - event - dispatching {name: "xxforms-valid", id: "test", location: "line 911 of XFormsModel.java"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - model - done revalidating {model id: "main-model", time: "0"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - event - dispatching {name: "xforms-submit-serialize", id: "get", location: "line 564 of XFormsModelSubmission.java"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - submission - opening URL connection {URL: "http://localhost:9082/orbeon3.7/retrievesession/get"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - submission - setting cookie {JSESSIONID: "URGxg3CbkXHvl64JgVPnbai"} 2008-06-30 18:11:23,615 DEBUG XFormsServer - XForms - submission - setting request body {mediatype: "application/xml", body: "<?xml version="1.0" encoding="UTF-8"?><test xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xi="http://www.w3.org/2001/XInclude" xml:base="input:data"> <value>testdata</value> </test>"} 2008-06-30 18:11:23,615 INFO ProcessorService - /retrievesession/get - Received request 2008-06-30 18:11:23,646 INFO ProcessorService - /retrievesession/get - Timing: 31 - Cache hits for cache.main: 242, fault: 29, adds: 29, expirations: 27, success rate: 89% 2008-06-30 18:11:23,646 WARN XFormsServer - XForms - submission - instance replacement did not take place upon successful response because no body was provided. Submission: get 2008-06-30 18:11:23,646 DEBUG XFormsServer - XForms - submission - external submission time including handling returned body {time: "31"} 2008-06-30 18:11:23,646 DEBUG XFormsServer - XForms - event - dispatching {name: "xforms-submit-done", id: "get", location: "line 35 of XFormsSubmitDoneEvent.java"} 2008-06-30 18:11:23,646 DEBUG XFormsServer - XForms - submission - total submission time {time: "31"} 2008-06-30 18:11:23,646 DEBUG XFormsServer - XForms - event - dispatching {name: "xforms-ready", id: "orbeon-xforms-instance-inspector-model", location: "line 154 of XFormsEventFactory.java"} 2008-06-30 18:11:23,646 DEBUG XFormsServer - XForms - action - executing {action name: "action"} 2008-06-30 18:11:23,646 DEBUG XFormsServer - XForms - action - executing {action name: "action", while iteration: "1"} 2008-06-30 18:11:23,646 DEBUG XFormsServer - XForms - action - executing {action name: "insert"} Thanks Ginnuri. retrievesession.zipretrievesession.zip |
Free forum by Nabble | Edit this page |