Re: Can I disable template proessing for a section of my TML file ?
I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo bar ... gets translated into ... foo lt; bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield joshcanfi...@gmail.com Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Can I disable template proessing for a section of my TML file ?
This ugly hack solved the problem but is far from what we want :-) if (counter t:outputraw value=literal: / 1) { /Gunnar 2011/1/17 Gunnar Eketrapp gunnar.eketr...@gmail.com I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo bar ... gets translated into ... foo lt; bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield joshcanfi...@gmail.com Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Can I disable template proessing for a section of my TML file ?
Does enclosing the JS in a CData section help? http://en.wikipedia.org/wiki/CDATA Luke On 17 Jan 2011, at 11:40, Gunnar Eketrapp wrote: This ugly hack solved the problem but is far from what we want :-) if (counter t:outputraw value=literal: / 1) { /Gunnar 2011/1/17 Gunnar Eketrapp gunnar.eketr...@gmail.com I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo bar ... gets translated into ... foo lt; bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield joshcanfi...@gmail.com Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Can I disable template proessing for a section of my TML file ?
No that didn't work either. 2011/1/17 Luke Wilson l...@viscri.co.uk Does enclosing the JS in a CData section help? http://en.wikipedia.org/wiki/CDATA Luke On 17 Jan 2011, at 11:40, Gunnar Eketrapp wrote: This ugly hack solved the problem but is far from what we want :-) if (counter t:outputraw value=literal: / 1) { /Gunnar 2011/1/17 Gunnar Eketrapp gunnar.eketr...@gmail.com I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo bar ... gets translated into ... foo lt; bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield joshcanfi...@gmail.com Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Can I disable template proessing for a section of my TML file ?
Perhaps you can you engineer it so you use addScript and pass all dynamic items to a constructor, keeping your JS in a separate file. Luke On 17 Jan 2011, at 12:33, Gunnar Eketrapp wrote: No that didn't work either. 2011/1/17 Luke Wilson l...@viscri.co.uk Does enclosing the JS in a CData section help? http://en.wikipedia.org/wiki/CDATA Luke On 17 Jan 2011, at 11:40, Gunnar Eketrapp wrote: This ugly hack solved the problem but is far from what we want :-) if (counter t:outputraw value=literal: / 1) { /Gunnar 2011/1/17 Gunnar Eketrapp gunnar.eketr...@gmail.com I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo bar ... gets translated into ... foo lt; bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield joshcanfi...@gmail.com Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Can I disable template proessing for a section of my TML file ?
Yea it can be solved but the code that I ported generated javascript inside template code so the easy way was to just do the same in T5 ... 2011/1/17 Luke Wilson l...@viscri.co.uk Perhaps you can you engineer it so you use addScript and pass all dynamic items to a constructor, keeping your JS in a separate file. Luke On 17 Jan 2011, at 12:33, Gunnar Eketrapp wrote: No that didn't work either. 2011/1/17 Luke Wilson l...@viscri.co.uk Does enclosing the JS in a CData section help? http://en.wikipedia.org/wiki/CDATA Luke On 17 Jan 2011, at 11:40, Gunnar Eketrapp wrote: This ugly hack solved the problem but is far from what we want :-) if (counter t:outputraw value=literal: / 1) { /Gunnar 2011/1/17 Gunnar Eketrapp gunnar.eketr...@gmail.com I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo bar ... gets translated into ... foo lt; bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield joshcanfi...@gmail.com Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Can I disable template proessing for a section of my TML file ?
Putting it in an html comment didn't work? Can you share a snippet that is broken? The smallest possible. On Jan 17, 2011 3:34 AM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo bar ... gets translated into ... foo lt; bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield joshcanfi...@gmail.com Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Can I disable template proessing for a section of my TML file ?
It's just to include some javascript that includes a or a . E.g. ... if (counter 1) { ... } ... This will be rendered by T5 as .. ... if (counter gt; 1) { ... } ... .. which is broken. 2011/1/17 Josh Canfield joshcanfi...@gmail.com Putting it in an html comment didn't work? Can you share a snippet that is broken? The smallest possible. On Jan 17, 2011 3:34 AM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: I encountered this problem again .. I.e. am adding javascript dynamically but expresions such as foo bar ... gets translated into ... foo lt; bar ... and fails to execute ... I tried the hide from parser method as Josh mentioned but T5 was not that easy to fool ... Is there any easy way to turn off the template parsing for a portion of the .tml file !? The DOCTYPE as mentioned by Borut didn't help either. Thanks in advance Gunnar Eketrapp That system created javascript dynamiucally which fails in T5 2010/12/22 Josh Canfield joshcanfi...@gmail.com Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Can I disable template proessing for a section of my TML file ?
Use the good old html/xml comment, used for years to hide javascript from old browsers. script var fromPage = '${pojo.property }'; //-- hide javascript from xml parser. // -- /script On Dec 21, 2010 11:13 PM, Gunnar Eketrapp gunnar.eketr...@gmail.com wrote: Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp
Can I disable template proessing for a section of my TML file ?
Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp
Re: Can I disable template proessing for a section of my TML file ?
Hi, might be unrelated, but add the following DOCTYPE at the very top of your TML: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; -Borut 2010/12/22 Gunnar Eketrapp gunnar.eketr...@gmail.com Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp
Re: Can I disable template proessing for a section of my TML file ?
Hi and thanks for the tip! I tried it but got the same error ... Question: Wich doctype is the preferred one when using T5.2. I am using !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; TIA, Gunnar 2010/12/22 Borut Bolčina borut.bolc...@gmail.com Hi, might be unrelated, but add the following DOCTYPE at the very top of your TML: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; -Borut 2010/12/22 Gunnar Eketrapp gunnar.eketr...@gmail.com Hi! I am in the process of adding some jquery-ui controls. For testing purposes I added a javascript section in my TML file but I then got errors like ... Failure parsing template classpath:utskicket/pages/group/SelectMembers.tml: The entity name must immediately follow the '' in the entity reference 43 }44 45 jQuery( #tags )46 // don't navigate away from the field on tab when selecting an item47 .bind( keydown, function( event ) {48 if ( event.keyCode === $.ui.keyCode.TAB 49 $( this ).data( autocomplete ).menu.active ) {50 event.preventDefault();51 }52 })53 .autocomplete({ So my question is can I insert a bigger chunk of javascript and tell T5 not to parse it !? Or do I have to move it to a separate .js file !? Btw T5 rocks! Thanks in Advance, Gunnar Eketrapp -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo