Re: starting point for ajax with dojo and tapestry 4.1?
Umm... I may be a little late to the party, but if you're interested in getting a working ajax example up and running as well as a working tapestry setup, and all the dependencies, you might try the Tapestry 4 archetype.. http://tapestry.apache.org/tapestry4.1/tapestry-archetype/index.html Actually, if you have Maven installed and want to make sure this works, from start to finish: mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=tapestry-archetype -DarchetypeVersion= 4.1.2-SNAPSHOT -DgroupId=org.example -DartifactId=myapp -DremoteRepositories= http://people.apache.org/repo/m2-snapshot-repository ; cd myapp; mvn clean install ; mvn idea:idea (or mvn eclipse:eclipse) ; mvn jetty6:run ; then open your browser to http://127.0.0.1:8080/myapp and you should be staring at a page with an ajax timestamp that you can refresh with the appropriate link. No setup issues, no problems. :-) hth, Joshua Long Sun Certified Java Programmer http://www.joshlong.com/ On 5/1/07, Daniel Jue <[EMAIL PROTECTED]> wrote: I have a really simple example you can cut and paste, in order to get something working. First of all make sure you have Tap 4.1 and all the dependencies. This was a pain because I don't use maven. If you know how to use maven, I guess you can jump into using 4.1.2 and the snapshots for that version. If you don't know how to use maven, you can still download 4.1.1 and all the 3rd party libraries and stick them in your path. Here is my simple program which is a pair of combo boxes where B depends on A.: http://www.phy6.net/wiki/tiki-index.php?page=Tapestry+4.1.1+Simple+Selection+Model+Update+using+AJAX It's based on part of a chapter from Kent Tong's book, but I stripped off all the other parts of that tutorial. It's a bare minimum example, and it could probably be made even simpler. Daniel On 4/30/07, Paul Stanton <[EMAIL PROTECTED]> wrote: > Hi, does anyone know of any good tutorials/demos for ajax with dojo and > tapestry 4.1? > > thanks. > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting point for ajax with dojo and tapestry 4.1?
I have a really simple example you can cut and paste, in order to get something working. First of all make sure you have Tap 4.1 and all the dependencies. This was a pain because I don't use maven. If you know how to use maven, I guess you can jump into using 4.1.2 and the snapshots for that version. If you don't know how to use maven, you can still download 4.1.1 and all the 3rd party libraries and stick them in your path. Here is my simple program which is a pair of combo boxes where B depends on A.: http://www.phy6.net/wiki/tiki-index.php?page=Tapestry+4.1.1+Simple+Selection+Model+Update+using+AJAX It's based on part of a chapter from Kent Tong's book, but I stripped off all the other parts of that tutorial. It's a bare minimum example, and it could probably be made even simpler. Daniel On 4/30/07, Paul Stanton <[EMAIL PROTECTED]> wrote: Hi, does anyone know of any good tutorials/demos for ajax with dojo and tapestry 4.1? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: starting point for ajax with dojo and tapestry 4.1?
I asked that same question about a month ago and found there wasn't a good answer. Someone pointed me to Shing Hing Man's homepage (http://uk.geocities.com/matmsh/) where he posted some good information, but dojo's documentation wasn't nearly as helpful as it should have been. The first huge gotcha is the "parseWidgets" attribute of the @Shell component. Tapestry (smartly) says this should be turned off. All dojo's docs assume it's on. For pure dojo work, prototype your stuff on a page with this on before you worry about adding the scripts to register widgets manually. Often, a good way to do this is with a manually created header outside a jwcid="$content$" area so you can toggle parseWidgets when testing your template. Look at the tacos sources - they're much more informative than any documentation I found. Don't be afraid to use something other than dojo either - my team wasted a lot of time mucking around with dojo's editor2 before realizing FCKEditor was a better solution. The tapestry/dojo integration is very well thought out, but dojo itself has a number of rough edges. -Steve Paul Stanton wrote: Hi, does anyone know of any good tutorials/demos for ajax with dojo and tapestry 4.1? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
starting point for ajax with dojo and tapestry 4.1?
Hi, does anyone know of any good tutorials/demos for ajax with dojo and tapestry 4.1? thanks. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]