Re: T5 Javascript API - docs?

2011-12-04 Thread Andreas Bohnert
for the T5 Javascript Framework. There is no link at http://tapestry.apache.org/javascript.html and no link at http://tapestry.apache.org/javascript-faq.html. please, can someone help me out? Thanks, Andreas - To unsubscribe, e

Re: T5 Javascript API - docs?

2011-12-03 Thread Bob Harner
and examples. andreas Steve Eynon schrieb: I just read the source (and it has the bonus of never being out of date!) Steve. On 2 December 2011 16:36, Andreas Bohnerta...@weberhofer.at  wrote: Hi, I'm sure it is somewhere but I can not find any documentation for the T5 Javascript Framework

T5 Javascript API - docs?

2011-12-02 Thread Andreas Bohnert
Hi, I'm sure it is somewhere but I can not find any documentation for the T5 Javascript Framework. There is no link at http://tapestry.apache.org/javascript.html and no link at http://tapestry.apache.org/javascript-faq.html. please, can someone help me out? Thanks, Andreas

Re: T5 Javascript API - docs?

2011-12-02 Thread Steve Eynon
I just read the source (and it has the bonus of never being out of date!) Steve. On 2 December 2011 16:36, Andreas Bohnert a...@weberhofer.at wrote: Hi, I'm sure it is somewhere but I can not find any documentation for the T5 Javascript Framework. There is no link at http

Re: T5 Javascript API - docs?

2011-12-02 Thread Andreas Bohnert
:36, Andreas Bohnerta...@weberhofer.at wrote: Hi, I'm sure it is somewhere but I can not find any documentation for the T5 Javascript Framework. There is no link at http://tapestry.apache.org/javascript.html and no link at http://tapestry.apache.org/javascript-faq.html. please, can someone help

Re: T5: Javascript problem

2010-12-16 Thread Andreas Andreou
I dont like this way of refering to nodes ( document.entryForm.oosComment ) i'm not sure how many browsers fully support this but it looks like this can work when nodes have the name attribute set. If i remember correctly, T5.1 used to include a name in each form but this was removed in 5.2 -

RE: T5: Javascript problem

2010-12-16 Thread Newham, Cameron
Thanks Andreas. Yes, name attribute was the problem. I've changed to using getElementById and it's working again. c. -Original Message- From: andre...@gmail.com [mailto:andre...@gmail.com] On Behalf Of Andreas Andreou Sent: 16 December 2010 10:12 To: Tapestry users Subject: Re: T5

Re: T5: Javascript problem

2010-12-16 Thread Nicolas Barrera
Hi Cameron, On Thu, Dec 16, 2010 at 8:03 AM, Newham, Cameron cameron.new...@bl.ukwrote: Should I be adding my JavaScript with JavaScriptSupport (and if so, where is documentation or an example? The only mention of JavaScript I can find is in the HOW-TOs which show it being added to the

Re: T5: Javascript problem

2010-12-16 Thread Nicolas Barrera
Yes, it's true it might not be the fastest or easiest way, but I think it's good that Tapestry forces you to things the right way. Nicolás.-

Re: T5: Javascript problem

2010-12-16 Thread Richard Hill
One use case I have for putting javascript in .tml is to get a function to execute after a zone update. Due to Tapestry attaching onclick event handlers to actionlinks (as opposed to using onclick attribute), it's not that easy afaik to guarantee your own method will get called afterwards (the

T5: javascript assets

2009-10-26 Thread Argo Vilberg
hi, In tapestry 5.1.0.5 javascript are combained together in one file: src=

Re: T5: javascript assets

2009-10-26 Thread Carl Crowder
There's a configuration variable you can set: tapestry.combine-scripts See http://tapestry.apache.org/tapestry5.1/guide/conf.html Argo Vilberg wrote: hi, In tapestry 5.1.0.5 javascript are combained together in one file: src=

Re: T5: javascript assets

2009-10-26 Thread Argo Vilberg
Secondly, how to tell tapestry production or development mode? 2009/10/26 Carl Crowder carl.crow...@taptu.com There's a configuration variable you can set: tapestry.combine-scripts See http://tapestry.apache.org/tapestry5.1/guide/conf.html Argo Vilberg wrote: hi, In tapestry 5.1.0.5

Re: T5: javascript assets

2009-10-26 Thread Argo Vilberg
In my environment are development mode but if i put some war to production server, there are production mode. Some time in AppModule.java is configuration.add(SymbolConstants.PRODUCTION_MODE, false); Argo 2009/10/26 Argo Vilberg wilps...@gmail.com Secondly, how to tell tapestry

Re: T5: javascript assets

2009-10-26 Thread Argo Vilberg
I put this line in AppModule.java public static void contributeApplicationDefaults( MappedConfigurationString, String configuration) { configuration.add(SymbolConstants.PRODUCTION_MODE, false); configuration.add(SymbolConstants.COMBINE_SCRIPTS, false); }

Re: T5: javascript assets

2009-10-26 Thread Argo Vilberg
I tried configuration.add(SymbolConstants.COMBINE_SCRIPTS, true); and also configuration.add(SymbolConstants.COMBINE_SCRIPTS, false); But in bot cases there are my localhost always every javascript its own notation. And in production server always are javascript combained

Re: T5: javascript assets

2009-10-26 Thread cordenier christophe
Hello Actually, it is possible to configure Tapestry with (in priority order) 1. java system properties (-D) 2. web.xml context parameters 3 contributeApplicationDefaults 4. contribteFactoryDefaults Check your environment to verify the configuration symbol is not duplicated with a wrong value

Re: T5: javascript assets

2009-10-26 Thread Argo Vilberg
Thanks, seems taht web.xml variants works. But AppModule.java is no use :) Argo 2009/10/26 cordenier christophe christophe.corden...@gmail.com Hello Actually, it is possible to configure Tapestry with (in priority order) 1. java system properties (-D) 2. web.xml context parameters 3

