Absolute URLs
Part of my application needs to pass absolute urls for my pages to 3rd party services (adding a google bookmark for instance). I've hunted around in the source, mailing lists etc but have only found the feature in tapestry 4 ( ILink.html#getAbsoluteURL() )http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/engine/ILink.html#getAbsoluteURL%28%29 Currently I'm grabbing the HttpServletRequest from RequestGlobals and building the url myself. Am I missing something, or is there an API call that I've missed? Thanks, Josh
Re: [T5] Absolute URLs
I'm working with Tapestry 5... On 8/1/07, Josh Canfield [EMAIL PROTECTED] wrote: Part of my application needs to pass absolute urls for my pages to 3rd party services (adding a google bookmark for instance). I've hunted around in the source, mailing lists etc but have only found the feature in tapestry 4 ( ILink.html#getAbsoluteURL() )http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/engine/ILink.html#getAbsoluteURL%28%29 Currently I'm grabbing the HttpServletRequest from RequestGlobals and building the url myself. Am I missing something, or is there an API call that I've missed? Thanks, Josh
Re: [T5] Absolute URLs
You haven't missed anything. It's just not there yet. Please add a JIRA issue. Cheers, Nick. Josh Canfield wrote: I'm working with Tapestry 5... On 8/1/07, Josh Canfield [EMAIL PROTECTED] wrote: Part of my application needs to pass absolute urls for my pages to 3rd party services (adding a google bookmark for instance). I've hunted around in the source, mailing lists etc but have only found the feature in tapestry 4 ( ILink.html#getAbsoluteURL() )http://tapestry.apache.org/tapestry4/tapestry/apidocs/org/apache/tapestry/engine/ILink.html#getAbsoluteURL%28%29 Currently I'm grabbing the HttpServletRequest from RequestGlobals and building the url myself. Am I missing something, or is there an API call that I've missed? Thanks, Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] The pattle doesn't work fine with IE!
Is this a bug? 在 07-8-1,小司[EMAIL PROTECTED] 写道: Yes, My pallete does not work ,Button is disabled.only submit button works well 2007/8/1, Donyee [EMAIL PROTECTED]: I use the pattle component in my pages, it works fine in the firefox, but in the IE the (select)buttons were disabled! Does anyone meet this problem? 徐 依伟 -- 得与失都是生活 -- 徐 依伟
Re: Conditional async?
No one had this issue? Must be the most common scenario I figure... *puff* On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: Thanks Andrea - it works! ... well, almost anyway :) If the page is reached through a post I will get the POSTDATA confirm dialog... :'( Malin On 8/1/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: if login succeeds just write a conditional js that refresh the page On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: I've created a login component to add to my pages. If validation fails I'd like to use async=true to display validation messages - works fine! But - if login succeeds, I'd like to refresh the whole page... how do I perform this? In this case I'd like to have async=false or possibly use some other updateComponents. Thought of a round-trip page or a forced reload from the client using script or something... Any ideas? Malin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conditional async?
How does your js look like? Try window.location.href=bla; On 8/2/07, Malin Ljungh [EMAIL PROTECTED] wrote: No one had this issue? Must be the most common scenario I figure... *puff* On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: Thanks Andrea - it works! ... well, almost anyway :) If the page is reached through a post I will get the POSTDATA confirm dialog... :'( Malin On 8/1/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: if login succeeds just write a conditional js that refresh the page On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: I've created a login component to add to my pages. If validation fails I'd like to use async=true to display validation messages - works fine! But - if login succeeds, I'd like to refresh the whole page... how do I perform this? In this case I'd like to have async=false or possibly use some other updateComponents. Thought of a round-trip page or a forced reload from the client using script or something... Any ideas? Malin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conditional async?
Malin There are so many scenarios I can think of, which depend very much on how you app is constructed, without a good understanding of which makes answering your question correctly a shot in the dark. I find the best place to validate is before the page render so you wont need a reload afterwards... if you implement the pageValidate interface (PageValidateListener) you can do this. There are also Tapestry components that allow you to refresh portions of pages, after all thats what AJAX is for: input type=submit jwcid=@Submit async=true value=Submit updateComponents=ognl:{'refresh_component1','refresh_component1','error_log_refresh','image_refresh'}/ Peter Malin Ljungh wrote: No one had this issue? Must be the most common scenario I figure... *puff* On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: Thanks Andrea - it works! ... well, almost anyway :) If the page is reached through a post I will get the POSTDATA confirm dialog... :'( Malin On 8/1/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: if login succeeds just write a conditional js that refresh the page On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: I've created a login component to add to my pages. If validation fails I'd like to use async=true to display validation messages - works fine! But - if login succeeds, I'd like to refresh the whole page... how do I perform this? In this case I'd like to have async=false or possibly use some other updateComponents. Thought of a round-trip page or a forced reload from the client using script or something... Any ideas? Malin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -- Peter Stavrinides Albourne Partners (Cyprus) Ltd Tel: +357 22 750652 If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[ANN]T5 book: reviewers are needed
I am writing a book on T5 and the publisher is looking for technical reviewers for this book. Please contact me directly if you want to review the book or if you have any questions. Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA ==
presentation materials wanted
Hi all, I'm giving a 4-day workshop on web development with Tapestry at my university for some postgraduate students and wanted to ask if anybody would be willing to share his/her presentation materials with me. Thanks in advance, Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Strategy for redirecting due to any error
For those who want an alternative solution, I've implemented RedirectException: http://wiki.apache.org/tapestry/Tapestry5RedirectException Cheers, Nick. Daniel Jue wrote: Ah! CleanupRender is a place I had not thought of! As long as the errors wouldn't cause actual runtime exceptions (which I may not catch because catching RTE is not enforced), I could just set this flag and I can redirect/display something meaningful. A couple questions: Your generic page -- I just got back into extending pages (the T4 way). I am putting my abstract orbase pages in the /base directory. This seems like the proper place to put them, right? 2nd: With an ApplicationScoped bean, is that per session or one for the whole application? It seems like having one for the whole app would cause issues with one person receiving another person's error flag. I guess I am confused a little--when say ASO, I think of it as existing for a current user's session only. (Another person using the app would have no direct knowledge of the ASO) On 8/1/07, Joost Schouten [EMAIL PROTECTED] wrote: Daniel, I just setup a system where I have an ApplicationScoped bean hold a String authenticationDeniedMessage (could obviously be any error message). On my GenericPage which all my pages extend, I check on the @CleanupRender if this String != null and if so, redirect to my AuthetnicationDenied page. This page renders the message in clears it on @CleanupRender so any subsequent request will work again. This setup allows me to deny access to a page at any point of my page lifecycle without Declerative or Runtime Exceptions. Cheers, Joost -Original Message- From: Daniel Jue [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 2:56 AM To: Tapestry users Subject: T5 Strategy for redirecting due to any error Hi, this is more a question of technique than an actual problem. Some use cases: Lets say I have code that throws a NPE. I'd get a Tapestry error page that spills it's guts. It must use some technique for redirecting to another page at any point (might be too deep in the framework to harness that power) Lets say I have another page that requires a user session (ASO) -- the OnActivate method would do the checking and redirect to a page from there. Anyone can do this from OnActivate--so long as you know everything in the OnActivate() method, so it's not really interesting. Now lets say I have a page or component that checks a value that we could label as invalid, or we have a select component that can't be filled because a DB is down. Is there a way to redirect to another page at any point in the render process of a component or page? I think this would kind of fall along the lines of people who questioned how to replace the Tapestry error page with something more appropriate for the end user. Except that I'd want to be able to explicitly call/forward to an arbitrary page when my code comes across something abnormal. Does anyone have ideas or strategies about this? Daniel Jue - 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] - 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]
[T4] Event for every request to clear data
Hello, currently, we have a bean that is registered for a lot of pages which holds some information that is only releveant for the scope of the request. So I thought it woule be more appropriate to make an ASO out of it with scope request (which does not exist). The reason behind this is the fact, that this object realy is used for inter-component and -service communication. So I thought about making this an ASO with session scope and registering a service to a listener that fires at the end of a request to clear the data. So is there something analogous to ResetEventHub? Or am I looking in the wrong direction here? Thanks. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock Amtsgericht München, HRB 135082 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conditional async?
Igor: Thanks! Works better now :-) It's not beautiful but it works! Peter: Thanks for your reply. I use validators and async=true and this is the whole point... it's in case of valid input I need to reload the whole page, due to logged in view is so different from anonymous view so async=true and updateComponents is not appropriate anymore. Malin On 8/2/07, Peter Stavrinides [EMAIL PROTECTED] wrote: Malin There are so many scenarios I can think of, which depend very much on how you app is constructed, without a good understanding of which makes answering your question correctly a shot in the dark. I find the best place to validate is before the page render so you wont need a reload afterwards... if you implement the pageValidate interface (PageValidateListener) you can do this. There are also Tapestry components that allow you to refresh portions of pages, after all thats what AJAX is for: input type=submit jwcid=@Submit async=true value=Submit updateComponents=ognl:{'refresh_component1','refresh_component1','error_log_refresh','image_refresh'}/ Peter Malin Ljungh wrote: No one had this issue? Must be the most common scenario I figure... *puff* On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: Thanks Andrea - it works! ... well, almost anyway :) If the page is reached through a post I will get the POSTDATA confirm dialog... :'( Malin On 8/1/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: if login succeeds just write a conditional js that refresh the page On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: I've created a login component to add to my pages. If validation fails I'd like to use async=true to display validation messages - works fine! But - if login succeeds, I'd like to refresh the whole page... how do I perform this? In this case I'd like to have async=false or possibly use some other updateComponents. Thought of a round-trip page or a forced reload from the client using script or something... Any ideas? Malin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -- Peter Stavrinides Albourne Partners (Cyprus) Ltd Tel: +357 22 750652 If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T4.0.2: Problem of submit in component tacos:Dialog
Good day, I have in a AjaxForm a quite peculiar problem: In Dialog (is based in the example of the Demo app of Tacos), I have TextFields, a button Submit and a button Cancel. The idea is to save the data and to hide the dialog when pressing the Submit button, and if I only press the Cancel button to hide the Dialog. When I send the ajax form, i have that press twice the Submit button for that it hides the Dialog, but in the first press it had already saved. In addition, the cancel button generates a submit!, and it only executes a javascript code. I know that this problem is quite particular, but any aid would be very well received.
Re: T5 Strategy for redirecting due to any error
Thanks Nick! Is there a reason RedirectException extends RunTimeException and not Exception? Or is that just the way it was done in the past? On 8/2/07, Nick Westgate [EMAIL PROTECTED] wrote: For those who want an alternative solution, I've implemented RedirectException: http://wiki.apache.org/tapestry/Tapestry5RedirectException Cheers, Nick. Daniel Jue wrote: Ah! CleanupRender is a place I had not thought of! As long as the errors wouldn't cause actual runtime exceptions (which I may not catch because catching RTE is not enforced), I could just set this flag and I can redirect/display something meaningful. A couple questions: Your generic page -- I just got back into extending pages (the T4 way). I am putting my abstract orbase pages in the /base directory. This seems like the proper place to put them, right? 2nd: With an ApplicationScoped bean, is that per session or one for the whole application? It seems like having one for the whole app would cause issues with one person receiving another person's error flag. I guess I am confused a little--when say ASO, I think of it as existing for a current user's session only. (Another person using the app would have no direct knowledge of the ASO) On 8/1/07, Joost Schouten [EMAIL PROTECTED] wrote: Daniel, I just setup a system where I have an ApplicationScoped bean hold a String authenticationDeniedMessage (could obviously be any error message). On my GenericPage which all my pages extend, I check on the @CleanupRender if this String != null and if so, redirect to my AuthetnicationDenied page. This page renders the message in clears it on @CleanupRender so any subsequent request will work again. This setup allows me to deny access to a page at any point of my page lifecycle without Declerative or Runtime Exceptions. Cheers, Joost -Original Message- From: Daniel Jue [mailto:[EMAIL PROTECTED] Sent: Thursday, August 02, 2007 2:56 AM To: Tapestry users Subject: T5 Strategy for redirecting due to any error Hi, this is more a question of technique than an actual problem. Some use cases: Lets say I have code that throws a NPE. I'd get a Tapestry error page that spills it's guts. It must use some technique for redirecting to another page at any point (might be too deep in the framework to harness that power) Lets say I have another page that requires a user session (ASO) -- the OnActivate method would do the checking and redirect to a page from there. Anyone can do this from OnActivate--so long as you know everything in the OnActivate() method, so it's not really interesting. Now lets say I have a page or component that checks a value that we could label as invalid, or we have a select component that can't be filled because a DB is down. Is there a way to redirect to another page at any point in the render process of a component or page? I think this would kind of fall along the lines of people who questioned how to replace the Tapestry error page with something more appropriate for the end user. Except that I'd want to be able to explicitly call/forward to an arbitrary page when my code comes across something abnormal. Does anyone have ideas or strategies about this? Daniel Jue - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Conditional async?
you could als set via javascript the input components you need and then call dojo.byId('idsubmit').click(); to take advantage of the ajax features. ciao, kiuma On 8/2/07, Malin Ljungh [EMAIL PROTECTED] wrote: Igor: Thanks! Works better now :-) It's not beautiful but it works! Peter: Thanks for your reply. I use validators and async=true and this is the whole point... it's in case of valid input I need to reload the whole page, due to logged in view is so different from anonymous view so async=true and updateComponents is not appropriate anymore. Malin On 8/2/07, Peter Stavrinides [EMAIL PROTECTED] wrote: Malin There are so many scenarios I can think of, which depend very much on how you app is constructed, without a good understanding of which makes answering your question correctly a shot in the dark. I find the best place to validate is before the page render so you wont need a reload afterwards... if you implement the pageValidate interface (PageValidateListener) you can do this. There are also Tapestry components that allow you to refresh portions of pages, after all thats what AJAX is for: input type=submit jwcid=@Submit async=true value=Submit updateComponents=ognl:{'refresh_component1','refresh_component1','error_log_refresh','image_refresh'}/ Peter Malin Ljungh wrote: No one had this issue? Must be the most common scenario I figure... *puff* On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: Thanks Andrea - it works! ... well, almost anyway :) If the page is reached through a post I will get the POSTDATA confirm dialog... :'( Malin On 8/1/07, Andrea Chiumenti [EMAIL PROTECTED] wrote: if login succeeds just write a conditional js that refresh the page On 8/1/07, Malin Ljungh [EMAIL PROTECTED] wrote: I've created a login component to add to my pages. If validation fails I'd like to use async=true to display validation messages - works fine! But - if login succeeds, I'd like to refresh the whole page... how do I perform this? In this case I'd like to have async=false or possibly use some other updateComponents. Thought of a round-trip page or a forced reload from the client using script or something... Any ideas? Malin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This message has been scanned for malware by SurfControl plc. www.surfcontrol.com -- Peter Stavrinides Albourne Partners (Cyprus) Ltd Tel: +357 22 750652 If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Strategy for redirecting due to any error
On 8/2/07, Daniel Jue [EMAIL PROTECTED] wrote: Thanks Nick! Is there a reason RedirectException extends RunTimeException and not Exception? Or is that just the way it was done in the past? Why use a chacked exception? -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
excuse my insistence : T4.0.2: Is compatible Tacos(Dojo) with any Browser??
Hi, I need a guide about of compatibility of Tacos (or Dojo) with browsers. I made a page that works in IE6 and IE7, but it does not in Firefox. In particular, the page is a component tacos:Tree whose links throws a tacos:Dialog where things are edited and saved, finally go back to refreshed tree. In IE the tacos:Dialog works and is a good render, but in FireFox it does not work and watching the resulting code of the generated render its bad. In Firefox the attributes delayedLoad and loadElement of the tree work well, but in IE no. Tacos (or Dojo) has a configuration for each browser? Perhaps this problem is resolved in version 4.1 of Tapestry, but i am not safe of change to this version because version 4.1 is not stable. For Any idea or aid many thanks.
Re: [T4] Event for every request to clear data
Hi Christian, Is there any reason you can't use a threaded HiveMind service? That is usually the approach I take when I have a shared resource that should only live for the duration of a request. Ben On 8/2/07, Christian Haselbach [EMAIL PROTECTED] wrote: Hello, currently, we have a bean that is registered for a lot of pages which holds some information that is only releveant for the scope of the request. So I thought it woule be more appropriate to make an ASO out of it with scope request (which does not exist). The reason behind this is the fact, that this object realy is used for inter-component and -service communication. So I thought about making this an ASO with session scope and registering a service to a listener that fires at the end of a request to clear the data. So is there something analogous to ResetEventHub? Or am I looking in the wrong direction here? Thanks. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock Amtsgericht München, HRB 135082 - 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]
T5 HTML email generation
What's the recommended way of generating HTML formatted files (eg for sending as emails) using Tapestry 5 pages/components? ie triggering Tapestry aside from the servlet container. I've seen PageTester and am thinking it would work using this, calling renderPage to generate a Document and using toMarkup to get the HTML, but the name/package doesn't really encourage me to use it in an application. Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
missnig ComponentClass in 5.0.5
Hi, I'm very new to tapestry, so I tried to watch nice screencasts on http://tapestry.apache.org/tapestry5/screencast.html . Howard is using annotations ComponentClass , which is missing in tapestry-5.0.5 I suppose. Is there any solution for this case? One thing I'm missing is easy-to-use reference with samples and discussions. Thank you Michal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: missnig ComponentClass in 5.0.5
Hi Michael, On 02/08/07, Michal Žeravík [EMAIL PROTECTED] wrote: Hi, I'm very new to tapestry, so I tried to watch nice screencasts on http://tapestry.apache.org/tapestry5/screencast.html . Howard is using annotations ComponentClass , which is missing in tapestry-5.0.5 I suppose. Is there any solution for this case? As a newbie, I ran into a lot of hurdles trying to follow the outdated screencasts and eventually gave up. http://tapestry.apache.org/tapestry5/quickstart/ is much easier to follow and worked out of the box, IIRC. As for your question, I believe you just remove it, that is, it shouldn't be replaced by anything. Take care! Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5 Strategy for redirecting due to any error
As Massimo implies, exceptions derived from RuntimeException are unchecked. Cheers, Nick. Massimo Lusetti wrote: On 8/2/07, Daniel Jue [EMAIL PROTECTED] wrote: Thanks Nick! Is there a reason RedirectException extends RunTimeException and not Exception? Or is that just the way it was done in the past? Why use a chacked exception? -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/T5-Strategy-for-redirecting-due-to-any-error-tf4200570.html#a11968120 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: T5 HTML email generation
It's been done with T4, but I would agree with a recent poster that choosing a template engine like Velocity is better. Search for the recent posts on the topic. Cheers, Nick. Stephen Summerfield wrote: What's the recommended way of generating HTML formatted files (eg for sending as emails) using Tapestry 5 pages/components? ie triggering Tapestry aside from the servlet container. I've seen PageTester and am thinking it would work using this, calling renderPage to generate a Document and using toMarkup to get the HTML, but the name/package doesn't really encourage me to use it in an application. Any suggestions? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/T5-HTML-email-generation-tf4206822.html#a11968292 Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T% : cant extend Page classes
hello. i created a generic page which i want all of my other pages in my application to extend. This page controls various methods which all of my pages need to use. Event Listening methods (ie: onActivate, or any lifecycle annotation) does not work. I have to manually call the method and activate it on the extend page, not the root page which contains the method. I tried to manually implement the Page interface with the generic page which extends all of my other pages public class genericPage implements Page { . } i get these errors Severity and Description Path Resource Location Creation Time Id The type ProtectedPage must implement the inherited abstract method Page.addLifecycleListener(PageLifecycleListener) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313088 The type ProtectedPage must implement the inherited abstract method Page.attached() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313095 The type ProtectedPage must implement the inherited abstract method Page.createActionLink(ComponentPageElement, String, boolean, Object...) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313096 The type ProtectedPage must implement the inherited abstract method Page.createPageLink(String, boolean, Object...) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313089 The type ProtectedPage must implement the inherited abstract method Page.decrementDirtyCount() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313087 The type ProtectedPage must implement the inherited abstract method Page.detached() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313083 The type ProtectedPage must implement the inherited abstract method Page.getComponentElementByNestedId(String) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313093 The type ProtectedPage must implement the inherited abstract method Page.getFieldChange(ComponentPageElement, String) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313085 The type ProtectedPage must implement the inherited abstract method Page.getLocale() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313099 The type ProtectedPage must implement the inherited abstract method Page.getLog() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313090 The type ProtectedPage must implement the inherited abstract method Page.getLogicalName() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313094 The type ProtectedPage must implement the inherited abstract method Page.getRootComponent() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313091 The type ProtectedPage must implement the inherited abstract method Page.getRootElement() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313092 The type ProtectedPage must implement the inherited abstract method Page.incrementDirtyCount() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313097 The type ProtectedPage must implement the inherited abstract method Page.loaded() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313098 The type ProtectedPage must implement the inherited abstract method Page.persistFieldChange(ComponentResources, String, Object) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313086 The type ProtectedPage must implement the inherited abstract method Page.setRootElement(ComponentPageElement) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313084 thanks ~evan
Re: T5 CSS positioning of errors.
yeah i noticed that as well. i used this css to fix the problem /* Validation Decoration Overide */ div.t-error{ margin:6px 0 0 0; padding:0px; background-color:#FF;} div.t-error ul{ margin:0px; padding:1px 0 2px 20px;} div.t-error li{ margin:0px; padding:1px 0 1px 0;} this turns off the X marks = img.t-error-icon{ border:0; display: none;} ~evan - Original Message - From: Daniel Jue [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Wednesday, August 01, 2007 5:01 PM Subject: T5 CSS positioning of errors. Not sure why this is here in the default CSS: div.t-error li { margin-left: -20px; } For me (in Firefox) it makes my form validation errors appear outside the pretty red box they come in. I overrode it in my own CSS, to be div.t-error li { margin-left: 20px; } Now my disc (the solid bullet) and the error are nicely inside the box. Inspecting the li in FireBug, it seems the only style affecting that li were from default.css, not my own. - 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]
problems with tapestry-spring 1.0.0 and tapestry 4.1.2 when using maven
Hi List, I just stumbled over this problem while starting a new project using maven. This project ought to depend on Tapestry 4.1.2-SNAPSHOT and tapestry-spring 1.0.0 for Spring integration. Because tapestry-spring 1.0.0 depends on groupId tapestry and artifactIds tapestry and tapestry-annotations it adds an implicit dependency on Tapestry 4.0.2. Whenever I wanted to run this project using the maven-jetty-plugin I got exceptions telling me that there were two versions of hivemodule.xml, one coming from T4.0.2 and one from T4.1.2. Whoever might come across the same problem, add this to your pom.xml: dependency groupIdcom.javaforge.tapestry/groupId artifactIdtapestry-spring/artifactId version1.0.0/version exclusions exclusion groupIdtapestry/groupId artifactIdtapestry/artifactId /exclusion exclusion groupIdtapestry/groupId artifactIdtapestry-annotations/artifactId /exclusion /exclusions /dependency This will explicitly exclude Tapestry 4.0.2. Cheers, Uli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T% : cant extend Page classes
You create components, not pages. You don't extend from Page. That's an internal Tapestry interface. Please read the tutorial. On 8/2/07, Evan Rawson - Work [EMAIL PROTECTED] wrote: hello. i created a generic page which i want all of my other pages in my application to extend. This page controls various methods which all of my pages need to use. Event Listening methods (ie: onActivate, or any lifecycle annotation) does not work. I have to manually call the method and activate it on the extend page, not the root page which contains the method. I tried to manually implement the Page interface with the generic page which extends all of my other pages public class genericPage implements Page { . } i get these errors Severity and Description Path Resource Location Creation Time Id The type ProtectedPage must implement the inherited abstract method Page.addLifecycleListener(PageLifecycleListener) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313088 The type ProtectedPage must implement the inherited abstract method Page.attached() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313095 The type ProtectedPage must implement the inherited abstract method Page.createActionLink(ComponentPageElement, String, boolean, Object...) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313096 The type ProtectedPage must implement the inherited abstract method Page.createPageLink(String, boolean, Object...) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313089 The type ProtectedPage must implement the inherited abstract method Page.decrementDirtyCount() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313087 The type ProtectedPage must implement the inherited abstract method Page.detached() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313083 The type ProtectedPage must implement the inherited abstract method Page.getComponentElementByNestedId(String) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313093 The type ProtectedPage must implement the inherited abstract method Page.getFieldChange(ComponentPageElement, String) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313085 The type ProtectedPage must implement the inherited abstract method Page.getLocale() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313099 The type ProtectedPage must implement the inherited abstract method Page.getLog() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313090 The type ProtectedPage must implement the inherited abstract method Page.getLogicalName() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313094 The type ProtectedPage must implement the inherited abstract method Page.getRootComponent() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313091 The type ProtectedPage must implement the inherited abstract method Page.getRootElement() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313092 The type ProtectedPage must implement the inherited abstract method Page.incrementDirtyCount() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313097 The type ProtectedPage must implement the inherited abstract method Page.loaded() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313098 The type ProtectedPage must implement the inherited abstract method Page.persistFieldChange(ComponentResources, String, Object) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313086 The type ProtectedPage must implement the inherited abstract method Page.setRootElement(ComponentPageElement) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313084 thanks ~evan -- Howard M. Lewis Ship TWD Consulting, Inc. Independent J2EE / Open-Source Java Consultant Creator and PMC Chair, Apache Tapestry Creator, Apache HiveMind Professional Tapestry training, mentoring, support and project work. http://howardlewisship.com
Re: T% : cant extend Page classes
Or if you are making your own base page or base component class, it goes in the /base directory instead of /pages or /components i.e. for my reports I have /base/reports/AbstractReportPage.java and my implementations of it go in /pages/../ReportABC.java I have my user's ASO and some Inject annotations in the abstract class (I think it could be concrete without making a difference), and everything works well in the pages that extend it. I have not tried page render cycle annotations in my base classes yet, but I don't see how it would be different. If you are in fact making your own generic page, I would make sure you don't call it anything similar to the T5 internals, just for your own sanity. =) Also, I think having those kinds of classes in /base protects those classes from the black-magic T5 does with classes found under /pages, /mixins and /components. On 8/2/07, Howard Lewis Ship [EMAIL PROTECTED] wrote: You create components, not pages. You don't extend from Page. That's an internal Tapestry interface. Please read the tutorial. On 8/2/07, Evan Rawson - Work [EMAIL PROTECTED] wrote: hello. i created a generic page which i want all of my other pages in my application to extend. This page controls various methods which all of my pages need to use. Event Listening methods (ie: onActivate, or any lifecycle annotation) does not work. I have to manually call the method and activate it on the extend page, not the root page which contains the method. I tried to manually implement the Page interface with the generic page which extends all of my other pages public class genericPage implements Page { . } i get these errors Severity and Description Path Resource Location Creation Time Id The type ProtectedPage must implement the inherited abstract method Page.addLifecycleListener(PageLifecycleListener) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313088 The type ProtectedPage must implement the inherited abstract method Page.attached() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313095 The type ProtectedPage must implement the inherited abstract method Page.createActionLink(ComponentPageElement, String, boolean, Object...) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313096 The type ProtectedPage must implement the inherited abstract method Page.createPageLink(String, boolean, Object...) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313089 The type ProtectedPage must implement the inherited abstract method Page.decrementDirtyCount() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313087 The type ProtectedPage must implement the inherited abstract method Page.detached() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313083 The type ProtectedPage must implement the inherited abstract method Page.getComponentElementByNestedId(String) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313093 The type ProtectedPage must implement the inherited abstract method Page.getFieldChange(ComponentPageElement, String) dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313085 The type ProtectedPage must implement the inherited abstract method Page.getLocale() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313099 The type ProtectedPage must implement the inherited abstract method Page.getLog() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313090 The type ProtectedPage must implement the inherited abstract method Page.getLogicalName() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313094 The type ProtectedPage must implement the inherited abstract method Page.getRootComponent() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313091 The type ProtectedPage must implement the inherited abstract method Page.getRootElement() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313092 The type ProtectedPage must implement the inherited abstract method Page.incrementDirtyCount() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.javaline 20 1186086487400 313097 The type ProtectedPage must implement the inherited abstract method Page.loaded() dma/src/main/java/com/americanadtrader/dma/services ProtectedPage.java line 20 1186086487400 313098 The type ProtectedPage must implement the inherited abstract method Page.persistFieldChange(ComponentResources, String, Object)
T4 creating dynamic styles for divs
I have an issue where I need to create the style for a div based on the properties of an object in my database. This object contains top, left, width, and height which are important to create this particular div. Is there anyway that I can apply these attributes dynamically to a div using a component or something else? -- View this message in context: http://www.nabble.com/T4-creating-dynamic-styles-for-divs-tf4210082.html#a11976026 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: [ANN]T5 book: reviewers are needed
This is great news, BTW. Good luck with it! Cheers, Nick. Kolesnikov, Alexander GNI wrote: I am writing a book on T5 and the publisher is looking for technical reviewers for this book. Please contact me directly if you want to review the book or if you have any questions. Cheers, Alexander -- CONFIDENTIALITY NOTICE: If you have received this email in error, please immediately notify the sender by e-mail at the address shown. This email transmission may contain confidential information. This information is intended only for the use of the individual(s) or entity to whom it is intended even if addressed incorrectly. Please delete it from your files if you are not the intended recipient. Thank you for your compliance. Copyright 2007 CIGNA == - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JumpStart v1.6 - for Tapestry 4.1.2
Hey Geoff, could you comment on the reasons why you require an J2EE container. Is it just so that you don't need to deal with initializing the EntityManager yourself or do you see other compelling benefits in using the container? I'm asking because while we use EJB3 Hibernate annotations in Trails ( trailsframework.org), we don't use an EntityManager at all (the work had started before EntityManager was born, much less the stand alone EntityManager spec finalized), but we've been thinking of moving to using it as we start working on supporting transaction management patterns other than session-per-request. Kalle On 7/25/07, Geoff Callender [EMAIL PROTECTED] wrote: Hi Naz, Is it possible for you to put some tips to use tomcat with your JumpStart? Sorry but I don't have any plans for doing a Tomcat-only implementation, so the short answer is no. The reason is that JumpStart uses EJB3 for the business layer. That pretty much means an application server has to be involved. Today, the instructions cover just one app server: JBoss (note that JBoss has Tomcat embedded in it to handle the web layer, and the instructions cover this). In future, instructions are planned for other EJB3 implementations: Glassfish, JBoss MicroContainer, and perhaps one other app server (JOnAS? OC4J?). If someone else would like to do instructions then I'd really appreciate it, as my time for JumpStart is very limited. I'm sure it would benefit many in the Tapestry community. Regards, Geoff On 24/07/2007, at 10:51 AM, Bhuiyan, Nazmul wrote: Hi, Is it possible for you to put some tips to use tomcat with your JumpStart? Thanks Naz -Original Message- From: Geoff Callender [mailto:[EMAIL PROTECTED] Sent: Tuesday, 24 July 2007 2:18 a.m. To: Tapestry users Subject: JumpStart v1.6 - for Tapestry 4.1.2 Hi all, JumpStart v1.6.0 is now available. New features include: it works with Tapestry 4.1.2, it has a more Maven-like project structure, and it builds its exploded EAR file on the fly. You'll find it at the usual place: http://files.doublenegative.com.au/jumpstart JumpStart v1.5.0 has also been released today for those wanting to stay with Tapestry 4.0.2 but get the other new features. Comments and suggestions welcomed. Be brutal or helpful - I don't care which, because it all helps to make this stuff more useful. Cheers, Geoff Callender - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T4.1:Overloaded Submit Button
Hello All, I'm trying to overload tapestries Submit with my own submit so I can have my code in the isDisabled() function. I want to do this so I can check only in one place is a user has write access to any page in my application in one place, ie the isDisabled() function. Since I'm having to do some strange things to get this going, copy the contents of the Submit.jwc from the Tapestry source into MySubmit.jwc and copy the SubmitBindings.script into my source directory, I was wondering if this is the best way to do this, or is there a better way. Thanks, Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T4.1:Overloaded Submit Button
It's a matter of tastes, you could also put a js code that does a dojo.event.connect (and sons ;-p ). Ciao, kiuma On 8/3/07, Craig Spry [EMAIL PROTECTED] wrote: Hello All, I'm trying to overload tapestries Submit with my own submit so I can have my code in the isDisabled() function. I want to do this so I can check only in one place is a user has write access to any page in my application in one place, ie the isDisabled() function. Since I'm having to do some strange things to get this going, copy the contents of the Submit.jwc from the Tapestry source into MySubmit.jwc and copy the SubmitBindings.script into my source directory, I was wondering if this is the best way to do this, or is there a better way. Thanks, Craig - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]