Hello all,
It's perhaps a dummy question but I don't find the solution. I'm new with the use of event and I don't see where is the problem: A select option change a node of an instance and I want react with a xforms-value-changed event but there is no reaction. When I use a xforms-select event on the select node (between the <!-- --> ), there is a reaction but also two other problems: the new select value is not copy and if I select an other value, the <xf:delete> is inactif and i see the old value copy. So, I have 3 questions. And this is my Orbeon version: Orbeon Forms 3.8.0.rc1.201005020325 CE thanks for all yours responses Fabien This a test-file to see the problem: <?xml version="1.0" encoding="ISO-8859-1"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>XForms</title> <xf:model id="connexionModel"> <xf:instance id="dialogueXplInstance" xmlns=""> <dialogue/> </xf:instance> <xf:instance id="listEtabInscritInstance" xmlns=""> <listEtabInscrit> <etab> <rne>0671A</rne> </etab> <etab> <rne>0671Z</rne> </etab> </listEtabInscrit> </xf:instance> <xf:instance id="partsListesInstance" xmlns=""> <partsListes > <selectionClasses id="selectionClassesID"></selectionClasses> <selectionParticipant> <selection/> </selectionParticipant> </partsListes> </xf:instance> <xf:bind nodeset="xxforms:instance('partsListesInstance')/selectionClasses" id="selectionClassesBindID"/> <xf:action ev:event="xforms-value-changed" ev:observer="selectionClassesID"> <!-- <xf:action ev:event="xforms-select" ev:observer="selectClasseID"> --> <xf:delete nodeset="xxforms:instance('dialogueXplInstance')"/> <xf:insert context="xxforms:instance('dialogueXplInstance')" origin="xxforms:instance('listEtabInscritInstance')"/> <xf:insert context="xxforms:instance('dialogueXplInstance')" origin="xxforms:instance('partsListesInstance')"/> </xf:action> </xf:model> </head> <body> <xf:select id="selectClasseID" ref="xxforms:instance('partsListesInstance')/selectionClasses" appearance="compact"> <xf:label>Label: </xf:label> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab//rne"> <xf:label ref="."/> <xf:value ref="."/> </xf:itemset> </xf:select> <fr:xforms-inspector/> </body> </html> -- 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 |
Thanks Alex for your response. The file test is ok but i have always a
problem with all my other files :-) This is a description of all my files: My main file is a .xsl file who: - get 5 differents models from .xml files with <xsl:copy-of />(1 contains "dialogueXplInstance" and "partsListesInstance", an other contains a <xf:instance id="listEtabInscritInstance" src="input:instance" >) - get a .xml file for the view an inner, there are several xi:include, and in one, there is the <xf:select id="selectClasseID" /> When I test your soluce in my project, there is no react to the event. So, I test to put the <xf:action /> inner the <xf:select /> and in this condition, it's ok. This is my question: all these differents models, xslt-transform ans xinclude could kill the event from my <xf:select> to my <xf:bind>? If the response is no, i will try to found the bug. Thanks again for your response. Fabien Le 09/07/2010 06:55, Alessandro Vernet a écrit : > Fabien, > > 1. The listener on xforms-value-changed wasn't called because of a > typo (selectionClassesID instead of selectClasseID). > 2. The xforms:delete wasn't doing anything because the expression > should be xxforms:instance('dialogueXplInstance')/* (you want to > remove all the elements inside the document element). > 3. For this you want to use xforms-value-changed, as xforms-select > happens before the selected value is set i the instance. > > I attached your example with those updated. > > Alex > > On Tue, Jul 6, 2010 at 1:33 PM, Fabien GUENEGO<[hidden email]> wrote: > >> Hello all, >> >> It's perhaps a dummy question but I don't find the solution. I'm new with >> the use of event and I don't see where is the problem: >> >> A select option change a node of an instance and I want react with a >> xforms-value-changed event but there is no reaction. >> When I use a xforms-select event on the select node (between the<!-- --> ), >> there is a reaction but also two other problems: the new select value is not >> copy and if I select an other value, the<xf:delete> is inactif and i see >> the old value copy. >> >> So, I have 3 questions. And this is my Orbeon version: Orbeon Forms >> 3.8.0.rc1.201005020325 CE >> >> thanks for all yours responses >> Fabien >> >> >> This a test-file to see the problem: >> >> <?xml version="1.0" encoding="ISO-8859-1"?> >> <html xmlns="http://www.w3.org/1999/xhtml" >> xmlns:ev="http://www.w3.org/2001/xml-events" >> xmlns:fr="http://orbeon.org/oxf/xml/form-runner" >> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >> xmlns:xf="http://www.w3.org/2002/xforms"> >> <head> >> <title>XForms</title> >> >> <xf:model id="connexionModel"> >> >> <xf:instance id="dialogueXplInstance" xmlns=""> >> <dialogue/> >> </xf:instance> >> >> <xf:instance id="listEtabInscritInstance" xmlns=""> >> <listEtabInscrit> >> <etab> <rne>0671A</rne> </etab> >> <etab> <rne>0671Z</rne> </etab> >> </listEtabInscrit> >> </xf:instance> >> >> <xf:instance id="partsListesInstance" xmlns=""> >> <partsListes> >> <selectionClasses id="selectionClassesID"></selectionClasses> >> <selectionParticipant> >> <selection/> >> </selectionParticipant> >> </partsListes> >> </xf:instance> >> >> >> <xf:bind nodeset="xxforms:instance('partsListesInstance')/selectionClasses" >> id="selectionClassesBindID"/> >> <xf:action ev:event="xforms-value-changed" ev:observer="selectionClassesID"> >> <!-- >> <xf:action ev:event="xforms-select" ev:observer="selectClasseID"> >> --> >> <xf:delete nodeset="xxforms:instance('dialogueXplInstance')"/> >> <xf:insert context="xxforms:instance('dialogueXplInstance')" >> origin="xxforms:instance('listEtabInscritInstance')"/> >> <xf:insert context="xxforms:instance('dialogueXplInstance')" >> origin="xxforms:instance('partsListesInstance')"/> >> </xf:action> >> >> >> </xf:model> >> </head> >> <body> >> >> <xf:select id="selectClasseID" >> ref="xxforms:instance('partsListesInstance')/selectionClasses" >> appearance="compact"> >> <xf:label>Label:</xf:label> >> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab//rne"> >> <xf:label ref="."/> >> <xf:value ref="."/> >> </xf:itemset> >> </xf:select> >> >> <fr:xforms-inspector/> >> >> </body> >> </html> >> >> >> >> -- >> 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 |
In reply to this post by Fabien GUENEGO
It's me again :-)
Perhaps for help to find the soluce this is an experience on my files: in the xi-include .xml with the <xf:select/> I try to put the <action/> near the select tag. An extract from the file: ... <xf:group appearance="xxforms:fieldset"> <!-- Choix de la classe-groupe --> <xf:select id="selectClasseID" ref="xxforms:instance('partsListesInstance')/selectionClasses" appearance="compact"> <xf:label>Classes/groupes: </xf:label> <xf:itemset nodeset="xxforms:instance('ensembleClasseGroupeInstance')/classes//classe"> <xf:label ref="nom"/> <xf:value ref="nom"/> </xf:itemset> <xf:action ev:event="xforms-value-changed"> <xf:delete nodeset="xxforms:instance('dialogueXplInstance')/*"/> <xf:insert context="xxforms:instance('dialogueXplInstance')" origin="xxforms:instance('sessionInstance')"/> <xf:insert context="xxforms:instance('dialogueXplInstance')" origin="xxforms:instance('partsListesInstance')"/> </xf:action> </xf:select> <!-- <xf:action ev:event="xforms-value-changed" ev:observer="selectClasseID"> <xf:delete nodeset="xxforms:instance('dialogueXplInstance')/*"/> <xf:insert context="xxforms:instance('dialogueXplInstance')" origin="xxforms:instance('sessionInstance')"/> <xf:insert context="xxforms:instance('dialogueXplInstance')" origin="xxforms:instance('partsListesInstance')"/> </xf:action> --> </xf:group> ... This version is Ok. but when a change the place of <!-- -->, it's not ok... My question is the same: all these differents models, xslt-transform ans xinclude could kill the event from my <xf:select>? thanks Fabien PS: the last mail I post : Thanks Alex for your response. The file test is ok but i have always a problem with all my other files :-) This is a description of all my files: My main file is a .xsl file who: - get 5 differents models from .xml files with <xsl:copy-of />(1 contains "dialogueXplInstance" and "partsListesInstance", an other contains a <xf:instance id="listEtabInscritInstance" src="input:instance" >) - get a .xml file for the view an inner, there are several xi:include, and in one, there is the <xf:select id="selectClasseID" /> When I test your soluce in my project, there is no react to the event. So, I test to put the <xf:action /> inner the <xf:select /> and in this condition, it's ok. This is my question: all these differents models, xslt-transform ans xinclude could kill the event from my <xf:select> to my <xf:bind>? If the response is no, i will try to found the bug. Thanks again for your response. Fabien Le 09/07/2010 06:55, Alessandro Vernet a écrit : Fabien, -- 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 |
Administrator
|
In reply to this post by Fabien GUENEGO
Fabien,
Having multiple models should not be a problem. I guess you'll have to simplify your code as much as possible, moving towards the test case that works... until it works, and you'll have figured out what makes it fail. And then, if you think it is a bug, feel free to create a minimal example showing the issue, and we can investigate it. Alex On Fri, Jul 9, 2010 at 2:39 AM, Fabien GUENEGO <[hidden email]> wrote: > Thanks Alex for your response. The file test is ok but i have always a > problem with all my other files :-) > > This is a description of all my files: > > My main file is a .xsl file who: > - get 5 differents models from .xml files with <xsl:copy-of />(1 contains > "dialogueXplInstance" and "partsListesInstance", an other contains a > <xf:instance id="listEtabInscritInstance" src="input:instance" >) > - get a .xml file for the view an inner, there are several xi:include, and > in one, there is the <xf:select id="selectClasseID" /> > > When I test your soluce in my project, there is no react to the event. So, I > test to put the <xf:action /> inner the <xf:select /> and in this condition, > it's ok. > > This is my question: > all these differents models, xslt-transform ans xinclude could kill the > event from my <xf:select> to my <xf:bind>? > > If the response is no, i will try to found the bug. > > Thanks again for your response. > Fabien > > > > Le 09/07/2010 06:55, Alessandro Vernet a écrit : >> >> Fabien, >> >> 1. The listener on xforms-value-changed wasn't called because of a >> typo (selectionClassesID instead of selectClasseID). >> 2. The xforms:delete wasn't doing anything because the expression >> should be xxforms:instance('dialogueXplInstance')/* (you want to >> remove all the elements inside the document element). >> 3. For this you want to use xforms-value-changed, as xforms-select >> happens before the selected value is set i the instance. >> >> I attached your example with those updated. >> >> Alex >> >> On Tue, Jul 6, 2010 at 1:33 PM, Fabien GUENEGO<[hidden email]> >> wrote: >> >>> >>> Hello all, >>> >>> It's perhaps a dummy question but I don't find the solution. I'm new with >>> the use of event and I don't see where is the problem: >>> >>> A select option change a node of an instance and I want react with a >>> xforms-value-changed event but there is no reaction. >>> When I use a xforms-select event on the select node (between the<!-- --> >>> ), >>> there is a reaction but also two other problems: the new select value is >>> not >>> copy and if I select an other value, the<xf:delete> is inactif and i see >>> the old value copy. >>> >>> So, I have 3 questions. And this is my Orbeon version: Orbeon Forms >>> 3.8.0.rc1.201005020325 CE >>> >>> thanks for all yours responses >>> Fabien >>> >>> >>> This a test-file to see the problem: >>> >>> <?xml version="1.0" encoding="ISO-8859-1"?> >>> <html xmlns="http://www.w3.org/1999/xhtml" >>> xmlns:ev="http://www.w3.org/2001/xml-events" >>> xmlns:fr="http://orbeon.org/oxf/xml/form-runner" >>> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >>> xmlns:xf="http://www.w3.org/2002/xforms"> >>> <head> >>> <title>XForms</title> >>> >>> <xf:model id="connexionModel"> >>> >>> <xf:instance id="dialogueXplInstance" xmlns=""> >>> <dialogue/> >>> </xf:instance> >>> >>> <xf:instance id="listEtabInscritInstance" xmlns=""> >>> <listEtabInscrit> >>> <etab> <rne>0671A</rne> </etab> >>> <etab> <rne>0671Z</rne> </etab> >>> </listEtabInscrit> >>> </xf:instance> >>> >>> <xf:instance id="partsListesInstance" xmlns=""> >>> <partsListes> >>> <selectionClasses id="selectionClassesID"></selectionClasses> >>> <selectionParticipant> >>> <selection/> >>> </selectionParticipant> >>> </partsListes> >>> </xf:instance> >>> >>> >>> <xf:bind >>> nodeset="xxforms:instance('partsListesInstance')/selectionClasses" >>> id="selectionClassesBindID"/> >>> <xf:action ev:event="xforms-value-changed" >>> ev:observer="selectionClassesID"> >>> <!-- >>> <xf:action ev:event="xforms-select" ev:observer="selectClasseID"> >>> --> >>> <xf:delete nodeset="xxforms:instance('dialogueXplInstance')"/> >>> <xf:insert context="xxforms:instance('dialogueXplInstance')" >>> origin="xxforms:instance('listEtabInscritInstance')"/> >>> <xf:insert context="xxforms:instance('dialogueXplInstance')" >>> origin="xxforms:instance('partsListesInstance')"/> >>> </xf:action> >>> >>> >>> </xf:model> >>> </head> >>> <body> >>> >>> <xf:select id="selectClasseID" >>> ref="xxforms:instance('partsListesInstance')/selectionClasses" >>> appearance="compact"> >>> <xf:label>Label:</xf:label> >>> <xf:itemset >>> nodeset="xxforms:instance('listEtabInscritInstance')/etab//rne"> >>> <xf:label ref="."/> >>> <xf:value ref="."/> >>> </xf:itemset> >>> </xf:select> >>> >>> <fr:xforms-inspector/> >>> >>> </body> >>> </html> >>> >>> >>> >>> -- >>> 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
I am out of the office until 26th July *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
In reply to this post by Alessandro Vernet
Hello Alex,
after a lot of unit tests I found where was the problem. It was not in all my models, xi-include and xslt-transform but in the fr:tabview tag! Now, it's yours problem :-) Fabien This is the short test file: <?xml version="1.0" encoding="ISO-8859-1"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xf="http://www.w3.org/2002/xforms"> <head> <title>XForms</title> <xf:model id="connexionModel"> <xf:instance id="dialogueXplInstance" xmlns=""> <dialogue/> </xf:instance> <xf:instance id="listEtabInscritInstance" xmlns=""> <listEtabInscrit> <etab> <rne type="optgroup">ABC</rne> </etab> <etab> <rne type="value">0671A</rne> </etab> <etab> <rne type="optgroup">DEF</rne> </etab> <etab> <rne type="value">0671Z</rne> </etab> <etab> <rne type="value">06789</rne> </etab> </listEtabInscrit> </xf:instance> <xf:instance id="partsListesInstance" xmlns=""> <partsListes > <selectionClasses id="selectionClassesID"></selectionClasses> <selectionParticipant> <selection/> </selectionParticipant> </partsListes> </xf:instance> </xf:model> </head> <body> <!-- --> <fr:tabview> <fr:tab id="tous" selected="true"> <fr:label>Liste de tous les participants </fr:label> <xf:select id="selectClasseID" ref="xxforms:instance('partsListesInstance')/selectionClasses" appearance="compact"> <xf:label>Label: </xf:label> <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab//rne"> <optgroup label="coucou"> <xf:label ref="."/> <xf:value ref="."/> </optgroup> </xf:itemset> </xf:select> <xf:action ev:event="xforms-value-changed" ev:observer="selectClasseID"> <xf:delete nodeset="xxforms:instance('dialogueXplInstance')/*"/> <xf:insert context="xxforms:instance('dialogueXplInstance')" origin="xxforms:instance('listEtabInscritInstance')"/> <xf:insert context="xxforms:instance('dialogueXplInstance')" origin="xxforms:instance('partsListesInstance')"/> </xf:action> <!-- --> </fr:tab> </fr:tabview> <fr:xforms-inspector/> </body> </html> Le 10/07/2010 02:49, Alessandro Vernet a écrit : > Fabien, > > Having multiple models should not be a problem. I guess you'll have to > simplify your code as much as possible, moving towards the test case > that works... until it works, and you'll have figured out what makes > it fail. And then, if you think it is a bug, feel free to create a > minimal example showing the issue, and we can investigate it. > > Alex > > On Fri, Jul 9, 2010 at 2:39 AM, Fabien GUENEGO<[hidden email]> wrote: > >> Thanks Alex for your response. The file test is ok but i have always a >> problem with all my other files :-) >> >> This is a description of all my files: >> >> My main file is a .xsl file who: >> - get 5 differents models from .xml files with<xsl:copy-of />(1 contains >> "dialogueXplInstance" and "partsListesInstance", an other contains a >> <xf:instance id="listEtabInscritInstance" src="input:instance">) >> - get a .xml file for the view an inner, there are several xi:include, and >> in one, there is the<xf:select id="selectClasseID" /> >> >> When I test your soluce in my project, there is no react to the event. So, I >> test to put the<xf:action /> inner the<xf:select /> and in this condition, >> it's ok. >> >> This is my question: >> all these differents models, xslt-transform ans xinclude could kill the >> event from my<xf:select> to my<xf:bind>? >> >> If the response is no, i will try to found the bug. >> >> Thanks again for your response. >> Fabien >> >> >> >> Le 09/07/2010 06:55, Alessandro Vernet a écrit : >> >>> Fabien, >>> >>> 1. The listener on xforms-value-changed wasn't called because of a >>> typo (selectionClassesID instead of selectClasseID). >>> 2. The xforms:delete wasn't doing anything because the expression >>> should be xxforms:instance('dialogueXplInstance')/* (you want to >>> remove all the elements inside the document element). >>> 3. For this you want to use xforms-value-changed, as xforms-select >>> happens before the selected value is set i the instance. >>> >>> I attached your example with those updated. >>> >>> Alex >>> >>> On Tue, Jul 6, 2010 at 1:33 PM, Fabien GUENEGO<[hidden email]> >>> wrote: >>> >>> >>>> Hello all, >>>> >>>> It's perhaps a dummy question but I don't find the solution. I'm new with >>>> the use of event and I don't see where is the problem: >>>> >>>> A select option change a node of an instance and I want react with a >>>> xforms-value-changed event but there is no reaction. >>>> When I use a xforms-select event on the select node (between the<!-- --> >>>> ), >>>> there is a reaction but also two other problems: the new select value is >>>> not >>>> copy and if I select an other value, the<xf:delete> is inactif and i see >>>> the old value copy. >>>> >>>> So, I have 3 questions. And this is my Orbeon version: Orbeon Forms >>>> 3.8.0.rc1.201005020325 CE >>>> >>>> thanks for all yours responses >>>> Fabien >>>> >>>> >>>> This a test-file to see the problem: >>>> >>>> <?xml version="1.0" encoding="ISO-8859-1"?> >>>> <html xmlns="http://www.w3.org/1999/xhtml" >>>> xmlns:ev="http://www.w3.org/2001/xml-events" >>>> xmlns:fr="http://orbeon.org/oxf/xml/form-runner" >>>> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >>>> xmlns:xf="http://www.w3.org/2002/xforms"> >>>> <head> >>>> <title>XForms</title> >>>> >>>> <xf:model id="connexionModel"> >>>> >>>> <xf:instance id="dialogueXplInstance" xmlns=""> >>>> <dialogue/> >>>> </xf:instance> >>>> >>>> <xf:instance id="listEtabInscritInstance" xmlns=""> >>>> <listEtabInscrit> >>>> <etab> <rne>0671A</rne> </etab> >>>> <etab> <rne>0671Z</rne> </etab> >>>> </listEtabInscrit> >>>> </xf:instance> >>>> >>>> <xf:instance id="partsListesInstance" xmlns=""> >>>> <partsListes> >>>> <selectionClasses id="selectionClassesID"></selectionClasses> >>>> <selectionParticipant> >>>> <selection/> >>>> </selectionParticipant> >>>> </partsListes> >>>> </xf:instance> >>>> >>>> >>>> <xf:bind >>>> nodeset="xxforms:instance('partsListesInstance')/selectionClasses" >>>> id="selectionClassesBindID"/> >>>> <xf:action ev:event="xforms-value-changed" >>>> ev:observer="selectionClassesID"> >>>> <!-- >>>> <xf:action ev:event="xforms-select" ev:observer="selectClasseID"> >>>> --> >>>> <xf:delete nodeset="xxforms:instance('dialogueXplInstance')"/> >>>> <xf:insert context="xxforms:instance('dialogueXplInstance')" >>>> origin="xxforms:instance('listEtabInscritInstance')"/> >>>> <xf:insert context="xxforms:instance('dialogueXplInstance')" >>>> origin="xxforms:instance('partsListesInstance')"/> >>>> </xf:action> >>>> >>>> >>>> </xf:model> >>>> </head> >>>> <body> >>>> >>>> <xf:select id="selectClasseID" >>>> ref="xxforms:instance('partsListesInstance')/selectionClasses" >>>> appearance="compact"> >>>> <xf:label>Label:</xf:label> >>>> <xf:itemset >>>> nodeset="xxforms:instance('listEtabInscritInstance')/etab//rne"> >>>> <xf:label ref="."/> >>>> <xf:value ref="."/> >>>> </xf:itemset> >>>> </xf:select> >>>> >>>> <fr:xforms-inspector/> >>>> >>>> </body> >>>> </html> >>>> >>>> >>>> >>>> -- >>>> 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 |
I am out of the office until 26th July *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
Administrator
|
In reply to this post by Fabien GUENEGO
Hi Fabien,
Yes, indeed, it is our problem! Thank you for the reproducible test case. For now, I created a bug, with an even simpler example (linked below). In the meantime, you will need to place than event handler directly inside the <xforms:select>, without an ev:observer. http://forge.ow2.org/tracker/index.php?func=detail&aid=315195&group_id=168&atid=350207 Alex On Sat, Jul 10, 2010 at 12:35 PM, Fabien GUENEGO <[hidden email]> wrote: > Hello Alex, > > after a lot of unit tests I found where was the problem. It was not in all > my models, xi-include and xslt-transform but in the fr:tabview tag! > > Now, it's yours problem :-) > Fabien > > > This is the short test file: > > <?xml version="1.0" encoding="ISO-8859-1"?> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:ev="http://www.w3.org/2001/xml-events" > xmlns:fr="http://orbeon.org/oxf/xml/form-runner" > xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" > xmlns:xf="http://www.w3.org/2002/xforms"> > <head> > <title>XForms</title> > > <xf:model id="connexionModel"> > > <xf:instance id="dialogueXplInstance" xmlns=""> > <dialogue/> > </xf:instance> > > <xf:instance id="listEtabInscritInstance" xmlns=""> > <listEtabInscrit> > <etab> <rne type="optgroup">ABC</rne> </etab> > <etab> <rne type="value">0671A</rne> </etab> > <etab> <rne type="optgroup">DEF</rne> </etab> > <etab> <rne type="value">0671Z</rne> </etab> > <etab> <rne type="value">06789</rne> </etab> > </listEtabInscrit> > </xf:instance> > > <xf:instance id="partsListesInstance" xmlns=""> > <partsListes > > <selectionClasses id="selectionClassesID"></selectionClasses> > <selectionParticipant> > <selection/> > </selectionParticipant> > </partsListes> > </xf:instance> > </xf:model> > </head> > <body> > <!-- --> > <fr:tabview> > > <fr:tab id="tous" selected="true"> > <fr:label>Liste de tous les participants </fr:label> > > <xf:select id="selectClasseID" > ref="xxforms:instance('partsListesInstance')/selectionClasses" > appearance="compact"> > <xf:label>Label: </xf:label> > <xf:itemset nodeset="xxforms:instance('listEtabInscritInstance')/etab//rne"> > <optgroup label="coucou"> > <xf:label ref="."/> > <xf:value ref="."/> > </optgroup> > </xf:itemset> > </xf:select> > <xf:action ev:event="xforms-value-changed" ev:observer="selectClasseID"> > <xf:delete nodeset="xxforms:instance('dialogueXplInstance')/*"/> > <xf:insert context="xxforms:instance('dialogueXplInstance')" > > origin="xxforms:instance('listEtabInscritInstance')"/> > <xf:insert context="xxforms:instance('dialogueXplInstance')" > origin="xxforms:instance('partsListesInstance')"/> > </xf:action> > <!-- --> > </fr:tab> > </fr:tabview> > > <fr:xforms-inspector/> > > </body> > </html> > > > > Le 10/07/2010 02:49, Alessandro Vernet a écrit : >> >> Fabien, >> >> Having multiple models should not be a problem. I guess you'll have to >> simplify your code as much as possible, moving towards the test case >> that works... until it works, and you'll have figured out what makes >> it fail. And then, if you think it is a bug, feel free to create a >> minimal example showing the issue, and we can investigate it. >> >> Alex >> >> On Fri, Jul 9, 2010 at 2:39 AM, Fabien GUENEGO<[hidden email]> >> wrote: >> >>> >>> Thanks Alex for your response. The file test is ok but i have always a >>> problem with all my other files :-) >>> >>> This is a description of all my files: >>> >>> My main file is a .xsl file who: >>> - get 5 differents models from .xml files with<xsl:copy-of />(1 contains >>> "dialogueXplInstance" and "partsListesInstance", an other contains a >>> <xf:instance id="listEtabInscritInstance" src="input:instance">) >>> - get a .xml file for the view an inner, there are several xi:include, >>> and >>> in one, there is the<xf:select id="selectClasseID" /> >>> >>> When I test your soluce in my project, there is no react to the event. >>> So, I >>> test to put the<xf:action /> inner the<xf:select /> and in this >>> condition, >>> it's ok. >>> >>> This is my question: >>> all these differents models, xslt-transform ans xinclude could kill the >>> event from my<xf:select> to my<xf:bind>? >>> >>> If the response is no, i will try to found the bug. >>> >>> Thanks again for your response. >>> Fabien >>> >>> >>> >>> Le 09/07/2010 06:55, Alessandro Vernet a écrit : >>> >>>> >>>> Fabien, >>>> >>>> 1. The listener on xforms-value-changed wasn't called because of a >>>> typo (selectionClassesID instead of selectClasseID). >>>> 2. The xforms:delete wasn't doing anything because the expression >>>> should be xxforms:instance('dialogueXplInstance')/* (you want to >>>> remove all the elements inside the document element). >>>> 3. For this you want to use xforms-value-changed, as xforms-select >>>> happens before the selected value is set i the instance. >>>> >>>> I attached your example with those updated. >>>> >>>> Alex >>>> >>>> On Tue, Jul 6, 2010 at 1:33 PM, Fabien GUENEGO<[hidden email]> >>>> wrote: >>>> >>>> >>>>> >>>>> Hello all, >>>>> >>>>> It's perhaps a dummy question but I don't find the solution. I'm new >>>>> with >>>>> the use of event and I don't see where is the problem: >>>>> >>>>> A select option change a node of an instance and I want react with a >>>>> xforms-value-changed event but there is no reaction. >>>>> When I use a xforms-select event on the select node (between the<!-- >>>>> --> >>>>> ), >>>>> there is a reaction but also two other problems: the new select value >>>>> is >>>>> not >>>>> copy and if I select an other value, the<xf:delete> is inactif and i >>>>> see >>>>> the old value copy. >>>>> >>>>> So, I have 3 questions. And this is my Orbeon version: Orbeon Forms >>>>> 3.8.0.rc1.201005020325 CE >>>>> >>>>> thanks for all yours responses >>>>> Fabien >>>>> >>>>> >>>>> This a test-file to see the problem: >>>>> >>>>> <?xml version="1.0" encoding="ISO-8859-1"?> >>>>> <html xmlns="http://www.w3.org/1999/xhtml" >>>>> xmlns:ev="http://www.w3.org/2001/xml-events" >>>>> xmlns:fr="http://orbeon.org/oxf/xml/form-runner" >>>>> xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" >>>>> xmlns:xf="http://www.w3.org/2002/xforms"> >>>>> <head> >>>>> <title>XForms</title> >>>>> >>>>> <xf:model id="connexionModel"> >>>>> >>>>> <xf:instance id="dialogueXplInstance" xmlns=""> >>>>> <dialogue/> >>>>> </xf:instance> >>>>> >>>>> <xf:instance id="listEtabInscritInstance" xmlns=""> >>>>> <listEtabInscrit> >>>>> <etab> <rne>0671A</rne> </etab> >>>>> <etab> <rne>0671Z</rne> </etab> >>>>> </listEtabInscrit> >>>>> </xf:instance> >>>>> >>>>> <xf:instance id="partsListesInstance" xmlns=""> >>>>> <partsListes> >>>>> <selectionClasses id="selectionClassesID"></selectionClasses> >>>>> <selectionParticipant> >>>>> <selection/> >>>>> </selectionParticipant> >>>>> </partsListes> >>>>> </xf:instance> >>>>> >>>>> >>>>> <xf:bind >>>>> nodeset="xxforms:instance('partsListesInstance')/selectionClasses" >>>>> id="selectionClassesBindID"/> >>>>> <xf:action ev:event="xforms-value-changed" >>>>> ev:observer="selectionClassesID"> >>>>> <!-- >>>>> <xf:action ev:event="xforms-select" ev:observer="selectClasseID"> >>>>> --> >>>>> <xf:delete nodeset="xxforms:instance('dialogueXplInstance')"/> >>>>> <xf:insert context="xxforms:instance('dialogueXplInstance')" >>>>> origin="xxforms:instance('listEtabInscritInstance')"/> >>>>> <xf:insert context="xxforms:instance('dialogueXplInstance')" >>>>> origin="xxforms:instance('partsListesInstance')"/> >>>>> </xf:action> >>>>> >>>>> >>>>> </xf:model> >>>>> </head> >>>>> <body> >>>>> >>>>> <xf:select id="selectClasseID" >>>>> ref="xxforms:instance('partsListesInstance')/selectionClasses" >>>>> appearance="compact"> >>>>> <xf:label>Label:</xf:label> >>>>> <xf:itemset >>>>> nodeset="xxforms:instance('listEtabInscritInstance')/etab//rne"> >>>>> <xf:label ref="."/> >>>>> <xf:value ref="."/> >>>>> </xf:itemset> >>>>> </xf:select> >>>>> >>>>> <fr:xforms-inspector/> >>>>> >>>>> </body> >>>>> </html> >>>>> >>>>> >>>>> >>>>> -- >>>>> 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 > > -- Orbeon Forms - Web forms, open-source, for the Enterprise - http://www.orbeon.com/ My 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
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
I am out of the office until 26th July *********************************************************************************************** This email, including any attachment, is confidential and may be legally privileged. If you are not the intended recipient or if you have received this email in error, please inform the sender immediately by reply and delete all copies from your system. Do not retain, copy, disclose, distribute or otherwise use any of its contents.
Whilst we have taken reasonable precautions to ensure that this email has been swept for computer viruses, we cannot guarantee that this email does not contain such material and we therefore advise you to carry out your own virus checks. We do not accept liability for any damage or losses sustained as a result of such material.
Please note that incoming and outgoing email communications passing through our IT systems may be monitored and/or intercepted by us solely to determine whether the content is business related and compliant with company standards. *********************************************************************************************** The Stationery Office Limited is registered in England No. 3049649 at 10 Eastbourne Terrace, London, W2 6LG
|
Free forum by Nabble | Edit this page |