Sorry for posting twice but the previous message is fancy layouted and
illegible...
I'm must refresh images on an xsl page when an xforms:select1 change of value. I have a look at the examples with flags (selection of a country that trigger a submission updating the value of an xforms:instance and of the xforms:output displaying the images) but in my case it seems that the xpl updating the instance is never called... Any trick would be welcome. Here are some piece of my code : The page-flow (page-flow.xml) <page id="image" path-info="/is/image" model="get-image-name.xpl" /> The view (view.xsl) <xsl:stylesheet ...> The xpl called when the select has changed (get-image-name.xpl) <p:config xmlns:...> Why the instance isn't updated? I'v try to write it textually but it's the same... I don't see my error -- 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 |
Well in my last post the action attribute was empty. In my file I have a value but a wrong one. After correction, the instance is updated correctly.
<xforms:submission ref="instance('budget2')" id="update-image-submission" method="post" action="/is/image" replace="instance"/> But now I have another problem : the instance bound to the <xforms-output meidatype="text/html"> receive always the same value : the tag <img src=".../file.jpg"/> and when the image change on the server side, it is not updated in the xsl view. In my xsl page, I force to not use the cache <xhtml:meta http-equiv="cache-control" content="no-store" /> but I imagin that the ops caches are my problem. How can I disable them? Than you -- 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
|
Frederic,
I doubt very much that the Orbeon Forms cache has anything to do with this, especially since you use a submission with replace="instance", which doesn't reload the page in the first place. One thing to do is to see if your instance was really updated after submission. For that purpose, you can enable XForms logging, which logs instances after each Ajax request, or use the Instance Inspector. If you do any of this, do you see the instances update with the correct value for your image? Can you also check that /is/image actually returns the new image name? -Erik [hidden email] wrote: > Well in my last post the action attribute was empty. In my file I have a value but a wrong one. After correction, the instance is updated correctly. > > <xforms:submission ref="instance('budget2')" id="update-image-submission" method="post" action="/is/image" replace="instance"/> > > But now I have another problem : the instance bound to the <xforms-output meidatype="text/html"> receive always the same value : the tag <img src=".../file.jpg"/> and when the image change on the server side, it is not updated in the xsl view. > > In my xsl page, I force to not use the cache > <xhtml:meta http-equiv="cache-control" content="no-store" /> > but I imagin that the ops caches are my problem. How can I disable them? > > Than you 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 f.blanc
what can be the reason that a submission action is not executed? I receive randomly an error (perhaps might it be be the reason?): XForms error: Control is no longer bound to a node. Cannot set external value. When the error doesn't raise, the instance is correctly updated. Do you know what's going wrong ? view.xsl <xforms:instance id="budget-main"> ps. I have uncomment the lines corresponding to XFormsServer and PageFlowControllerProcessor in config/log4j.xml, restart tomcat, but no ops.log is generated. How can I see the log file? When I try to include the instance inspector by adding <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/>, nothing happens. Have I forgotten to do something to allow it to display? -- 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
|
Frédéric,
> what can be the reason that a submission action is not executed? Several reasons: an invalid instance, for example, or one containing required-but-emtpy fields. But you use validate="false", so you should be fine. > I receive randomly an error (perhaps might it be be the reason?): > XForms error: Control is no longer bound to a node. Cannot set > external value. This is not good. I haven't seen this error in a long time. Do you use a recent build? > I have uncomment the lines corresponding to XFormsServer and > PageFlowControllerProcessor in config/log4j.xml, restart tomcat, but > no ops.log is generated. How can I see the log file? It depends on what appender you have enabled in log4j.xml. If you have the ConsoleAppender enabled, the output should go to your Tomcat console. If you have SingleFileAppender or RollingFileAppender enabled, the output should go to a file, configured in the Appender sections above in the file. > When I try to include the instance inspector by adding > <widget:xforms-instance-inspector > xmlns:widget="http://orbeon.org/oxf/xml/widget"/>, nothing happens. Have > I forgotten to do something to allow it to display? You may be using a build of Orbeon Forms that doesn't yet include the Instance Inspector? -Erik -- 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 |
Eric,
After installing the nightly built to have the possibility to log submissions, I've noticed that the name of the xpl's input was "params" and not "instance" -_-' (that was the reason why the xpl file was never called...) and now it works! ^^ Except the fact that with the version we use (ops 3.5 milestone 1) I receive sometimes the message "control not bound, can't set value..." Thank you for your help! -- 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 Frédéric,
Have you figured out since you last posted this message why you were getting this message "control not bound, can't set value..."? Is this something that you can reproduce now? Alex On 2/8/07, [hidden email] <[hidden email]> wrote: > Eric, > > After installing the nightly built to have the possibility to log submissions, I've noticed that the name of the xpl's input was "params" and not "instance" -_-' (that was the reason why the xpl file was never called...) and now it works! ^^ > > Except the fact that with the version we use (ops 3.5 milestone 1) I receive sometimes the message "control not bound, can't set value..." > > Thank you for your help! > > > > -- > 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 2.0 Forms for the Enterprise 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 |