RE: T5 : [ANN] The book - (Index Appendices)
I think a character in Kurt Vonnegut Jr. Cat's Cradle has a fair bit of advice on indexing your own book (she says never). -Original Message- From: Alex Kotchnev [mailto:[EMAIL PROTECTED] Sent: 05 September 2008 05:35 To: Tapestry users Subject: Re: T5 : [ANN] The book - (Index Appendices) I know from experience that creating a good index is just a lot of grueling work . I really haven't given much thought to the topic, as it seems that it's quite far away in the future. Also, not to diminish the importance of the index; however, at this point, it is not very clear exactly what the printing options for the book are going to be (e.g. purchase on lulu, print a pdf on your own), and it's not even a proper technical book yet (e.g. no publisher or anything like that). So, once again, the index is very much in the future. Cheers, Alex Kotchnev On Thu, Sep 4, 2008 at 9:22 AM, [EMAIL PROTECTED] wrote: I know this is very early in the piece, but what do you intend to do about indexing the book? The Kolesnikov Tapestry book has one of the worst indexes I've ever come across and stands as a good example of how not to do it. Having a good index is a very important part of any successful technical book. Indexing a book well is a non-trivial matter and shouldn't just be a last minute thought. I'd also suggest a good set of Appendices - one, at least, should list the components and what parameters they take. Anyway, something to think about. p. Quoting Alex Kotchnev [EMAIL PROTECTED]: I've created a new project for the proposed book at http://code.google.com/p/tapestry5-book , and posted the proposed table of contents at http://code.google.com/p/tapestry5-book/wiki/ProposedTableOfContents . Now that I'm looking at it, it's a little disappointing as the TOC doesn't really have anything new in it (e.g. some of it is covered in tutorials, other is in the project docs, etc). However, I guess that the content really can't be all that different - it's all about building web apps, covering the same materials as the other documentation. In the end, I think that the book will be different from the other existing documents based on its style and breadth of content, and not so much in the topics it covers. Anyway, I would like to create a mailing list and add everyone who has expressed an interest in contributing to the book. Unfortunately, Google Code doesn't have mailng lists, so I'll probably have to look around for that (Nabble, maybe?). Any suggestions would be welcome here. In terms of moving the proposed TOC forward, here are some of my next steps : 1. Attribute the main sections of the project documentation into possible chapters in the book. 2. Discuss feedback from this list on the content of the proposed TOC : e.g. any alternative ideas on how to organize the book, changes to the proposed chapter titles, order, etc. It would be great if there are any volunteers to investigate some of the issues that were discussed previously in the thread below, I'll probably post the needed tasks somewhere on the wiki as well. When we get our mailing list set up, I think that individuals or groups of individuals can claim ownership of each chapter (and thus get voting rights on the TOC, chapter layout, further modifications, etc. Cheers, Alex Kotchnev On Thu, Aug 28, 2008 at 4:59 AM, Hugo Palma [EMAIL PROTECTED] wrote: inline Alex Kotchnev wrote: Would there be any value to having a top-level domain for the book (e.g. tapestry-book.org or something like that), or can we find it a home for the book somewhere under the Tapestry namespace ? A top-level domain should brink more visibility to the effort. Also, in the future we could probably spend some of the monetary payback to pay for the domain and some hosting solution so that we could include the live version of the book application and other cool stuff. Still, for now i think we can live with a project on some project hosting site where we can host the book files and wiki. A note on the potential mode for governing decisions : I was thinking that in the next couple of days, I'll post a list of possible chapters to include in the book. Then, we can collect a first set of volunteers for people take ownership of each chapter. After the initial set of volunteers, the chapter owners will vote on addition of new chapters and giving ownership of chapters to new contributors (if needed). Shouldn't the outline be already created in a tapestry-book wiki ? We could decide on where to host it and then move the discussion to the dedicated list and use its wiki for the outline. On whether the book would cover additional libraries (e.g. chennilekit, t5components): I think that after we get to a good place where we have enough content on the core we can probably spend some time on those as well, possibly with contributions from the project owners. Conceptually, it
Re: T5 : [ANN] The book - next steps
Howard Lewis Ship wrote: I would say that step 1 would be to collaborative design and implement the sample application. From that, the outline and division of tasks should be more attainable. Oh, yes! That would also make an excellent living tutorial (someone mentioned PetStore; yes, something like that). Angelo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5 BeanModelSource create Parameters
Hi, I'm trying to add an additional column to a grid following this guideline: http://www.infoq.com/articles/tapestry5-intro http://www.infoq.com/articles/tapestry5-intro I have seen in several tutorials that the create Method of BeanModelSource takes a ComponentResources Object as third parameter. When I try to implement this I get complains of my compiler that the third parameter has to be of type org.apache.tapestry5.ioc.Messages. Are the tutorials outdated? I'm using Tapestry 5.0.14. Thanks -- View this message in context: http://n2.nabble.com/T5-BeanModelSource-create-Parameters-tp840998p840998.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to create simple wizard with tapestry
It me seen so hard, there is some way that at my onSuccess, set the object for next page and finish, sample : the userPage is an page. public Object onSuccess() { my.package.tranc.pages.User userPage = new my.package.tranc.pages.User(); userPage.setAluno(classmate); return userPage; } thanks, Alex On Thu, Sep 4, 2008 at 4:29 PM, Martijn Brinkers [EMAIL PROTECTED]wrote: see http://202.177.217.122:8080/jumpstart/ On Thu, 2008-09-04 at 16:14 -0300, Alex Florentino wrote: Hi all, I have an page that user type some informations and if the information is ok the user is redirect for finish the wizard, but I need that information user fill at first step. sample flow: user preferences - user settings(here I need user preferences data). thanks, Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Generating Javascript link for cgi
Hi, I'm using Tapestry 5.0.14 and trying to generate a script link where the source of the javascript is obtained via a cgi. e.g. script language=javascript src=http://some.domain/some.cgi?key=onBsgdeFET;/script One complication of this is that the key query parameter value is dynamic. Also I must place this script tag after prototype.js has been included. I know that the @IncludeJavaScriptLibrary annotation will place the script tag in the correct place but how would I make that dynamic? I know that RenderSupport.addScriptLink() will place the tag in the correct place but that requires an Asset object. I would be very grateful if anyone knows how to get this kind of script tag at the end of the page. TIA Cliff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating Javascript link for cgi
It may be kind of awkward but you can provide your own implementation of Asset; it just has to implement the toClientURL() method (and dummy implementations of the other methods specified in the interface). On Fri, Sep 5, 2008 at 8:37 AM, Cliff Willsher [EMAIL PROTECTED] wrote: Hi, I'm using Tapestry 5.0.14 and trying to generate a script link where the source of the javascript is obtained via a cgi. e.g. script language=javascript src=http://some.domain/some.cgi?key=onBsgdeFET;/script One complication of this is that the key query parameter value is dynamic. Also I must place this script tag after prototype.js has been included. I know that the @IncludeJavaScriptLibrary annotation will place the script tag in the correct place but how would I make that dynamic? I know that RenderSupport.addScriptLink() will place the tag in the correct place but that requires an Asset object. I would be very grateful if anyone knows how to get this kind of script tag at the end of the page. TIA Cliff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating Javascript link for cgi
Can't an asset be created dynamically ? Something like: AssetFactory.createAsset(new URIResource(myURL)) Never tried it but looks like it should work. Howard Lewis Ship wrote: It may be kind of awkward but you can provide your own implementation of Asset; it just has to implement the toClientURL() method (and dummy implementations of the other methods specified in the interface). On Fri, Sep 5, 2008 at 8:37 AM, Cliff Willsher [EMAIL PROTECTED] wrote: Hi, I'm using Tapestry 5.0.14 and trying to generate a script link where the source of the javascript is obtained via a cgi. e.g. script language=javascript src=http://some.domain/some.cgi?key=onBsgdeFET;/script One complication of this is that the key query parameter value is dynamic. Also I must place this script tag after prototype.js has been included. I know that the @IncludeJavaScriptLibrary annotation will place the script tag in the correct place but how would I make that dynamic? I know that RenderSupport.addScriptLink() will place the tag in the correct place but that requires an Asset object. I would be very grateful if anyone knows how to get this kind of script tag at the end of the page. TIA Cliff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: [T5] - implement new client side validator
any idea ? Hi friends, i am going to add new validator in my T5 project. the server side validatioin is ok and i have no problem with it. but in client side, i changed the Tapestry.js to add my validator funciton in it. is there any better way to avoid change Tapestry original javascripts ? -- sincerely yours M. H. Shamsi -- sincerely yours M. H. Shamsi
Fwd: [T5] - another question about validators
any idea ? Hi, is there any way to write a new validator that accept more than one parameter ? exampe range (from, to) i know that i can do it with using 2 validator instead of one (min and max). but i want to write new validator with 2 or more parameter . :( :) -- sincerely yours M. H. Shamsi -- sincerely yours M. H. Shamsi
T4.1.5 Dojo Asset Issues
We've upgraded recently from T4.0 to T4.1.5. When trying to use a DatePicker, the text field appears with a link Click on icon to choose a date/time value., but no icon. Clicking the link does not display the Ajax date picker. Viewing the generated source I see the images src as: /myApp/?service=assetamp;path=%2Forg%2Fapache%2Ftapestry%2Fform%2FDatePickerIcon.png If I cut and paste that url (with http://localhost:4242 pre-pended) directly into my browser, I'm redirected back to the app's login page. Is there some hivemind configuration that needs to be done to get the service? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] - implement new client side validator
Javascript allows you to dynamically change an object. Instead of editing tapestry.js create your own js that gets added after tapestry.js and modify the validators then. Something like: Tapestry.Validator.yourvalidator = function(field, message, param) { Tapestry.addValidator(field, true, function(value, event) {/* validation here */ }); } Josh On Fri, Sep 5, 2008 at 10:22 AM, Mohammad Shamsi [EMAIL PROTECTED]wrote: any idea ? Hi friends, i am going to add new validator in my T5 project. the server side validatioin is ok and i have no problem with it. but in client side, i changed the Tapestry.js to add my validator funciton in it. is there any better way to avoid change Tapestry original javascripts ? -- sincerely yours M. H. Shamsi -- sincerely yours M. H. Shamsi -- -- TheDailyTube.com. Sign up and get the best new videos on the internet delivered fresh to your inbox.
Re: T4.1.5 Dojo Asset Issues
Hi Paul Any chance are you using acegi or any other security framework that is preventing you from accessing that url? Alejandro. On Fri, Sep 5, 2008 at 7:38 PM, Paul Croarkin [EMAIL PROTECTED] wrote: We've upgraded recently from T4.0 to T4.1.5. When trying to use a DatePicker, the text field appears with a link Click on icon to choose a date/time value., but no icon. Clicking the link does not display the Ajax date picker. Viewing the generated source I see the images src as: /myApp/?service=assetpath=%2Forg%2Fapache%2Ftapestry%2Fform%2FDatePickerIcon.png If I cut and paste that url (with http://localhost:4242 pre-pended) directly into my browser, I'm redirected back to the app's login page. Is there some hivemind configuration that needs to be done to get the service? - 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: [T5] - another question about validators
The API is a bit fixed right now. You need to condense things down to a single object, so if you wanted to combine Min and Max, you might need a Range object to represent the upper and lower bounds. You should provide Coercions to the TypeCoercer service to convert between String and Range. On the client side, you can use a JavaScript Object to represent the range, i.e., { min: 5, max: 10 } or whatever you like. On Wed, Sep 3, 2008 at 8:07 AM, Mohammad Shamsi [EMAIL PROTECTED] wrote: Hi, is there any way to write a new validator that accept more than one parameter ? exampe range (from, to) i know that i can do it with using 2 validator instead of one (min and max). but i want to write new validator with 2 or more parameter . :( :) -- sincerely yours M. H. Shamsi -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating Javascript link for cgi
That might work as well, but there's only built-in support for context and classpath assets. On Fri, Sep 5, 2008 at 9:25 AM, Hugo Palma [EMAIL PROTECTED] wrote: Can't an asset be created dynamically ? Something like: AssetFactory.createAsset(new URIResource(myURL)) Never tried it but looks like it should work. Howard Lewis Ship wrote: It may be kind of awkward but you can provide your own implementation of Asset; it just has to implement the toClientURL() method (and dummy implementations of the other methods specified in the interface). On Fri, Sep 5, 2008 at 8:37 AM, Cliff Willsher [EMAIL PROTECTED] wrote: Hi, I'm using Tapestry 5.0.14 and trying to generate a script link where the source of the javascript is obtained via a cgi. e.g. script language=javascript src=http://some.domain/some.cgi?key=onBsgdeFET;/script One complication of this is that the key query parameter value is dynamic. Also I must place this script tag after prototype.js has been included. I know that the @IncludeJavaScriptLibrary annotation will place the script tag in the correct place but how would I make that dynamic? I know that RenderSupport.addScriptLink() will place the tag in the correct place but that requires an Asset object. I would be very grateful if anyone knows how to get this kind of script tag at the end of the page. TIA Cliff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4.1.5 Dojo Asset Issues
No, we are not using acegi. I've just turned off all our custom filters and the web.xml security constraints and I'm getting the same result. My next step is to create a new project with only one page with a DatePicker to try to isolate the issue. Thanks, Paul --- On Fri, 9/5/08, Alejandro Scandroli [EMAIL PROTECTED] Hi Paul Any chance are you using acegi or any other security framework that is preventing you from accessing that url? Alejandro. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Generating Javascript link for cgi
Thank you very much guys, I will give this a go on Monday morning and let you know the outcome. Howard Lewis Ship wrote: That might work as well, but there's only built-in support for context and classpath assets. On Fri, Sep 5, 2008 at 9:25 AM, Hugo Palma [EMAIL PROTECTED] wrote: Can't an asset be created dynamically ? Something like: AssetFactory.createAsset(new URIResource(myURL)) Never tried it but looks like it should work. Howard Lewis Ship wrote: It may be kind of awkward but you can provide your own implementation of Asset; it just has to implement the toClientURL() method (and dummy implementations of the other methods specified in the interface). On Fri, Sep 5, 2008 at 8:37 AM, Cliff Willsher [EMAIL PROTECTED] wrote: Hi, I'm using Tapestry 5.0.14 and trying to generate a script link where the source of the javascript is obtained via a cgi. e.g. script language=javascript src=http://some.domain/some.cgi?key=onBsgdeFET;/script One complication of this is that the key query parameter value is dynamic. Also I must place this script tag after prototype.js has been included. I know that the @IncludeJavaScriptLibrary annotation will place the script tag in the correct place but how would I make that dynamic? I know that RenderSupport.addScriptLink() will place the tag in the correct place but that requires an Asset object. I would be very grateful if anyone knows how to get this kind of script tag at the end of the page. TIA Cliff - 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: How to create simple wizard with tapestry
Also, note that you will probably have to mark the aluno attribute in the User page as persistent (e.g. with @Persist annotation), or set it as the page's activation context. Otherwise, whatever you set in setAluno will get wiped out when T5 redirects to the @User page. Cheers, Alex K On Fri, Sep 5, 2008 at 9:15 AM, Thiago H. de Paula Figueiredo [EMAIL PROTECTED] wrote: Em Fri, 05 Sep 2008 09:17:09 -0300, Alex Florentino [EMAIL PROTECTED] escreveu: public Object onSuccess() { my.package.tranc.pages.User userPage = new my.package.tranc.pages.User(); userPage.setAluno(classmate); return userPage; } @Inject private User userPage; public Object onSuccess() { userPage.setAluno(classmate); return userPage; } } One common pitfall for anyone learning Tapestry 5 is that you cannot instatiate pages and components objects by yourself. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T4 XML Web Service
I want to create a few web services to allow importing and exporting of data. What's the best way to do this in a Tapestry 4.1 world? I could write a servlet to do this, of course. Is there a Tapestry Way? Are there some good guidelines for creating an XML-based WOA (not SOAP as it seems too heavy and complicated) services that folks reference? I'll need to do some sort of authentication, either inside the XML file or as parameters to the POST. I'm just trying to get a feel for what approaches work in the real world, and then design something that's rather simple. I'll have two main data types and a few simple operations, like query and insert. Norman Franke Answering Service for Directors, Inc. www.myasd.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4 XML Web Service
Have a look at HiveTranse Remoting. It allows you to export HiveMind services as Web Services. If SOAP protocol is not a requirement it might be interesting for you. http://hivetranse.sourceforge.net/web/quickstart.html#start.remoting On Fri, Sep 5, 2008 at 11:45 PM, Norman Franke [EMAIL PROTECTED] wrote: I want to create a few web services to allow importing and exporting of data. What's the best way to do this in a Tapestry 4.1 world? I could write a servlet to do this, of course. Is there a Tapestry Way? Are there some good guidelines for creating an XML-based WOA (not SOAP as it seems too heavy and complicated) services that folks reference? I'll need to do some sort of authentication, either inside the XML file or as parameters to the POST. I'm just trying to get a feel for what approaches work in the real world, and then design something that's rather simple. I'll have two main data types and a few simple operations, like query and insert. Norman Franke Answering Service for Directors, Inc. www.myasd.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Igor Drobiazko
IE8 Compatibility Quick Fix
http://www.dynamicdrive.com/forums/showthread.php?t=36047 I have to put the following meta tag right after head in order for IE8 to pickup. head meta http-equiv=X-UA-Compatible content=IE=EmulateIE7 / ... Currently, I have some CSS includes that's automatically inserted right after head. What's the best way to add that meta tag before those CSS includes? Thanks. -- View this message in context: http://www.nabble.com/IE8-Compatibility-Quick-Fix-tp19340728p19340728.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Tap 5.0.14 and t5components/editor (0.5.14) problem
Hi all! I have a strange problem. In my template I use the editor component like shown below but the editor is not loaded. The source of the page does not contain any script tags, though when tracing through the code the writeScript method of the Editor component is called and the processed values seem reasonable. But form some reason the pageRenderSupport doesn't seem to render it to the page. Any idead how to fix that? Regards, Otho table ... tr td colspan=3 Description:br/ textarea t:type=t5components/editor width=100% value=currentProduct.description toolbarSet=BasicDummy/textarea /td /tr tr td colspan=3 Long description:br/ textarea t:type=t5components/editor width=100% value=currentProduct.longDescription toolbarSet=BasicDummy/textarea /td /tr ... /table
Re: T5 BeanModelSource create Parameters
Hi, Yes, a few changes were introduced in 5.0.14 and are documented here: http://tapestry.apache.org/tapestry5/upgrade.html Use resources.getMessages() instead instead of resource. /Serge moritzgilsdorf-2 wrote: Hi, I'm trying to add an additional column to a grid following this guideline: http://www.infoq.com/articles/tapestry5-intro http://www.infoq.com/articles/tapestry5-intro I have seen in several tutorials that the create Method of BeanModelSource takes a ComponentResources Object as third parameter. When I try to implement this I get complains of my compiler that the third parameter has to be of type org.apache.tapestry5.ioc.Messages. Are the tutorials outdated? I'm using Tapestry 5.0.14. Thanks -- View this message in context: http://n2.nabble.com/T5-BeanModelSource-create-Parameters-tp840998p840998.html Sent from the Tapestry Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/T5-BeanModelSource-create-Parameters-tp19329560p19341572.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Deadlock! 5.0.14-snapshot
I have the same problem,I had updated https://issues.apache.org/jira/browse/TAPESTRY-2561