Re: T5: javascript assets

2009-10-26 Thread Inge Solvoll
All of this works for me. Are you sure there aren't any JVM params set in your app server? And other configuration points? On Mon, Oct 26, 2009 at 2:13 PM, Argo Vilberg wilps...@gmail.com wrote: Thanks, seems taht web.xml variants works. But AppModule.java is no use :) Argo 2009/10/26

Re: T5: javascript assets

2009-10-26 Thread Argo Vilberg
How i can see java system properties (-D) ? web.xml are set param-nametapestry.combine-scripts/param-name param-valuefalse/param-value /context-param And here are my AppModule.java combine-script are true in this appmodule. But in working server combine-script are trule false as in web.xml

Re: T5: javascript assets

2009-10-26 Thread cordenier christophe
Hi What name have you given to the TapestryFilter in you web.xml ? 'App' prefix (in 'AppModule') is the name of the filter. Regards Christophe. 2009/10/26 Argo Vilberg wilps...@gmail.com Thanks, seems taht web.xml variants works. But AppModule.java is no use :) Argo 2009/10/26

Re: T5: javascript assets

2009-10-26 Thread Argo Vilberg
i dont no. here is my web.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameDigileping/display-name context-param

Re: T5: javascript assets

2009-10-26 Thread cordenier christophe
filter filter-namedigileping/ filter-name filter-classorg.apache.tapestry5.TapestryFilter/filter-class /filter So your class must be called DigilepingModule... 2009/10/26 Argo Vilberg wilps...@gmail.com i dont no. here is my web.xml ?xml version=1.0 encoding=UTF-8? !DOCTYPE web-app

Re: T5 - Javascript libraries on ajax requests

2009-10-07 Thread Denis Delangle
Hello, I run into the same issue : in 1 json response I can have 500 references to my JS / CSS file. Thus, the ajax response is bigger that a full page refresh and firefox has difficulties to render the response. I created an issue with a patch to correct it :

Re: about T5 javascript

2009-03-10 Thread Michael Williamson
...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org Quoted from: http://www.nabble.com/about-T5-javascript-tp22367350p22400998.html - To unsubscribe, e-mail: users-unsubscr

Re: about T5 javascript

2009-03-10 Thread Fernando Padilla
-T5-javascript-tp22367350p22400998.html - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: about T5 javascript

2009-03-09 Thread Fernando Padilla
- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org Quoted from: http://www.nabble.com/about-T5-javascript-tp22367350p22400998.html

Re: about T5 javascript

2009-03-08 Thread Inge Solvoll
var zoneObject = Tapestry.findZoneManager(elementConnectedToZone); zoneObject.updateFromURL(link); On Fri, Mar 6, 2009 at 8:16 AM, Andrea Chiumenti kium...@gmail.com wrote: Hi to avoid me to read all Tapestry js code, could you tell me waht is/are the js Class and method(s) that replace a

Re: about T5 javascript

2009-03-08 Thread Fernando Padilla
that said, any committers want to add a simple function for people to use?? something like this: Tapestry.activateZone = function( zoneId, url ) { var zoneManager = Tapestry.findZoneManagerFromId( zoneId ); zoneManager.updateFromURL( url ); } Inge Solvoll wrote: var

Re: about T5 javascript

