Thread: [Xsltforms-support] Rev 546 initialization error
Brought to you by:
alain-couthures
From: Grégoire C. <gco...@gm...> - 2012-06-25 10:12:38
|
Hi Alain, I updated from revision 535 to revision 546 and I now get the following error on loading my form : XSLTForms Exception -------------------------- Error initializing : ([object Object],"xsltforms-mainform-label-40")@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:5060 XsltForms_output([object Object],"xsltforms-mainform-label-40",0,[object Object],null)@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:6108 xsltforms_initImpl()@http://localhost:8080/:872 xsltforms_init()@http://localhost:8080/:1070 onload([object Event])@http://localhost:8080/:1 TypeError this.element is null --------------------------- Any idea of the problem? Thanks! Grégoire |
From: Alain C. <ala...@ag...> - 2012-06-25 18:32:45
|
Hi Grégoire, This is a very poor trace but I can read that it concerns a label and an output which might sound as how label/@ref is now implemented. Could you please check this? Could you give me a minimal test case? Thanks! -Alain Le 25/06/2012 12:12, Grégoire COLBERT a écrit : > Hi Alain, > > I updated from revision 535 to revision 546 and I now get the following > error on loading my form : > > XSLTForms Exception > -------------------------- > > Error initializing : > > ([object > Object],"xsltforms-mainform-label-40")@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:5060 > XsltForms_output([object Object],"xsltforms-mainform-label-40",0,[object > Object],null)@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:6108 > xsltforms_initImpl()@http://localhost:8080/:872 > xsltforms_init()@http://localhost:8080/:1070 > onload([object Event])@http://localhost:8080/:1 > > > TypeError > > this.element is null > > --------------------------- > > Any idea of the problem? > > Thanks! > Grégoire > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Grégoire C. <gco...@gm...> - 2012-06-25 19:42:59
|
Hi Alain, Thanks for the answer but I haven't checked the list for at least 6 months, can you tell me what has changed in the way label/@ref are processed? I have lots of <xf:label><xf:output ref="something"/></xf:label> in my form, should I change them to <xf:label ref="something"/>? Thanks! Grégoire Le 25/06/2012 20:32, Alain Couthures a écrit : > Hi Grégoire, > > This is a very poor trace but I can read that it concerns a label and an > output which might sound as how label/@ref is now implemented. > > Could you please check this? > > Could you give me a minimal test case? > > Thanks! > > -Alain > > Le 25/06/2012 12:12, Grégoire COLBERT a écrit : >> Hi Alain, >> >> I updated from revision 535 to revision 546 and I now get the following >> error on loading my form : >> >> XSLTForms Exception >> -------------------------- >> >> Error initializing : >> >> ([object >> Object],"xsltforms-mainform-label-40")@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:5060 >> >> XsltForms_output([object Object],"xsltforms-mainform-label-40",0,[object >> Object],null)@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:6108 >> >> xsltforms_initImpl()@http://localhost:8080/:872 >> xsltforms_init()@http://localhost:8080/:1070 >> onload([object Event])@http://localhost:8080/:1 >> >> >> TypeError >> >> this.element is null >> >> --------------------------- >> >> Any idea of the problem? >> >> Thanks! >> Grégoire >> >> ------------------------------------------------------------------------------ >> >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > > |
From: Alain C. <ala...@ag...> - 2012-06-25 19:49:18
|
Hi Grégoire, Both <xf:label><xf:output ref="something"/></xf:label> and <xf:label ref="something"/> should now work rendering the same content. -Alain Le 25/06/2012 21:42, Grégoire COLBERT a écrit : > Hi Alain, > > Thanks for the answer but I haven't checked the list for at least 6 > months, can you tell me what has changed in the way label/@ref are > processed? > > I have lots of <xf:label><xf:output ref="something"/></xf:label> in my > form, should I change them to <xf:label ref="something"/>? > > Thanks! > Grégoire > > Le 25/06/2012 20:32, Alain Couthures a écrit : >> Hi Grégoire, >> >> This is a very poor trace but I can read that it concerns a label and an >> output which might sound as how label/@ref is now implemented. >> >> Could you please check this? >> >> Could you give me a minimal test case? >> >> Thanks! >> >> -Alain >> >> Le 25/06/2012 12:12, Grégoire COLBERT a écrit : >>> Hi Alain, >>> >>> I updated from revision 535 to revision 546 and I now get the following >>> error on loading my form : >>> >>> XSLTForms Exception >>> -------------------------- >>> >>> Error initializing : >>> >>> ([object >>> Object],"xsltforms-mainform-label-40")@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:5060 >>> >>> XsltForms_output([object Object],"xsltforms-mainform-label-40",0,[object >>> Object],null)@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:6108 >>> >>> xsltforms_initImpl()@http://localhost:8080/:872 >>> xsltforms_init()@http://localhost:8080/:1070 >>> onload([object Event])@http://localhost:8080/:1 >>> >>> >>> TypeError >>> >>> this.element is null >>> >>> --------------------------- >>> >>> Any idea of the problem? >>> >>> Thanks! >>> Grégoire >>> >>> ------------------------------------------------------------------------------ >>> >>> Live Security Virtual Conference >>> Exclusive live event will cover all the ways today's security and >>> threat landscape has changed and how IT managers can respond. Discussions >>> will include endpoint security, mobile security and the latest in malware >>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>> _______________________________________________ >>> Xsltforms-support mailing list >>> Xsl...@li... >>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >>> >> > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Xsltforms-support mailing list > Xsl...@li... > https://lists.sourceforge.net/lists/listinfo/xsltforms-support > |
From: Grégoire C. <gco...@gm...> - 2012-06-26 07:59:17
|
Hi Alain, Line 873 of the generated XML file is : new XsltForms_output(xsltforms_subform,xsltforms_subform.id + "-label-40",0,new XsltForms_binding(null, "instance('instance-langues')/chaine[@name='groupees-par-commune'][@xml:lang=/configuration/langue]"),null); which corresponds to the first label of this select1 : <xf:select1 appearance="minimal" ref="instance('instance-tri-des-annonces')//xsl:variable[@name = 'grouper']/@select"> <xf:item> <xf:label model="modele-configuration" ref="instance('instance-langues')/chaine[@name='groupees-par-commune'][@xml:lang=/configuration/langue]"/> <xf:value>'par-commune'</xf:value> </xf:item> <xf:item> <xf:label model="modele-configuration" ref="instance('instance-langues')/chaine[@name='dans-une-liste-globale'][@xml:lang=/configuration/langue]"/> <xf:value>'liste-globale'</xf:value> </xf:item> <xf:action ev:event="xforms-value-changed"> <xf:dispatch name="action-monter-drapeau-et-appeler-trier-annonces" targetid="modele-annonces"/> </xf:action> </xf:select1> Do you see something wrong with this select1? Thanks! Grégoire Le 25/06/2012 21:49, Alain Couthures a écrit : > Hi Grégoire, > > Both <xf:label><xf:output ref="something"/></xf:label> and <xf:label > ref="something"/> should now work rendering the same content. > > -Alain > > Le 25/06/2012 21:42, Grégoire COLBERT a écrit : >> Hi Alain, >> >> Thanks for the answer but I haven't checked the list for at least 6 >> months, can you tell me what has changed in the way label/@ref are >> processed? >> >> I have lots of <xf:label><xf:output ref="something"/></xf:label> in my >> form, should I change them to <xf:label ref="something"/>? >> >> Thanks! >> Grégoire >> >> Le 25/06/2012 20:32, Alain Couthures a écrit : >>> Hi Grégoire, >>> >>> This is a very poor trace but I can read that it concerns a label and an >>> output which might sound as how label/@ref is now implemented. >>> >>> Could you please check this? >>> >>> Could you give me a minimal test case? >>> >>> Thanks! >>> >>> -Alain >>> >>> Le 25/06/2012 12:12, Grégoire COLBERT a écrit : >>>> Hi Alain, >>>> >>>> I updated from revision 535 to revision 546 and I now get the following >>>> error on loading my form : >>>> >>>> XSLTForms Exception >>>> -------------------------- >>>> >>>> Error initializing : >>>> >>>> ([object >>>> Object],"xsltforms-mainform-label-40")@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:5060 >>>> >>>> >>>> XsltForms_output([object >>>> Object],"xsltforms-mainform-label-40",0,[object >>>> Object],null)@http://localhost:8080/xsltforms/trunk/build/xsltforms.js:6108 >>>> >>>> >>>> xsltforms_initImpl()@http://localhost:8080/:872 >>>> xsltforms_init()@http://localhost:8080/:1070 >>>> onload([object Event])@http://localhost:8080/:1 >>>> >>>> >>>> TypeError >>>> >>>> this.element is null >>>> >>>> --------------------------- >>>> >>>> Any idea of the problem? >>>> >>>> Thanks! >>>> Grégoire >>>> >>>> ------------------------------------------------------------------------------ >>>> >>>> >>>> Live Security Virtual Conference >>>> Exclusive live event will cover all the ways today's security and >>>> threat landscape has changed and how IT managers can respond. >>>> Discussions >>>> will include endpoint security, mobile security and the latest in >>>> malware >>>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >>>> _______________________________________________ >>>> Xsltforms-support mailing list >>>> Xsl...@li... >>>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >>>> >>> >> >> >> ------------------------------------------------------------------------------ >> >> Live Security Virtual Conference >> Exclusive live event will cover all the ways today's security and >> threat landscape has changed and how IT managers can respond. Discussions >> will include endpoint security, mobile security and the latest in malware >> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ >> _______________________________________________ >> Xsltforms-support mailing list >> Xsl...@li... >> https://lists.sourceforge.net/lists/listinfo/xsltforms-support >> > > |
From: Alain C. <ala...@ag...> - 2012-07-01 21:14:37
|
Hi Grégoire, When I added label/@ref in every situation, I didn't forget to consider select1/itemset/label/@ref as a special case but I forgot to consider select1/item/label/@ref too... Thank you for pointing at this! -Alain Please check again with rev 547. Le 26/06/2012 09:59, Grégoire COLBERT a écrit : > Hi Alain, > > Line 873 of the generated XML file is : > > new XsltForms_output(xsltforms_subform,xsltforms_subform.id + > "-label-40",0,new XsltForms_binding(null, > "instance('instance-langues')/chaine[@name='groupees-par-commune'][@xml:lang=/configuration/langue]"),null); > > which corresponds to the first label of this select1 : > > <xf:select1 appearance="minimal" > ref="instance('instance-tri-des-annonces')//xsl:variable[@name = > 'grouper']/@select"> > <xf:item> > <xf:label model="modele-configuration" > ref="instance('instance-langues')/chaine[@name='groupees-par-commune'][@xml:lang=/configuration/langue]"/> > <xf:value>'par-commune'</xf:value> > </xf:item> > <xf:item> > <xf:label model="modele-configuration" > ref="instance('instance-langues')/chaine[@name='dans-une-liste-globale'][@xml:lang=/configuration/langue]"/> > <xf:value>'liste-globale'</xf:value> > </xf:item> > <xf:action ev:event="xforms-value-changed"> > <xf:dispatch name="action-monter-drapeau-et-appeler-trier-annonces" > targetid="modele-annonces"/> > </xf:action> > </xf:select1> > > Do you see something wrong with this select1? > > Thanks! > Grégoire > > |
From: Grégoire C. <gco...@gm...> - 2012-07-02 10:03:23
|
Hi Alain, It's ok with rev 547. Grégoire Le 01/07/2012 23:13, Alain Couthures a écrit : > Hi Grégoire, > > When I added label/@ref in every situation, I didn't forget to consider > select1/itemset/label/@ref as a special case but I forgot to consider > select1/item/label/@ref too... > > Thank you for pointing at this! > > -Alain > > Please check again with rev 547. > > Le 26/06/2012 09:59, Grégoire COLBERT a écrit : >> Hi Alain, >> >> Line 873 of the generated XML file is : >> >> new XsltForms_output(xsltforms_subform,xsltforms_subform.id + >> "-label-40",0,new XsltForms_binding(null, >> "instance('instance-langues')/chaine[@name='groupees-par-commune'][@xml:lang=/configuration/langue]"),null); >> >> >> which corresponds to the first label of this select1 : >> >> <xf:select1 appearance="minimal" >> ref="instance('instance-tri-des-annonces')//xsl:variable[@name = >> 'grouper']/@select"> >> <xf:item> >> <xf:label model="modele-configuration" >> ref="instance('instance-langues')/chaine[@name='groupees-par-commune'][@xml:lang=/configuration/langue]"/> >> >> <xf:value>'par-commune'</xf:value> >> </xf:item> >> <xf:item> >> <xf:label model="modele-configuration" >> ref="instance('instance-langues')/chaine[@name='dans-une-liste-globale'][@xml:lang=/configuration/langue]"/> >> >> <xf:value>'liste-globale'</xf:value> >> </xf:item> >> <xf:action ev:event="xforms-value-changed"> >> <xf:dispatch name="action-monter-drapeau-et-appeler-trier-annonces" >> targetid="modele-annonces"/> >> </xf:action> >> </xf:select1> >> >> Do you see something wrong with this select1? >> >> Thanks! >> Grégoire >> >> > |