I have a form that can be completed once the first three items are entered. On the third item, I can submit the form to a pipeline that looks up the matching record. While the ops.log shows xforms-server debug (dumping instances) I don't see any other evidence of the submit. Even when the pipeline had syntax errors, there was nothing in the log. The following does set the "depth" with the value in the default instance, never an updated instance. <xforms:input ref="loc" id="loc"> <xforms:action ev:event="xforms-value-changed"> <xforms:send submission="sitechan-submission" /> <xforms:setvalue ref="../depth" value="instance('sitechan')/edepth" /> </xforms:action> </xforms:input> <xforms:submission id="sitechan-submission" ref="instance('sensor-change')/change" method="post" action="/runtime/get-sitechan" replace="instance" instance="sitechan" /> Thanks as always, Hank UCSB ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hank,
What does you page flow entry for /runtime/get-sitechan look like, I'm guessing it probably a problem there Ryan Ryan Puddephatt Software Engineer Teleflex Group - IT UK 1 Michaelson Square Livingston West Lothian Scotland EH54 7DP e> [hidden email] t> +44(0)1506 407 110 f> +44(0)1506 407 108 >-----Original Message----- >From: [hidden email] [mailto:[hidden email]] >Sent: 26 January 2007 05:26 >To: [hidden email] >Subject: [ops-users] <send> on xforms-value-changed event > > >I have a form that can be completed once the first three items >are entered. On the third item, I can submit the form to a >pipeline that looks up the matching record. > >While the ops.log shows xforms-server debug (dumping >instances) I don't see any other evidence of the submit. Even >when the pipeline had syntax errors, there was nothing in the log. > >The following does set the "depth" with the value in the >default instance, never an updated instance. > ><xforms:input ref="loc" id="loc"> > <xforms:action ev:event="xforms-value-changed"> > <xforms:send submission="sitechan-submission" /> > <xforms:setvalue ref="../depth" >value="instance('sitechan')/edepth" /> > </xforms:action> ></xforms:input> > ><xforms:submission id="sitechan-submission" > ref="instance('sensor-change')/change" > method="post" > action="/runtime/get-sitechan" > replace="instance" > instance="sitechan" /> > >Thanks as always, >Hank > >UCSB > > > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. > > > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Ryan,
Well, I was too sure of myself. In fact, what I am running into is the eXist issue where the result of an _query is text/html and not text/xml. I guess I deployed a version without compiling the work around. (and thanks again for that work around) http://www.objectweb.org/wws/arc/ops-users/2006-11/msg00220.html Best, Hank ----- Original Message ----- From: "Ryan Puddephatt" <[hidden email]> To: <[hidden email]> Sent: Friday, January 26, 2007 1:32 AM Subject: RE: [ops-users] <send> on xforms-value-changed event > Hank, > What does you page flow entry for /runtime/get-sitechan look like, > I'm guessing it probably a problem there > > Ryan > > Ryan Puddephatt > Software Engineer > > Teleflex Group - IT UK > 1 Michaelson Square > Livingston > West Lothian > Scotland > EH54 7DP > > e> [hidden email] > t> +44(0)1506 407 110 > f> +44(0)1506 407 108 > > > >>-----Original Message----- >>From: [hidden email] [mailto:[hidden email]] >>Sent: 26 January 2007 05:26 >>To: [hidden email] >>Subject: [ops-users] <send> on xforms-value-changed event >> >> >>I have a form that can be completed once the first three items >>are entered. On the third item, I can submit the form to a >>pipeline that looks up the matching record. >> >>While the ops.log shows xforms-server debug (dumping >>instances) I don't see any other evidence of the submit. Even >>when the pipeline had syntax errors, there was nothing in the log. >> >>The following does set the "depth" with the value in the >>default instance, never an updated instance. >> >><xforms:input ref="loc" id="loc"> >> <xforms:action ev:event="xforms-value-changed"> >> <xforms:send submission="sitechan-submission" /> >> <xforms:setvalue ref="../depth" >>value="instance('sitechan')/edepth" /> >> </xforms:action> >></xforms:input> >> >><xforms:submission id="sitechan-submission" >> ref="instance('sensor-change')/change" >> method="post" >> action="/runtime/get-sitechan" >> replace="instance" >> instance="sitechan" /> >> >>Thanks as always, >>Hank >> >>UCSB >> >> -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
I can't understand why the instance is not replaced by
a submission. It is so similar to my other code, (except perhaps that the instance data is never displayed by any control), but it is not working. I include a slightly annotated log, which looks perfect until the point of "refresh" where the instance has not been replaced. I don't know how to proceed in these circumstances. This is my submission, and the test control for it: <xforms:submission id="sitechan-submission" ref="instance('sensor-change')" method="post" action="/runtime/get-sitechan" validate="false" replace="instance" instance="sitechan" /> <xforms:trigger id="test"> <xforms:label>test</xforms:label> <xforms:action ev:event="DOMActivate"> <xforms:send submission="sitechan-submission" /> <-- this is my goal, to fill in the rest of the form. --> <xforms:setvalue ref="../depth" value="instance('sitechan')/edepth" /> </xforms:action> </xforms:trigger> Well, if you wish to bear with me, my thanks. OK, so the log shows the xform server getting the submit request for the test control and performing the submission: TP-Processor2 INFO webapp.ProcessorService - /xforms-server - Received request TP-Processor2 DEBUG processor.XFormsServer - XForms - dispatching event: DOMActivate - test - ... TP-Processor2 DEBUG processor.XFormsServer - XForms - dispatching event: xforms-submit - sitechan-submission ... TP-Processor2 DEBUG processor.XFormsServer - XForms - opening URL connection for: ... TP-Processor2 DEBUG processor.XFormsServer - XForms - setting request body: ... And I can see that the service has been reached. The service, in turn, submits to an eXist rest service: TP-Processor8 INFO webapp.ProcessorService - /runtime/get-sitechan - Received request TP-Processor8 DEBUG processor.XFormsServer - XForms - containing document cache (getContainingDocument): did not find document pool in cache. TP-Processor8 DEBUG processor.XFormsServer - XForms - creating new ContainingDocument (static state object not provided). TP-Processor8 DEBUG processor.XFormsServer - XForms - dispatching event: xforms-submit - default-submission ... TP-Processor8 DEBUG processor.XFormsServer - XForms - submission - replacing instance with mutable instance: default-instance TP-Processor8 DEBUG processor.XFormsServer - XForms - performing refresh And here is the result from the serice, exactly as I expect: TP-Processor8 DEBUG processor.XFormsServer - XForms - resulting instance: model id='default-model', instance id= 'default-instance' <?xml version="1.0" encoding="UTF-8"?><exist:result xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="9" exist:start="1" exist:count="1"> <sitechan> <vang>0</vang> <ctype>-</ctype> <offdate>-1</offdate> <descrip>xxx 0520</descrip> <ondate>2005146</ondate> <chan>HLZ_01</chan> <edepth>0.003</edepth> <chanid>843</chanid> <sta>5210</sta> <hang>0</hang> </sitechan> </exist:result> TP-Processor8 INFO webapp.ProcessorService - /runtime/get-sitechan - Timing: 152 - Cache hits: 201, fault: 3, adds: 1, success rate: 98% TP-Processor2 DEBUG processor.XFormsServer - XForms - submission - external submission time (including handling returned body): 155 Now, I presume control has returned to the xforms on the web page, but look, the sitechan instance has not changed: TP-Processor2 DEBUG processor.XFormsServer - XForms - resulting instance: model id='model', instance id= 'sitechan' <?xml version="1.0" encoding="UTF-8"?><sitechan xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:widget="http://orbeon.org/oxf/xml/widget" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:exist="http://exist.sourceforge.net/NS/exist" xmlns:f="http://orbeon.org/oxf/xml/formatting" xmlns:fn="http://www.w3.org/2005/02/xpath-functions"> <vang>0</vang> <ctype>-</ctype> <offdate>-1</offdate> <descrip>00732 556</descrip> <ondate>2003312</ondate> <chan>HLV_00</chan> <edepth>-1</edepth> <chanid>215</chanid> <sta>GVDA</sta> <hang>0</hang> </sitechan> Here is the original sitechan instance: <xforms:instance id="sitechan" > <sitechan xmlns=""> <vang>0</vang> <ctype>-</ctype> <offdate>-1</offdate> <descrip>00732 556</descrip> <ondate>2003312</ondate> <chan>HLV_00</chan> <edepth>-1</edepth> <chanid>215</chanid> <sta>GVDA</sta> <hang>0</hang> </sitechan> </xforms:instance> Where I am stuck.... --Hank Institute for Crustal Studies -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hank,
Did you try enabling XForms logging in log4j.xml? This will give you lots of details, including what's happening after the response of the submission returns to the XForms engine. See: http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-debugging -Erik Hank Ratzesberger wrote: > I can't understand why the instance is not replaced by > a submission. It is so similar to my other code, (except > perhaps that the instance data is never displayed by any control), > but it is not working. I include a slightly annotated log, > which looks perfect until the point of "refresh" where > the instance has not been replaced. I don't know how > to proceed in these circumstances. > > This is my submission, and the test control for it: > > <xforms:submission id="sitechan-submission" > ref="instance('sensor-change')" > method="post" > action="/runtime/get-sitechan" > validate="false" > replace="instance" > instance="sitechan" /> > > > <xforms:trigger id="test"> > <xforms:label>test</xforms:label> > <xforms:action ev:event="DOMActivate"> > <xforms:send submission="sitechan-submission" /> > <-- this is my goal, to fill in the rest of the form. --> > <xforms:setvalue ref="../depth" value="instance('sitechan')/edepth" /> > </xforms:action> > </xforms:trigger> > > Well, if you wish to bear with me, my thanks. > > OK, so the log shows the xform server getting the submit request > for the test control and performing the submission: > > TP-Processor2 INFO webapp.ProcessorService - /xforms-server - Received > request > TP-Processor2 DEBUG processor.XFormsServer - XForms - dispatching event: > DOMActivate - test - ... > TP-Processor2 DEBUG processor.XFormsServer - XForms - dispatching > event: xforms-submit - sitechan-submission ... > TP-Processor2 DEBUG processor.XFormsServer - XForms - opening URL > connection for: ... > TP-Processor2 DEBUG processor.XFormsServer - XForms - setting request > body: ... > > And I can see that the service has been reached. The service, in turn, > submits to an eXist rest service: > > TP-Processor8 INFO webapp.ProcessorService - /runtime/get-sitechan - > Received request > TP-Processor8 DEBUG processor.XFormsServer - XForms - containing > document cache (getContainingDocument): did not find document pool in > cache. > TP-Processor8 DEBUG processor.XFormsServer - XForms - creating new > ContainingDocument (static state object not provided). > TP-Processor8 DEBUG processor.XFormsServer - XForms - dispatching > event: xforms-submit - default-submission ... > TP-Processor8 DEBUG processor.XFormsServer - XForms - submission - > replacing instance with mutable instance: default-instance > TP-Processor8 DEBUG processor.XFormsServer - XForms - performing refresh > > And here is the result from the serice, exactly as I expect: > > TP-Processor8 DEBUG processor.XFormsServer - XForms - resulting > instance: model id='default-model', instance id= 'default-instance' > <?xml version="1.0" encoding="UTF-8"?><exist:result > xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="9" > exist:start="1" exist:count="1"> > <sitechan> > <vang>0</vang> > <ctype>-</ctype> > <offdate>-1</offdate> > <descrip>xxx 0520</descrip> > <ondate>2005146</ondate> > <chan>HLZ_01</chan> > <edepth>0.003</edepth> > <chanid>843</chanid> > <sta>5210</sta> > <hang>0</hang> > </sitechan> > </exist:result> > TP-Processor8 INFO webapp.ProcessorService - /runtime/get-sitechan - > Timing: 152 - Cache hits: 201, fault: 3, adds: 1, success rate: 98% > TP-Processor2 DEBUG processor.XFormsServer - XForms - submission - > external submission time (including handling returned body): 155 > > Now, I presume control has returned to the xforms on the web page, but > look, > the sitechan instance has not changed: > > TP-Processor2 DEBUG processor.XFormsServer - XForms - resulting > instance: model id='model', instance id= 'sitechan' > <?xml version="1.0" encoding="UTF-8"?><sitechan > xmlns:xforms="http://www.w3.org/2002/xforms" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:widget="http://orbeon.org/oxf/xml/widget" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xi="http://www.w3.org/2001/XInclude" > xmlns:exist="http://exist.sourceforge.net/NS/exist" > xmlns:f="http://orbeon.org/oxf/xml/formatting" > xmlns:fn="http://www.w3.org/2005/02/xpath-functions"> > <vang>0</vang> > <ctype>-</ctype> > <offdate>-1</offdate> > <descrip>00732 556</descrip> > <ondate>2003312</ondate> > <chan>HLV_00</chan> > <edepth>-1</edepth> > <chanid>215</chanid> > <sta>GVDA</sta> > <hang>0</hang> > </sitechan> > > Here is the original sitechan instance: > > <xforms:instance id="sitechan" > > <sitechan xmlns=""> > <vang>0</vang> > <ctype>-</ctype> > <offdate>-1</offdate> > <descrip>00732 556</descrip> > <ondate>2003312</ondate> > <chan>HLV_00</chan> > <edepth>-1</edepth> > <chanid>215</chanid> > <sta>GVDA</sta> > <hang>0</hang> > </sitechan> > </xforms:instance> > > Where I am stuck.... > > --Hank > > Institute for Crustal Studies > -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Erik,
[it's not a critical feature. I'll come back and test again on an RC.] Yes, logging is enabled, and I see my pipeline, the target of my submission, get executed. The pipeline, in turn, performs a submission using the processor, and the logs show the 'default-instance' being updated with the values I expect. I reformat these values a bit with xslt, it all looks fine when, as a test, I apply it to a view, but the instance in my model is never replaced. Does it think the document is in the cache already, as the logs suggest: XForms - containing document cache (cacheContainingDocument): found containing document pool in cache. Returning document to it. INFO webapp.ProcessorService null - /runtime/get-sitechan - Timing: 175 - Cache hits: 201, fault: 3, adds: 1, success rate: 98% XForms - submission - external submission time (including handling returned body): 182 DEBUG processor.XFormsServer null - XForms - dispatching event: xforms-submit-done - sitechan-submission - at XFormsModelSubmission.java, line 783, column -1 XForms - submission - total submission time: 195 Regards, Hank ----- Original Message ----- From: "Erik Bruchez" <[hidden email]> To: <[hidden email]> Sent: Monday, January 29, 2007 1:54 AM Subject: Re: [ops-users] Debugging submission (was <send> ...) > Hank, > > Did you try enabling XForms logging in log4j.xml? This will give you > lots of details, including what's happening after the response of the > submission returns to the XForms engine. See: > > http://www.orbeon.com/ops/doc/reference-xforms-ng#xforms-debugging > > -Erik > > Hank Ratzesberger wrote: >> I can't understand why the instance is not replaced by >> a submission. It is so similar to my other code, (except >> perhaps that the instance data is never displayed by any control), >> but it is not working. I include a slightly annotated log, >> which looks perfect until the point of "refresh" where >> the instance has not been replaced. I don't know how >> to proceed in these circumstances. >> >> This is my submission, and the test control for it: >> >> <xforms:submission id="sitechan-submission" >> ref="instance('sensor-change')" >> method="post" >> action="/runtime/get-sitechan" >> validate="false" >> replace="instance" >> instance="sitechan" /> >> >> >> <xforms:trigger id="test"> >> <xforms:label>test</xforms:label> >> <xforms:action ev:event="DOMActivate"> >> <xforms:send submission="sitechan-submission" /> >> <-- this is my goal, to fill in the rest of the form. --> >> <xforms:setvalue ref="../depth" value="instance('sitechan')/edepth" /> >> </xforms:action> >> </xforms:trigger> >> >> Well, if you wish to bear with me, my thanks. >> >> OK, so the log shows the xform server getting the submit request >> for the test control and performing the submission: >> >> TP-Processor2 INFO webapp.ProcessorService - /xforms-server - Received >> request >> TP-Processor2 DEBUG processor.XFormsServer - XForms - dispatching event: >> DOMActivate - test - ... >> TP-Processor2 DEBUG processor.XFormsServer - XForms - dispatching >> event: xforms-submit - sitechan-submission ... >> TP-Processor2 DEBUG processor.XFormsServer - XForms - opening URL >> connection for: ... >> TP-Processor2 DEBUG processor.XFormsServer - XForms - setting request >> body: ... >> >> And I can see that the service has been reached. The service, in turn, >> submits to an eXist rest service: >> >> TP-Processor8 INFO webapp.ProcessorService - /runtime/get-sitechan - >> Received request >> TP-Processor8 DEBUG processor.XFormsServer - XForms - containing >> document cache (getContainingDocument): did not find document pool in >> cache. >> TP-Processor8 DEBUG processor.XFormsServer - XForms - creating new >> ContainingDocument (static state object not provided). >> TP-Processor8 DEBUG processor.XFormsServer - XForms - dispatching >> event: xforms-submit - default-submission ... >> TP-Processor8 DEBUG processor.XFormsServer - XForms - submission - >> replacing instance with mutable instance: default-instance >> TP-Processor8 DEBUG processor.XFormsServer - XForms - performing refresh >> >> And here is the result from the serice, exactly as I expect: >> >> TP-Processor8 DEBUG processor.XFormsServer - XForms - resulting >> instance: model id='default-model', instance id= 'default-instance' >> <?xml version="1.0" encoding="UTF-8"?><exist:result >> xmlns:exist="http://exist.sourceforge.net/NS/exist" exist:hits="9" >> exist:start="1" exist:count="1"> >> <sitechan> >> <vang>0</vang> >> <ctype>-</ctype> >> <offdate>-1</offdate> >> <descrip>xxx 0520</descrip> >> <ondate>2005146</ondate> >> <chan>HLZ_01</chan> >> <edepth>0.003</edepth> >> <chanid>843</chanid> >> <sta>5210</sta> >> <hang>0</hang> >> </sitechan> >> </exist:result> >> TP-Processor8 INFO webapp.ProcessorService - /runtime/get-sitechan - >> Timing: 152 - Cache hits: 201, fault: 3, adds: 1, success rate: 98% >> TP-Processor2 DEBUG processor.XFormsServer - XForms - submission - >> external submission time (including handling returned body): 155 >> >> Now, I presume control has returned to the xforms on the web page, but >> look, >> the sitechan instance has not changed: >> >> TP-Processor2 DEBUG processor.XFormsServer - XForms - resulting >> instance: model id='model', instance id= 'sitechan' >> <?xml version="1.0" encoding="UTF-8"?><sitechan >> xmlns:xforms="http://www.w3.org/2002/xforms" >> xmlns:ev="http://www.w3.org/2001/xml-events" >> xmlns:widget="http://orbeon.org/oxf/xml/widget" >> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >> xmlns:xi="http://www.w3.org/2001/XInclude" >> xmlns:exist="http://exist.sourceforge.net/NS/exist" >> xmlns:f="http://orbeon.org/oxf/xml/formatting" >> xmlns:fn="http://www.w3.org/2005/02/xpath-functions"> >> <vang>0</vang> >> <ctype>-</ctype> >> <offdate>-1</offdate> >> <descrip>00732 556</descrip> >> <ondate>2003312</ondate> >> <chan>HLV_00</chan> >> <edepth>-1</edepth> >> <chanid>215</chanid> >> <sta>GVDA</sta> >> <hang>0</hang> >> </sitechan> >> >> Here is the original sitechan instance: >> >> <xforms:instance id="sitechan" > >> <sitechan xmlns=""> >> <vang>0</vang> >> <ctype>-</ctype> >> <offdate>-1</offdate> >> <descrip>00732 556</descrip> >> <ondate>2003312</ondate> >> <chan>HLV_00</chan> >> <edepth>-1</edepth> >> <chanid>215</chanid> >> <sta>GVDA</sta> >> <hang>0</hang> >> </sitechan> >> </xforms:instance> >> >> Where I am stuck.... >> >> --Hank >> >> Institute for Crustal Studies >> > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Erik Bruchez
Erik, Hank,
I have the same problem with "replace instance". I attached a trivial sample that shows the problem. The page-flow part : <page id="test" path-info="/test" view="oxf:/...the file path.../test.xhtml" /> <page path-info="/service-test" model="oxf:/...the file path.../test.xpl"/> Orbeon Forms version : 3.5.beta.200701271230 HTH, -- Marc -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Hi,
Can we add/remove nodes to the new xforms tree dynamically? Or is a submission needed? What I would like to implement is an editor of XML. I don't know how to start if using a xforms tree or a text area with syntax highlighting? This what I would need in both cases: - Xforms tree: show a tree of an XML file select the node and show/edit its attributes show buttons to add new child nodes or delete the current node - Xforms text area: Load XML as it is with syntax highlighting (maybe load in another window, dialog or popup) Place a button to save the file I think first option is nicer but second may be easier to implement. Has anybody implemented something similar?? Thanks in advance? Jordi -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Jordi Amatller a écrit :
>Hi, > >Can we add/remove nodes to the new xforms tree dynamically? Or is a >submission needed? > > > No it's not possible at that time. The client has not enough information to do that. Link : http://forge.objectweb.org/tracker/index.php?func=detail&aid=306597&group_id=168&atid=350207 HTH, -- Marc -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Thanks Mark,
Then I assume that for updating the tree a submission and a reload of the instance is needed right? What about a text area for editing xml? Does anybody know how I can do it, I would like to have something similar to: http://codepress.fermads.net/ I suppose I should learn javascript... Jordi -----Mensaje original----- De: marc [mailto:[hidden email]] Enviado el: martes, 30 de enero de 2007 12:19 Para: [hidden email] Asunto: Re: [ops-users] Dynamic tree Jordi Amatller a écrit : >Hi, > >Can we add/remove nodes to the new xforms tree dynamically? Or is a >submission needed? > > > No it's not possible at that time. The client has not enough information to do that. Link : http://forge.objectweb.org/tracker/index.php?func=detail&aid=306597&group_id =168&atid=350207 HTH, -- Marc -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Jordi Amatller a écrit :
>Thanks Mark, > >Then I assume that for updating the tree a submission and a reload of the >instance is needed right? > > > No, the tree is build based on the original instance at the page creation. Unfortunately updating the instance doesn't help. >What about a text area for editing xml? Does anybody know how I can do it, I >would like to have something similar to: >http://codepress.fermads.net/ > >I suppose I should learn javascript... > >Jordi > > -- Marc -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by marc-62
Hi Marc,
In you page-flow.xml, change model="test.xpl" with view="test.xpl", and your code will then work as expected. Press the first button and "instance" is replaced by "instance1". Press the second button and "instance" is replaced with "instance2". The model in the page flow is either supposed to serialize itself the result or feed it to a view. If neither happens, the "data" output of the model goes to /dev/null. The code that generates something back should be referenced with the "view" attribute, whatever is generated (HTML or XML consumed by XForms). But I agree that this is confusing :). Should we change this and make it so the "data" output is serialized like the output of the view if there is no view? Alex On 1/30/07, marc <[hidden email]> wrote: > Erik, Hank, > > I have the same problem with "replace instance". > I attached a trivial sample that shows the problem. > > The page-flow part : > > <page id="test" path-info="/test" view="oxf:/...the file > path.../test.xhtml" /> > <page path-info="/service-test" model="oxf:/...the file path.../test.xpl"/> > > Orbeon Forms version : 3.5.beta.200701271230 > > HTH, > > -- > Marc > > > > -- > 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 > ObjectWeb mailing lists service home page: http://www.objectweb.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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Alessandro Vernet a écrit :
> Hi Marc, > > In you page-flow.xml, change model="test.xpl" with view="test.xpl", > and your code will then work as expected. Press the first button and > "instance" is replaced by "instance1". Press the second button and > "instance" is replaced with "instance2". > > The model in the page flow is either supposed to serialize itself the > result or feed it to a view. If neither happens, the "data" output of > the model goes to /dev/null. The code that generates something back > should be referenced with the "view" attribute, whatever is generated > (HTML or XML consumed by XForms). > > But I agree that this is confusing :). Should we change this and make > it so the "data" output is serialized like the output of the view if > there is no view? > No, I think this new behaviour with your explanation is clear. Thanks, Alex -- Marc -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
In reply to this post by marc-62
On 1/30/07, marc <[hidden email]> wrote:
> No, the tree is build based on the original instance at the page > creation. Unfortunately updating the instance doesn't help. Jodi, as Marc said, at this point you will need to do a submission replace="all" to see a change in the structure of the three. There is no such restriction however for HTML areas. Alex -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
In reply to this post by Alessandro Vernet
Hi Alex,
I have a question about this. If my xpl file is meant to provide a local service, it should not need to serialize. If I want to provide services for local submission, can I set the config property to true: <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" value="true"/> and reference the <p:param name="output"> in order to avoid one more "round" of serialization and parsing ? i.e. the parameter output becomes the instance to replace. Thanks, Hank Hank Ratzesberger Institute for Crustal Studies University of California, Santa Barbara ----- Original Message ----- From: "Alessandro Vernet" <[hidden email]> > The model in the page flow is either supposed to serialize itself the > result or feed it to a view. If neither happens, the "data" output of > the model goes to /dev/null. The code that generates something back > should be referenced with the "view" attribute, whatever is generated > (HTML or XML consumed by XForms). -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Administrator
|
Hi Hank,
On 2/1/07, Hank Ratzesberger <[hidden email]> wrote: > I have a question about this. If my xpl file is meant to > provide a local service, it should not need to serialize. > > If I want to provide services for local submission, can I > set the config property to true: > > <property as="xs:boolean" name="oxf.xforms.optimize-local-submission" value="true"/> > > and reference the <p:param name="output"> in order to avoid one > more "round" of serialization and parsing ? i.e. the parameter output > becomes the instance to replace. code of your application. You can switch that parameter back and forth without having to change the way you wrote your pipelines. And in most cases, you don't need to worry about those parameters, and can leave them to their default value. Like you said, the goal of some of those optimize parameters is to avoid in certain cases having XML being serialized, go all the way through HTTP, and being parsed again just to come back into Orbeon Forms. Alex -- 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 ObjectWeb mailing lists service home page: http://www.objectweb.org/wws |
Free forum by Nabble | Edit this page |