2009-03-08 Thread Thiago H. de Paula Figueiredo
Em Sun, 08 Mar 2009 15:13:58 -0300, Fernando Padilla f...@alum.mit.edu escreveu: that said, any committers want to add a simple function for people to use?? something like this: Tapestry.activateZone = function( zoneId, url ) { var zoneManager = Tapestry.findZoneManagerFromId(

about T5 javascript

2009-03-05 Thread Andrea Chiumenti
Hi to avoid me to read all Tapestry js code, could you tell me waht is/are the js Class and method(s) that replace a zone on a xhr call ? Thanks, kiuma - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For

Re: T5 - Javascript libraries on ajax requests

2008-07-11 Thread raulmt
://www.nabble.com/T5---Javascript-libraries-on-ajax-requests-tp18395682p18407546.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

T5 - Javascript libraries on ajax requests

2008-07-10 Thread raulmt
that a library is included more than once in ajax requests?? Regards. -- View this message in context: http://www.nabble.com/T5---Javascript-libraries-on-ajax-requests-tp18395682p18395682.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: [T5] JavaScript in template files

2008-05-21 Thread Chris Lewis
Ken, You need to specify your script block as containing CDATA, like so: script type=text/javascript![CDATA[ if(true true) { alert(!!!); } ]]/script Tapestry treats templates as XML, and is an invalid character unless processed as cdata. chris Ken wrote: Hi, I wrote a template file like

Re: [T5] JavaScript in template files

2008-05-21 Thread Ken
Thank you Chris. After I prepare CDATA block, the error was gone. But my firebug pointed as below and dialog doesn't work. missing ) after condition if (true amp;amp; true) {\n Anyway I think this is my homework. I have to try a little. thanks again! Chris wrote: Ken, You need to specify

Re: [T5] JavaScript in template files

2008-05-21 Thread Szemere Szemere
Take a look at http://wiki.apache.org/tapestry/Tapestry5HowToIncludeJavaScript This explains how to do it. Szemere On Wed, May 21, 2008 at 6:23 AM, Ken [EMAIL PROTECTED] wrote: Hi, I wrote a template file like below: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd;

Re: [T5] JavaScript in template files

2008-05-21 Thread Ken
Thanks Szemere! It's works! Szemere wote: Take a look at http://wiki.apache.org/tapestry/Tapestry5HowToIncludeJavaScript - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[T5] JavaScript in template files

2008-05-20 Thread Ken
Hi, I wrote a template file like below: html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head script type=text/javascript if (true true) { alert(!!!); } /script /head /html and prepare empty Java file. then I accessed to this page and got an error: An unexpected

Re: [T5] Javascript links rendered on bottom of page?

2008-04-25 Thread Harald Geritzer
hi chris, after having a second look at your code i think you don't even need the replacement at all as the new version uses the replaceTextArea() instead of assigning the text via javascript. in writeScript() the replacement of \r,' occurs but _value is written out before in afterRender()

Re: [T5] Javascript links rendered on bottom of page?

2008-04-25 Thread Chris Lewis
Harald, I'm honestly not clear on what the initial issue with that was (I'm not the original author), but it may have had to do with the fact that the component wrote out script code directly using the MarkupWriter instead of PageRenderSupport. It was originally written for a much earlier version

[T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
hi all, is there a special reason for rendering the javascript includes on bottom of the page in latest 5.0.12 snapshot? i got a fckeditor on my page and it seems like my editor field wants to initialize the FCKeditor before the script ist even loaded? any hints welcome, harald script

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Davor Hrg
This a recommendation from YSlow, because it helps wrowser render page faster by leaving javascript part for the end. you should put your initialization code in onload... Davor Hrg On Thu, Apr 24, 2008 at 2:13 PM, Harald Geritzer [EMAIL PROTECTED] wrote: hi all, is there a special

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Chris Lewis
Hi Harald, tapestry5-components has an editor component (which uses fck): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html A fix for this issue has just been committed to svn, if you're interested in an already-integrated version. In any

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Harald Geritzer
Chris Lewis schrieb: Hi Harald, tapestry5-components has an editor component (which uses fck): http://87.193.218.134:8080/t5components/t5c-commons/ref/org/apache/tapestry/commons/components/Editor.html ty, guess in writeScript(): _value = _value.replace('\r', '\\'); //this is needed for

Re: [T5] Javascript links rendered on bottom of page?

2008-04-24 Thread Chris Lewis
Harald, Can I convince you to file an issue, if that is an issue? http://code.google.com/p/tapestry5-components/issues/list If you can, provide an example situation that would cause a problem. thanks! Harald Geritzer wrote: Chris Lewis schrieb: Hi Harald, tapestry5-components has an

T5 javascript form submit toolbar

2008-01-08 Thread riccaruf
: http://www.nabble.com/T5-javascript-form-submit-toolbar-tp14692144p14692144.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

T5: JavaScript in my components

2007-12-23 Thread Imants Firsts
Hi! What is the correct way to use JavaScript in my tapestry components? If I use the code below, and my HTML has a button with onclick=myObj.doSomething();, it can not find myObj. pageRenderSupport.addScriptLink(myLibrary); pageRenderSupport.addScript(var myObj = new MyObj();

Re: T5: JavaScript in my components

2007-12-23 Thread Sven Homburg
two ways: create a javascript function, not a js-object, thats called by onclick or create a javascript-object, with eventhandler that handles the onclick event like this Event.observe(this.fieldSetLegend, click, this.toggle.bindAsEventListener(this)); Imants Firsts wrote: Hi! What

[T5] Javascript : integration of DWR ( Was: 3 new French Tapestry5 tutorials )

2007-11-05 Thread Francois Armand
To begin : #Cyrille37# wrote: Hello, Bonjour, Thanks to Baptiste Meurant ! Merci à Baptiste Meurant ! Thanks for the time spent, and thank you Cyril for the info. As it seems taht javascript integration is a hot topic, I want to highlight that one of the tutorials shows how to integrate DWR

Re: T5: Javascript abstraction musing

2007-07-30 Thread Kristian Marinkovic
Kopie Thema T5: Javascript abstraction musing It seems tapestry.js works this way, so I'm sure someone has thought of this... I wonder if a prototype interface in javascript could be a path to plugging in whatever javascript library you want, at least at some level of functionality

T5: Javascript abstraction musing

2007-07-29 Thread Bill Holloway
It seems tapestry.js works this way, so I'm sure someone has thought of this... I wonder if a prototype interface in javascript could be a path to plugging in whatever javascript library you want, at least at some level of functionality. Such as: var Tapestry = { xhrSend: function (/*

Re: T5 javascript

2007-03-16 Thread Pablo Ruggia
Shoudn't you copy dojo source to src/main/webapp/ instead of src/main/webapp/WEB-INF. Sorry if i'm totally wrong, never used dojo, but it's just a guess. On 3/16/07, Anjana Gopinath [EMAIL PROTECTED] wrote: Jesse It could be unrelated to tapestry 5. I was trying to create a dojo widget, so

Re: T5 javascript

2007-03-16 Thread Jesse Kuhnert
Oh...Yeah good point Pablo. WEB-INF would be a place for classes / etc.. On 3/16/07, Pablo Ruggia [EMAIL PROTECTED] wrote: Shoudn't you copy dojo source to src/main/webapp/ instead of src/main/webapp/WEB-INF. Sorry if i'm totally wrong, never used dojo, but it's just a guess. On 3/16/07,

Re: T5 javascript

2007-03-16 Thread Anjana Gopinath
Hey Thats right, sorry my bad. i blindly copied all the htmls and dojo folders from my T4 app's context directory and dropped it to my T5s WEB-INF directory. Thanks a lo for helping me, Pablo and Jesse! Anjana Gopinath True North Technology 11465 John's Creek Parkway, Suite 300

T5 javascript

2007-03-15 Thread Anjana Gopinath
Hi, I am trying to build a small app using tapestry 5. And trying to add a dojo table. I keep getting javascript errors in Firefox, so was wondering whether anyone has tried dojo with tapestry 5? i need to have a table with checkboxes, wasnt sure how to do this with the tapestry grid

Re: T5 javascript

2007-03-15 Thread Howard Lewis Ship
It may be a conflict between the Prototype.js library and the Dojo libraries. I haven't tried this yet. On 3/15/07, Anjana Gopinath [EMAIL PROTECTED] wrote: Hi, I am trying to build a small app using tapestry 5. And trying to add a dojo table. I keep getting javascript errors in Firefox, so

Re: T5 javascript

2007-03-15 Thread Anjana Gopinath
Thanks for responding , Howard. switched to ordinary html table with loop component. Anjana Gopinath On Mar 15, 2007, at 7:40 PM, Howard Lewis Ship wrote: It may be a conflict between the Prototype.js library and the Dojo libraries. I haven't tried this yet. On 3/15/07, Anjana

Re: T5 javascript

2007-03-15 Thread Jesse Kuhnert
There shouldn't be any incompatibilities between the libraries, if there are I'm sure many people would like to know. More than likely you were just having errors unrelated to T5 or prototype. (but maybe not, hard to say off hand ) On 3/15/07, Anjana Gopinath [EMAIL PROTECTED] wrote: Thanks