Re: 答复: How to use t5.0.13
we need more input an exception dump would help 2008/6/19 滕训华 [EMAIL PROTECTED]: Yes,I have changed the class name of the web.xml. -邮件原件- 发件人: Martijn Brinkers (List) [mailto:[EMAIL PROTECTED] 发送时间: 2008年6月19日 13:34 收件人: Tapestry users 主题: Re: How to use t5.0.13 Did you change web.xml (specifically org.apache.tapestry5.TapestryFilter) as well? Martijn Brinkers On Thu, 2008-06-19 at 13:24 +0800, 滕训华 wrote: I found that t5.0.13 can download,so I download it and replace the jars with new version and change org.apache.tapestry into org.apache.tapestry5,but why I can not start the tomcat server in eclipse What i forget to do ? - 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] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
T5: current markup writer or document
hi group, haven't found this in the sources: is there any possibility to obtain the thread's current markupwriter or document in a service class? thanks in advance c)hristian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Merge T4-Application with a T5-Page
Hello, I want to insert a new page (for example), written in T5 in a T4-project (should be possible since T5.0.12), but i have no idea how i could make this. I already insert an empty tml and the belonging java in my workspace and insert the T5.0.13-libs in the ear-file for deploying. Has anybody have tried this and can show me the right direction for this? What changes in the old project-files and/or on the server i have to do? How do I link from a T4-page to a T5-page? What libraries must be substituted or added? What are other things i have to pay attention? Thank you for (hopefully large) replies, Tom PS: I am working with IntelliJ and Glassfish. -- View this message in context: http://www.nabble.com/Merge-T4-Application-with-a-T5-Page-tp18000169p18000169.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: A important step
wich error? 2008/6/19 滕训华 [EMAIL PROTECTED]: Now,I can solve a problem that can use t5.0.13 in my project,before,when I was using the t5.0.13,I can not start the tomcat with some error. But it is noly normal without t5component 5.0.13,if I copy t5c 5.0.13 jar files (t5c-commons-0.5.13.jar, t5c-contrib-0.5.13.jar),same error will occur: 008-6-19 15:50:34 org.apache.catalina.core.StandardContext start 严重: Error filterStart 2008-6-19 15:50:34 org.apache.catalina.core.StandardContext start 严重: Context startup failed due to previous errors log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.XmlWebApplicationContext). log4j:WARN Please initialize the log4j system properly. 2008-6-19 15:50:34 org.apache.catalina.core.StandardHost getDeployer 信息: Create Host deployer for direct deployment ( non-jmx ) 2008-6-19 15:50:34 org.apache.coyote.http11.Http11Protocol start 信息: Starting Coyote HTTP/1.1 on http-8080 2008-6-19 15:50:35 org.apache.jk.common.ChannelSocket init 信息: JK2: ajp13 listening on /0.0.0.0:8009 2008-6-19 15:50:35 org.apache.jk.server.JkMain start 信息: Jk running ID=0 time=0/46 config=null 2008-6-19 15:50:35 org.apache.catalina.startup.Catalina start 信息: Server startup in 5578 ms What did I forget to copy or set? -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: [ANNOUNCE] Tapestry 5.0.13
Hi, I think the upgrade notes lack comments about the reordering of the javascript to the end of the document. This can cause major problems for many application (well, it did for mine). One of the changes I needed to make was to include the prototype link in my layout component (causing this script to be included twice). Kind regards, Joachim Howard Lewis Ship wrote: The latest release of Tapestry, Tapestry 5.0.13 , is now available. Tapestry 5.0.13 is just about feature complete and can be considered a beta release. A release candidate is expected in the near future. 5.0.13 adds quite a bit of improved Ajax functionality, and addresses a large number of bugs. It also makes it easier to use Tapestry with Groovy. Pay careful attention to the upgrade notes as there have been some wide-ranging changes, especially a rename of the root package from org.apache.tapestry to org.apache.tapestry5 (to faciliate side-by-side deployment of Tapestry 4 and Tapestry 5 applications inside the same WAR). Upgrade notes: http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html See the release notes for more details. http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html Note: there was no public release of Tapestry 5.0.12 (the release was rejected due to some significant issues). Download Tapestry 5.0.13 from http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html -- Joachim Van der Auwera PROGS bvba, progs.be - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
grid component with buttons T5.0.13
I have a requirement where i have to display bunch of beans in a grid component and an edit button as an extra column. Clicking on that button i should be able to edit that bean.This is my grid. t:grid source=callSummaryList row=callSummaryBean add=edit t:parameter name=editcell t:submit t:id=edit value=edit/ /t:parameter /t:grid Object onSuccess(){ return CallVerify.class; } I am able to display everything.But when i click on the button onSuccess method is not executing. The value of action attribute of the grid generated from tag are getting added to my url like (callsummary.form) which is't my page. How can i forward control to another page using button.Though I am able to forward control to another page using t:pagelink. I want to do it with buttons.
RE: [ANNOUNCE] Tapestry 5.0.13
Howard, I can not find in the documentation on how to use Groovy with T5. Could you please lead me to it? Perhaps I didn't look detailed enough. Many thanks -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 8:20 AM To: Tapestry users Subject: [ANNOUNCE] Tapestry 5.0.13 The latest release of Tapestry, Tapestry 5.0.13 , is now available. Tapestry 5.0.13 is just about feature complete and can be considered a beta release. A release candidate is expected in the near future. 5.0.13 adds quite a bit of improved Ajax functionality, and addresses a large number of bugs. It also makes it easier to use Tapestry with Groovy. Pay careful attention to the upgrade notes as there have been some wide-ranging changes, especially a rename of the root package from org.apache.tapestry to org.apache.tapestry5 (to faciliate side-by-side deployment of Tapestry 4 and Tapestry 5 applications inside the same WAR). Upgrade notes: http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html See the release notes for more details. http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html Note: there was no public release of Tapestry 5.0.12 (the release was rejected due to some significant issues). Download Tapestry 5.0.13 from http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE: The information in this email (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this email in error, please immediately notify me by Reply command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by American International Group, Inc. or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use.
Re: [ANNOUNCE] Tapestry 5.0.13
You'll find some examples is Howard's blog http://tapestryjava.blogspot.com Partogi, Joshua wrote: Howard, I can not find in the documentation on how to use Groovy with T5. Could you please lead me to it? Perhaps I didn't look detailed enough. Many thanks -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 8:20 AM To: Tapestry users Subject: [ANNOUNCE] Tapestry 5.0.13 The latest release of Tapestry, Tapestry 5.0.13 , is now available. Tapestry 5.0.13 is just about feature complete and can be considered a beta release. A release candidate is expected in the near future. 5.0.13 adds quite a bit of improved Ajax functionality, and addresses a large number of bugs. It also makes it easier to use Tapestry with Groovy. Pay careful attention to the upgrade notes as there have been some wide-ranging changes, especially a rename of the root package from org.apache.tapestry to org.apache.tapestry5 (to faciliate side-by-side deployment of Tapestry 4 and Tapestry 5 applications inside the same WAR). Upgrade notes: http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html See the release notes for more details. http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html Note: there was no public release of Tapestry 5.0.12 (the release was rejected due to some significant issues). Download Tapestry 5.0.13 from http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Using Hibernate interceptors with T5-Hibernate
Hi! We have few existing Hibernate interceptors and we successfully added those to the Hibernate configuration, but the question is how to inject services / application states to those interceptors. This cannot be done with autobind because (According to Hibernate docs.) Hibernate interceptors must contain parameterless constructors that Hibernate uses when instantiates these classes. If interceptors are used the Hibernate way, then the lifecycle etc. are controlled by Hibernate, and T5 services cannot be used? How to solve this? - 99 Ps. If the answer is to use T5 decorators instead of Hibernate interceptors could someone post a short example how to decorate a service so that all classes implementing specific interface that come to service as parameters are updated to include correct, let's say, update timestamp? Or better yet include it anyway so I can implement it that way in the future :) Thanks! (I did read the IOC docs but couldn't quite picture how to achieve this, as I can target multiple services, but how do I intercept all those entities that go as parameters to service _methods_?) -- View this message in context: http://www.nabble.com/Using-Hibernate-interceptors-with-T5-Hibernate-tp18002714p18002714.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: Using Hibernate interceptors with T5-Hibernate
thats my (ugly) solution http://pastebin.com/f731adbea 2008/6/19 9902468 [EMAIL PROTECTED]: Hi! We have few existing Hibernate interceptors and we successfully added those to the Hibernate configuration, but the question is how to inject services / application states to those interceptors. This cannot be done with autobind because (According to Hibernate docs.) Hibernate interceptors must contain parameterless constructors that Hibernate uses when instantiates these classes. If interceptors are used the Hibernate way, then the lifecycle etc. are controlled by Hibernate, and T5 services cannot be used? How to solve this? - 99 Ps. If the answer is to use T5 decorators instead of Hibernate interceptors could someone post a short example how to decorate a service so that all classes implementing specific interface that come to service as parameters are updated to include correct, let's say, update timestamp? Or better yet include it anyway so I can implement it that way in the future :) Thanks! (I did read the IOC docs but couldn't quite picture how to achieve this, as I can target multiple services, but how do I intercept all those entities that go as parameters to service _methods_?) -- View this message in context: http://www.nabble.com/Using-Hibernate-interceptors-with-T5-Hibernate-tp18002714p18002714.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] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
[T5] How to add context info to the log messages
Hello! Can anyone think of an *elegant* way how to change the T5 loggers to include some per request information (e.g. sessionid, or request.getRemoteAddress() or something similar) in order to provide better traceability of webapp events? Seems like a common problem. I am not an expert on Tapestry 5 IoC but an elegant solution does not seem to be so easily possible (LoggerSourceImpl is provided in RegistryBuilder constructor):-( Thanks, Priit. -- View this message in context: http://www.nabble.com/-T5--How-to-add-context-info-to-the-log-messages-tp18004137p18004137.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: Using Hibernate interceptors with T5-Hibernate
Thanks, this is exactly what I ment! (What is the ugly part? =D ) Thanks also for the superb component (and then some) lib! -99 Sven Homburg wrote: thats my (ugly) solution http://pastebin.com/f731adbea 2008/6/19 9902468 [EMAIL PROTECTED]: Hi! We have few existing Hibernate interceptors and we successfully added those to the Hibernate configuration, but the question is how to inject services / application states to those interceptors. This cannot be done with autobind because (According to Hibernate docs.) Hibernate interceptors must contain parameterless constructors that Hibernate uses when instantiates these classes. If interceptors are used the Hibernate way, then the lifecycle etc. are controlled by Hibernate, and T5 services cannot be used? How to solve this? - 99 Ps. If the answer is to use T5 decorators instead of Hibernate interceptors could someone post a short example how to decorate a service so that all classes implementing specific interface that come to service as parameters are updated to include correct, let's say, update timestamp? Or better yet include it anyway so I can implement it that way in the future :) Thanks! (I did read the IOC docs but couldn't quite picture how to achieve this, as I can target multiple services, but how do I intercept all those entities that go as parameters to service _methods_?) -- View this message in context: http://www.nabble.com/Using-Hibernate-interceptors-with-T5-Hibernate-tp18002714p18002714.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] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - best regards Sven -- View this message in context: http://www.nabble.com/Using-Hibernate-interceptors-with-T5-Hibernate-tp18002714p18005737.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: [T5] How to add context info to the log messages
The best way to do it is with slf4j MDC class probably. Sorry, forget the question, it is not Tapestry related. It can be done elegantly with logging framework. karu3 wrote: Hello! Can anyone think of an *elegant* way how to change the T5 loggers to include some per request information (e.g. sessionid, or request.getRemoteAddress() or something similar) in order to provide better traceability of webapp events? Seems like a common problem. I am not an expert on Tapestry 5 IoC but an elegant solution does not seem to be so easily possible (LoggerSourceImpl is provided in RegistryBuilder constructor):-( Thanks, Priit. -- View this message in context: http://www.nabble.com/-T5--How-to-add-context-info-to-the-log-messages-tp18004137p18005738.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: How to trace the further problem
I think you have to change your web.xml too and switch this line filter-classorg.apache.tapestry.TapestryFilter/filter-class with this line filter-classorg.apache.tapestry5.TapestryFilter/filter-class if you haven't done it yet... look for your log4j.properties, there are some changes there too... 2008/6/19 滕训华 [EMAIL PROTECTED]: After I changed the tapestry jar files with t5.0.13,when I start the tomcat it give me a error: 严重: Error filterStart 2008-6-19 14:09:55 org.apache.catalina.core.StandardContext start 严重: Context startup failed due to previous errors 2008-6-19 14:09:55 org.apache.catalina.core.StandardHost getDeployer I don't know where the problem is,how to get the further information.I have change the package name into org.apache.tapestry5.*** -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910
Re: grid component with buttons T5.0.13
Hi raveendra, I think you will have less trouble using an ActionLink instead of Submit t:grid source=callSummaryList row=callSummaryBean add=edit t:parameter name=editcell a t:type=actionlink t:id=editRow context=callSummaryBean.id /t:parameter /t:grid Object onActionFromEditRow(int id){ ... } the return of the method can be any page(previously injected). 2008/6/19 raveendra [EMAIL PROTECTED]: I have a requirement where i have to display bunch of beans in a grid component and an edit button as an extra column. Clicking on that button i should be able to edit that bean.This is my grid. t:grid source=callSummaryList row=callSummaryBean add=edit t:parameter name=editcell t:submit t:id=edit value=edit/ /t:parameter /t:grid Object onSuccess(){ return CallVerify.class; } I am able to display everything.But when i click on the button onSuccess method is not executing. The value of action attribute of the grid generated from tag are getting added to my url like (callsummary.form) which is't my page. How can i forward control to another page using button.Though I am able to forward control to another page using t:pagelink. I want to do it with buttons. -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
custom component like no function.
Hi all, I have a problem on custom component. i think i have left out something or do something wrong. my layout.tml header and footer 's wording didn't come out at the start.tml render. only show out Would you like to Log In?' can someone help me? :( Regards, example like layout. layout.tml --- html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body div class=nav-top header /div t:body/ div class=nav-bottom footer here /div /body /html layout.java -- package com.companyname.web.components; public class layout { } start.tml html t:type=layout xmlns:t= http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; h1header here/h1 p Would you like to t:pagelink page=indexLog In/t:pagelink? /p /html start.java package com.companyname.web.pages; public class maint_materialtype { }
Re: grid component with buttons T5.0.13
Em Thu, 19 Jun 2008 05:58:41 -0300, raveendra [EMAIL PROTECTED] escreveu: t:grid source=callSummaryList row=callSummaryBean add=edit t:parameter name=editcell t:submit t:id=edit value=edit/ /t:parameter /t:grid AFAIK, you should always use the Submit component inside a Form. Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[T5] Select field, blank value and hibernate entity
Hello, I use Tapestr 5.0.11. I generate a select field from a list of hibernate entities and a default blank value. but when I submit my form with the blank value, I get this error message : Coercion of to type java.lang.Long (via String -- Long) failed: For input string: The select field is not mandatory, I would expect the blank value being mapped to a null object. My template : select t:type=select t:id=staskGroups model=taskGroups value=taskGroupSelected/ My field : @Property private TaskGroup taskGroupSelected; Did I make something wrong ? Thank's, Denis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DatePicker is not working in Tapestry 4.1.3
Hai, i am facing a problem regarding DatePicker.I am using Tapestry 4.1.3 version. When i am using DatePicker alone it is working fine but when i am using inside FloatingPlane it is giving an Javascript error and it is not working.The error is calendar_DatePicker_7 is undefined in IE 6 version. Eventhough i cleared the cache in IE the same javascript error is found. The sample code snippet is div jwcid=@Any id=popin dojoType=FloatingPane class=floatingPaneStyle hasShadow=true resizable=false /div Can anyone give some solution to this problem. Thanks in advance. -- View this message in context: http://www.nabble.com/DatePicker-is-not-working-in-Tapestry-4.1.3-tp18007920p18007920.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: DatePicker is not working in Tapestry 4.1.3
Seems like a bug - add an issue at https://issues.apache.org/jira/browse/TAPESTRY I think we can fix it for the 4.1.6 release On Thu, Jun 19, 2008 at 3:30 PM, Sasidhar.av [EMAIL PROTECTED] wrote: Hai, i am facing a problem regarding DatePicker.I am using Tapestry 4.1.3 version. When i am using DatePicker alone it is working fine but when i am using inside FloatingPlane it is giving an Javascript error and it is not working.The error is calendar_DatePicker_7 is undefined in IE 6 version. Eventhough i cleared the cache in IE the same javascript error is found. The sample code snippet is div jwcid=@Any id=popin dojoType=FloatingPane class=floatingPaneStyle hasShadow=true resizable=false /div Can anyone give some solution to this problem. Thanks in advance. -- View this message in context: http://www.nabble.com/DatePicker-is-not-working-in-Tapestry-4.1.3-tp18007920p18007920.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] -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Strange behavior when instantiating properties directly in the page
Is there a situation in which it makes sense to initialise a field AND annotate it with @Persist? If not, then I'd like Tapestry to detect it and throw an exception. I've been caught out by this too and it's a huge time-waster. Geoff On 18/06/2008, at 4:45 AM, Dave Dombrosky wrote: I also came across this issue. It was very tricky to troubleshoot. I have added a documentation bug to JIRA so that other people can avoid this problem. Here is the link to the issue: https://issues.apache.org/jira/browse/TAPESTRY-2463 -Dave On Tue, Jun 17, 2008 at 1:16 AM, Dmitry Shyshkin [EMAIL PROTECTED] wrote: Hi, Thorsten This is correct behavior. Tapestry pages are shared across all requests, so User object will be the same. you need to add some code like follow: @Persist @Property private User user; @OnEvent(Form.PREPARE) void prepare() { if (user == null) { user = new User(); } } Thorsten Castor wrote: Hi, we just figured out that properties which are instantiated directly will be shared between sessions on the same server. So if you start the example app on two browsers and type some text in the textfield of the first browser, hit enter and reload on the second browser you will see the content here as well. If the property is instantiated lazy in a getter or any other method the content won't be shared. I tested it with 5.0.11, 5.0.12-SNAPSHOT and 5.0.13-SNAPSHOT on jetty-6.1.9 and tomcat-6.0.13. I'm quite new to the list so was this problem discussed before or is it a bug? Here the example I used: public class Index { @Persist @Property private User user = new User(); @Component(id=textField, parameters={value=user.name}) private TextField textField; } html xmlns:t=http://tapestry.apache.org/schema/ tapestry_5_0_0.xsd head/head body t:form t:textfield t:id=textField/ /t:form /body /html public class User { private String name; public String getName() { return name; } public void setName(String name) { this.name = name; } } - 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: [ANN] JumpStart 3.7: for Tapestry 5.0.13
Hi Kristian, Some neat ideas there that I intend exploring. Thanks. Has anybody else tried adding conversations functionality? Geoff On 18/06/2008, at 10:04 PM, Kristian Marinkovic wrote: hi geoff, i think there is a more elegant way to implement conversations in tapestry 5 because i can't contribute what i implemented so far i'll try to describe it :) every link is created by the LinkFactory service that accepts a list of LinkFactoryListener. for every Link creation the listeners are called giving you the possibility to add additional parameters (eg. conversationId) so if a conversation is started a conversationId will be added to every link (as well a the form component). the next problem that has to be solved is the restoration of the data in different conversations. you could define a own persistence strategy (conversation) to store the data separatly. but this implies that every component used by a page in a conversation uses this strategy. therefore i decorate the PersistentFieldManager to intercept persistent fields when a conversation is active. i hope i could explain my approach sufficient :) g, kris Geoff Callender [EMAIL PROTECTED] 18.06.2008 13:37 Bitte antworten an Tapestry users users@tapestry.apache.org An Tapestry users users@tapestry.apache.org Kopie Thema Re: [ANN] JumpStart 3.7: for Tapestry 5.0.13 Thanks, Max, for the acknowledgement. Oddly enough I've had no feedback from anyone on the conversations implementation I added to JumpStart in 3.6. Has anyone found it useful or perhaps extended on it? For those who didn't spot it - it's in the Wizards examples. Cheers, Geoff On 18/06/2008, at 3:22 AM, maxthesecond wrote: That's attitude man! I'm allways amazed by your readines and the quality of your guidance, you are a headlight for the poor average let's try tapestry once more again programmer. Best wishes and thanks! Well, you, and many others Geoff Callender-2 wrote: As always, comments and suggestions are encouraged. Be helpful or brutal - I don't care which - because it all helps to make this stuff more useful. Cheers, Geoff -- View this message in context: http://www.nabble.com/-ANN--JumpStart-3.7%3A-for-Tapestry-5.0.13-tp17907214p17923600.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] - 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] A Question about server side validation
Hi all, I was using a tricky field by field validation on the server side(not cross-validation) inside the BeanEditForm and i realize that to use onValidateFromXXX you have to declare explicitly the id of the field wrapping it with a parameter tag. I think this is a little verbose, since i didn't have to change anything in the field, i just have to do it because without that, the validation do not work. My BeanEditForm jump from a single line declaration to a long multi-line unnecessary thing. This can be considered as a flaw? Thanks in advance. -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to get parent window and refresh it
Hi,everyone: I used the popup window of the t5c 0.5.13,how can i refresh the parent window and refresh it.
Re: [T5] A Question about server side validation
Em Thu, 19 Jun 2008 10:43:49 -0300, Marcelo Lotif [EMAIL PROTECTED] escreveu: I was using a tricky field by field validation on the server side(not cross-validation) inside the BeanEditForm and i realize that to use onValidateFromXXX you have to declare explicitly the id of the field wrapping it with a parameter tag. I think this is a little verbose, since i didn't have to change anything in the field, i just have to do it because without that, the validation do not work. Use the form validation event, not the field validation one: Form.VALIDATE_FORM or onValidateForm(). Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Putting templates together with the java
Perhaps I've lost my mind, but I'm struggling to find a good reason why we keep our templates and properties separate from our java source. I find it causes nothing but pain having to incessantly jump between these disconnected parts of the source tree. Is it purely to appease some Maven convention? What makes it even stranger is that the java classes end up together with the templates and properties anyway - my build process puts classes, templates and properties all together in WEB-INF/classes/ regardless of where they come from. Live class reloading loves it that way and it keeps them secure from prying hackers. So why not mix the source together into the following structure src/ main/ java/-- or perhaps some other name like t5/ myproject/ base/ components/ css/ images/ META-INF/ mixins/ pages/ services/ WEB-INF/ and let the build coax it into the WAR file correctly? Cheers, Geoff
RE: Putting templates together with the java
I've always assumed (apart from being more correct in some vague way) that the main practical reason is to keep the web designers away from Java code - so they only see the templates, properties, javascript css. Pure assumption on my part though. -Original Message- From: Geoff Callender [mailto:[EMAIL PROTECTED] Sent: 19 June 2008 15:02 To: Tapestry users Subject: Putting templates together with the java Perhaps I've lost my mind, but I'm struggling to find a good reason why we keep our templates and properties separate from our java source. I find it causes nothing but pain having to incessantly jump between these disconnected parts of the source tree. Is it purely to appease some Maven convention? What makes it even stranger is that the java classes end up together with the templates and properties anyway - my build process puts classes, templates and properties all together in WEB-INF/classes/ regardless of where they come from. Live class reloading loves it that way and it keeps them secure from prying hackers. So why not mix the source together into the following structure src/ main/ java/-- or perhaps some other name like t5/ myproject/ base/ components/ css/ images/ META-INF/ mixins/ pages/ services/ WEB-INF/ and let the build coax it into the WAR file correctly? Cheers, Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Putting templates together with the java
Are you using eclipse? ctrl + shift + R is great (use * as wildcard) Or you can use this plugin http://code.google.com/p/loom-t5/ Otherwise you can bundle your source anyhow you like, as long as your build makes the war correctly at the end of the day. The maven folder structure is only a (good, tried and trusted) recommendation. On 19/06/2008, Geoff Callender [EMAIL PROTECTED] wrote: Perhaps I've lost my mind, but I'm struggling to find a good reason why we keep our templates and properties separate from our java source. I find it causes nothing but pain having to incessantly jump between these disconnected parts of the source tree. Is it purely to appease some Maven convention? What makes it even stranger is that the java classes end up together with the templates and properties anyway - my build process puts classes, templates and properties all together in WEB-INF/classes/ regardless of where they come from. Live class reloading loves it that way and it keeps them secure from prying hackers. So why not mix the source together into the following structure src/ main/ java/-- or perhaps some other name like t5/ myproject/ base/ components/ css/ images/ META-INF/ mixins/ pages/ services/ WEB-INF/ and let the build coax it into the WAR file correctly? Cheers, Geoff
custom component success deployed but no render
Hi all, I have a problem on custom component. i think i have left out something or do something wrong. my layout.tml header and footer 's wording didn't come out at the start.tml render. only show out Would you like to Log In?' can someone help me? :( Regards, example like layout. layout.tml --- html xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; head titleMy Nifty Web Application/title /head body div class=nav-top header /div t:body/ div class=nav-bottom footer here /div /body /html layout.java -- package com.companyname.web.components; public class layout { } start.tml html t:type=layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; h1header here/h1 p Would you like to t:pagelink page=indexLog In/t:pagelink? /p /html start.java package com.companyname.web.pages; public class maint_materialtype { }
Re: [T5] A Question about server side validation
Ok, but how can i return the error to the page with onValidateForm? With the field validation method, i can throw a ValidationException in case of failure, and then tapestry puts the error message on the top of the form and decorates the bad field. But with onValidateForm i can not do this. I tried to make a _form.recordError, but after it still enters into the onSuccess method... 2008/6/19 Thiago H. de Paula Figueiredo [EMAIL PROTECTED]: Em Thu, 19 Jun 2008 10:43:49 -0300, Marcelo Lotif [EMAIL PROTECTED] escreveu: I was using a tricky field by field validation on the server side(not cross-validation) inside the BeanEditForm and i realize that to use onValidateFromXXX you have to declare explicitly the id of the field wrapping it with a parameter tag. I think this is a little verbose, since i didn't have to change anything in the field, i just have to do it because without that, the validation do not work. Use the form validation event, not the field validation one: Form.VALIDATE_FORM or onValidateForm(). Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: using with maven / tomcat / eclipse
Hello, I like to develop in tomcat and have not used Jetty much. I have gone through the tutorials using Jetty and have T5 running with hibernate under Jetty/maven/eclipse. I have been trying to use tomcat instead of Jetty in the tutorial off the T5 homepage but have had no luck and I cannot seem to find much resources on this. Can anyone link me a good resource that uses Tomcat / maven / eclipse to develop in T5 or maybe give me a some ideas of what I could be doing wrong? Thanks, --James
Re: T5: using with maven / tomcat / eclipse
What issues are you having? How are you attempting to run your application in Tomcat? (Through Eclipse WTP, through Tomcat as a batch file/service, through maven itself, etc?) There are many ways to do the essentially same thing. I personally launch Tomcat through Eclipse WTP (or also Europa or Ganymede) and Eclipse auto-publishes the files into a local Tomcat installation. For some reason I stopped serving my app directly from my workspace, I can't remember why. I also manually export a war file to a testing server, and have Tomcat unpack and serve it there. I don't even keep a context.xml in my META-INF/ anymore, because I keep contextual stuff with the individual Tomcat installations (i.e. JNDI references, flags variables for SSO and Tapestry error pages). On Thu, Jun 19, 2008 at 11:16 AM, James Sherwood [EMAIL PROTECTED] wrote: Hello, I like to develop in tomcat and have not used Jetty much. I have gone through the tutorials using Jetty and have T5 running with hibernate under Jetty/maven/eclipse. I have been trying to use tomcat instead of Jetty in the tutorial off the T5 homepage but have had no luck and I cannot seem to find much resources on this. Can anyone link me a good resource that uses Tomcat / maven / eclipse to develop in T5 or maybe give me a some ideas of what I could be doing wrong? Thanks, --James
Re: T5: using with maven / tomcat / eclipse
Hello, In the tutorial it uses this maven command: mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.apache.tapestry -DartifactId=tutorial1 -DpackageName=org.apache.tapestry5.tutorial To first create the project. Then I import it into eclipse. The problem is the file structure does not seem to match what I am used to with T3. Where do I point my context in tomcat at? I tried the WEB-INF and it doesnt work. Thanks, --James - Original Message - From: Daniel Jue [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Thursday, June 19, 2008 12:41 PM Subject: Re: T5: using with maven / tomcat / eclipse What issues are you having? How are you attempting to run your application in Tomcat? (Through Eclipse WTP, through Tomcat as a batch file/service, through maven itself, etc?) There are many ways to do the essentially same thing. I personally launch Tomcat through Eclipse WTP (or also Europa or Ganymede) and Eclipse auto-publishes the files into a local Tomcat installation. For some reason I stopped serving my app directly from my workspace, I can't remember why. I also manually export a war file to a testing server, and have Tomcat unpack and serve it there. I don't even keep a context.xml in my META-INF/ anymore, because I keep contextual stuff with the individual Tomcat installations (i.e. JNDI references, flags variables for SSO and Tapestry error pages). On Thu, Jun 19, 2008 at 11:16 AM, James Sherwood [EMAIL PROTECTED] wrote: Hello, I like to develop in tomcat and have not used Jetty much. I have gone through the tutorials using Jetty and have T5 running with hibernate under Jetty/maven/eclipse. I have been trying to use tomcat instead of Jetty in the tutorial off the T5 homepage but have had no luck and I cannot seem to find much resources on this. Can anyone link me a good resource that uses Tomcat / maven / eclipse to develop in T5 or maybe give me a some ideas of what I could be doing wrong? Thanks, --James __ Information from ESET Smart Security, version of virus signature database 3200 (20080619) __ The message was checked by ESET Smart Security. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: using with maven / tomcat / eclipse
try mvn tomcat:run On Thu, Jun 19, 2008 at 6:16 PM, James Sherwood [EMAIL PROTECTED] wrote: Hello, I like to develop in tomcat and have not used Jetty much. I have gone through the tutorials using Jetty and have T5 running with hibernate under Jetty/maven/eclipse. I have been trying to use tomcat instead of Jetty in the tutorial off the T5 homepage but have had no luck and I cannot seem to find much resources on this. Can anyone link me a good resource that uses Tomcat / maven / eclipse to develop in T5 or maybe give me a some ideas of what I could be doing wrong? Thanks, --James -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: using with maven / tomcat / eclipse
I would expect the directory structure to look very different than T3, it's even different that the T4 apps I first started with. However, the current T5 structure works very well for me, and I've encouraged it's use in other projects. I doubt I would go back. If you don't want to use Eclipse instead of Maven to launch Tomcat, try{ mvn eclipse:eclipse -Dwtpversion=1.5 as outlined in the T5 Wiki. This will create the necessary files for Eclipse WTP ( I think it changes your regular app to a Dynamic Web App) From there you set it up just like any other WTP web application, choosing which server you want to use, and target runtime, contex root, etc. You also need to add your application to the Server's web module tab. } Also see the Wiki on where to put resource/config files. On Thu, Jun 19, 2008 at 11:55 AM, James Sherwood [EMAIL PROTECTED] wrote: Hello, In the tutorial it uses this maven command: mvn archetype:create -DarchetypeGroupId=org.apache.tapestry -DarchetypeArtifactId=quickstart -DgroupId=org.apache.tapestry -DartifactId=tutorial1 -DpackageName=org.apache.tapestry5.tutorial To first create the project. Then I import it into eclipse. The problem is the file structure does not seem to match what I am used to with T3. Where do I point my context in tomcat at? I tried the WEB-INF and it doesnt work. Thanks, --James - Original Message - From: Daniel Jue [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Thursday, June 19, 2008 12:41 PM Subject: Re: T5: using with maven / tomcat / eclipse What issues are you having? How are you attempting to run your application in Tomcat? (Through Eclipse WTP, through Tomcat as a batch file/service, through maven itself, etc?) There are many ways to do the essentially same thing. I personally launch Tomcat through Eclipse WTP (or also Europa or Ganymede) and Eclipse auto-publishes the files into a local Tomcat installation. For some reason I stopped serving my app directly from my workspace, I can't remember why. I also manually export a war file to a testing server, and have Tomcat unpack and serve it there. I don't even keep a context.xml in my META-INF/ anymore, because I keep contextual stuff with the individual Tomcat installations (i.e. JNDI references, flags variables for SSO and Tapestry error pages). On Thu, Jun 19, 2008 at 11:16 AM, James Sherwood [EMAIL PROTECTED] wrote: Hello, I like to develop in tomcat and have not used Jetty much. I have gone through the tutorials using Jetty and have T5 running with hibernate under Jetty/maven/eclipse. I have been trying to use tomcat instead of Jetty in the tutorial off the T5 homepage but have had no luck and I cannot seem to find much resources on this. Can anyone link me a good resource that uses Tomcat / maven / eclipse to develop in T5 or maybe give me a some ideas of what I could be doing wrong? Thanks, --James __ Information from ESET Smart Security, version of virus signature database 3200 (20080619) __ The message was checked by ESET Smart Security. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
T5: Trying to create a dynamic url to embed in a email
Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: using with maven / tomcat / eclipse
This almost gets me there. It runs tomcat and I can use the pages but I cannot get the sysdeo tomcat plugin working within eclipse. There is a web.xml created but if I point the context at it , it does not work, it just shows me the directory listing. Any ideas what I am doing wrong? Thanks, --James - Original Message - From: Andreas Andreou [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Thursday, June 19, 2008 1:00 PM Subject: Re: T5: using with maven / tomcat / eclipse try mvn tomcat:run On Thu, Jun 19, 2008 at 6:16 PM, James Sherwood [EMAIL PROTECTED] wrote: Hello, I like to develop in tomcat and have not used Jetty much. I have gone through the tutorials using Jetty and have T5 running with hibernate under Jetty/maven/eclipse. I have been trying to use tomcat instead of Jetty in the tutorial off the T5 homepage but have had no luck and I cannot seem to find much resources on this. Can anyone link me a good resource that uses Tomcat / maven / eclipse to develop in T5 or maybe give me a some ideas of what I could be doing wrong? Thanks, --James -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Information from ESET Smart Security, version of virus signature database 3200 (20080619) __ The message was checked by ESET Smart Security. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Trying to create a dynamic url to embed in a email
try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: [T5] A Question about server side validation
Inject the Form object and invoke the recordError() method. On Thu, Jun 19, 2008 at 7:47 AM, Marcelo Lotif [EMAIL PROTECTED] wrote: Ok, but how can i return the error to the page with onValidateForm? With the field validation method, i can throw a ValidationException in case of failure, and then tapestry puts the error message on the top of the form and decorates the bad field. But with onValidateForm i can not do this. I tried to make a _form.recordError, but after it still enters into the onSuccess method... 2008/6/19 Thiago H. de Paula Figueiredo [EMAIL PROTECTED]: Em Thu, 19 Jun 2008 10:43:49 -0300, Marcelo Lotif [EMAIL PROTECTED] escreveu: I was using a tricky field by field validation on the server side(not cross-validation) inside the BeanEditForm and i realize that to use onValidateFromXXX you have to declare explicitly the id of the field wrapping it with a parameter tag. I think this is a little verbose, since i didn't have to change anything in the field, i just have to do it because without that, the validation do not work. Use the form validation event, not the field validation one: Form.VALIDATE_FORM or onValidateForm(). Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - 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: [ANNOUNCE] Tapestry 5.0.13
There's not much to document; everything is the same, except that you name your source files .groovy instead of .java :-) Seriously, the Groovy code compiles to JVM bytecode and Tapestry is unaware that it started life as Groovy and not Java. There's a couple of exceptions to that rule, which show up as fixes in 5.0.14. On Thu, Jun 19, 2008 at 2:15 AM, Partogi, Joshua [EMAIL PROTECTED] wrote: Howard, I can not find in the documentation on how to use Groovy with T5. Could you please lead me to it? Perhaps I didn't look detailed enough. Many thanks -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 8:20 AM To: Tapestry users Subject: [ANNOUNCE] Tapestry 5.0.13 The latest release of Tapestry, Tapestry 5.0.13 , is now available. Tapestry 5.0.13 is just about feature complete and can be considered a beta release. A release candidate is expected in the near future. 5.0.13 adds quite a bit of improved Ajax functionality, and addresses a large number of bugs. It also makes it easier to use Tapestry with Groovy. Pay careful attention to the upgrade notes as there have been some wide-ranging changes, especially a rename of the root package from org.apache.tapestry to org.apache.tapestry5 (to faciliate side-by-side deployment of Tapestry 4 and Tapestry 5 applications inside the same WAR). Upgrade notes: http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html See the release notes for more details. http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html Note: there was no public release of Tapestry 5.0.12 (the release was rejected due to some significant issues). Download Tapestry 5.0.13 from http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE: The information in this email (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this email in error, please immediately notify me by Reply command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by American International Group, Inc. or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use. -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DWR Integration with Tapestry 4.1.5
Hi All, I am creating a huge dojo widget which needs to access some data on the server side as objects and I am trying to use DWR for remoting some of my calls. Pardon my ignorance, but I am not sure whether this is allowed in the tapestry world. So I set forth to try to integrate DWR into my tapestry app. My need is to have access to the visit object and other application state objects from within the DWR created objects. So I extended the tapestry ApplicationServlet in order to get access to the hivemind Registry and stored it into the servlet context. Next I wrote a separate DWR creator for hivemind and within the creator I am accessing the registry to get to the hivemind service. Everything works well until here. I get the service from the registry and the ApplicationStateManager is set into the service. Now within the service when I try to access the visit object using (Visit)appStateManager.get(visit); - I get the following exception. java.lang.NullPointerException: Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlobals(org.apache.tapestry.services.RequestGlobals) is null. at $WebRequest_11aa1b3d84b._targetServiceProperty($WebRequest_11aa1b3d84b.java) at $WebRequest_11aa1b3d84b.getSession($WebRequest_11aa1b3d84b.java) at $WebRequest_11aa1b3d82f.getSession($WebRequest_11aa1b3d82f.java) at org.apache.tapestry.engine.state.SessionScopeManager.getSession(SessionScopeManager.java:48) at org.apache.tapestry.engine.state.SessionScopeManager.get(SessionScopeManager.java:64) at $StateObjectPersistenceManager_11aa1b3d845.get($StateObjectPersistenceManager_11aa1b3d845.java) at org.apache.tapestry.engine.state.StateObjectManagerImpl.get(StateObjectManagerImpl.java:50) at org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60) at $ApplicationStateManager_11aa1b3d807.get($ApplicationStateManager_11aa1b3d807.java) at $ApplicationStateManager_11aa1b3d808.get($ApplicationStateManager_11aa1b3d808.java) at com.eureka.engine.dwrtest.DWRTestService.getVisitObject(DWRTestService.java:24) at com.eureka.engine.dwrtest.DWRTestService.doSomething(DWRTestService.java:28) I guess the reason may be that the tapestry servlet doesnot get to bless the request and create tapestry specific webrequest, but I am at a loss of what I should do going forward. Any light on this would be greatly appreciated. Regards, Srini.
T5 turn off form validation
How do I turn off form tracker / validation. Not just client side but the whole thing? Can I just use a plain HTML (not Tap) form?
RE: T5 Sending a 302 redirect off-site from within a Form handler
Thanks. Where is that documented? -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 10:23 PM To: Tapestry users Subject: Re: T5 Sending a 302 redirect off-site from within a Form handler You should be able to simply return a java.net.URL. On Wed, Jun 18, 2008 at 9:55 PM, Ezra Epstein [EMAIL PROTECTED] wrote: I've got a simple form and an onSubmit() method. When the form submission succeeds I want to redirect to another site (full URL) but can't figure out how to do that. I've tried: @Inject @Service(Response) private Response tapestryResponse; void onSubmit() { ... tapestryResponse.sendRedirect(offsiteUrlString); ... } No luck. Also tried: @Inject //@Service(RequestGlobals) private RequestGlobals requestGlobals; void onSubmit() { ... requestGlobals.getHTTPServletResponse().sendRedirect(offsiteUrlString); ... } L The redirect exception doesn't seem to have made it from Tap4 to T5. What is the magical incantation?? Thx. Ezra E. -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - 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: how to add a LinkFactoryListener to the existing linkFactory-service
I'm trying to add a custom made LinkFactoryListener to the existing LinkFactory-service, but with now success. I must admit I'm really not fluent with Tapestr-ioc so I think it might me something obvious. I tried several things, for instance trying to contribute a listener to the LinkFactory (if it can be contributed to, how do you know for sure? ), but that doens't work. building a LinkFactory as a service and adding the built LinkFactoryListener (see below) doesn't work either error -- Service id 'LinkFactory' has already been defined. Any suggestions? Thanks, --- public LinkFactoryListener buildSessionStripLinkFactoryListener() { return new LinkFactoryListener() { public void createdActionLink(Link link) { for(String name: link.getParameterNames()){ System.out.println(name); } } public void createdPageLink(Link link) { for(String name: link.getParameterNames()){ System.out.println(name); } } }; } public LinkFactory build( @InjectService(LinkFactory) LinkFactory linkFactory, @InjectService(SessionStripLinkFactoryListener) LinkFactoryListener listener){ linkFactory.addListener(listener); return linkFactory; } -- View this message in context: http://www.nabble.com/T5%3A-how-to-add-a-LinkFactoryListener-to-the-existing-linkFactory-service-tp18013026p18013026.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: T5 Sending a 302 redirect off-site from within a Form handler
in the tapestry core docs: http://tapestry.apache.org/tapestry5/tapestry-core/guide/pagenav.html 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: Thanks. Where is that documented? -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 18, 2008 10:23 PM To: Tapestry users Subject: Re: T5 Sending a 302 redirect off-site from within a Form handler You should be able to simply return a java.net.URL. On Wed, Jun 18, 2008 at 9:55 PM, Ezra Epstein [EMAIL PROTECTED] wrote: I've got a simple form and an onSubmit() method. When the form submission succeeds I want to redirect to another site (full URL) but can't figure out how to do that. I've tried: @Inject @Service(Response) private Response tapestryResponse; void onSubmit() { ... tapestryResponse.sendRedirect(offsiteUrlString); ... } No luck. Also tried: @Inject //@Service(RequestGlobals) private RequestGlobals requestGlobals; void onSubmit() { ... requestGlobals.getHTTPServletResponse().sendRedirect(offsiteUrlString); ... } L The redirect exception doesn't seem to have made it from Tap4 to T5. What is the magical incantation?? Thx. Ezra E. -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - 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] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: T5: how to add a LinkFactoryListener to the existing linkFactory-service
try this public LinkFactoryListener buildSessionStripLinkFactoryListener(LinkFactory linkFactory) { LinkFactoryListener listener = new LinkFactoryListener (); linkFactory.addListener(listener); return listener; } 2008/6/19 Britske [EMAIL PROTECTED]: I'm trying to add a custom made LinkFactoryListener to the existing LinkFactory-service, but with now success. I must admit I'm really not fluent with Tapestr-ioc so I think it might me something obvious. I tried several things, for instance trying to contribute a listener to the LinkFactory (if it can be contributed to, how do you know for sure? ), but that doens't work. building a LinkFactory as a service and adding the built LinkFactoryListener (see below) doesn't work either error -- Service id 'LinkFactory' has already been defined. Any suggestions? Thanks, --- public LinkFactoryListener buildSessionStripLinkFactoryListener() { return new LinkFactoryListener() { public void createdActionLink(Link link) { for(String name: link.getParameterNames()){ System.out.println(name); } } public void createdPageLink(Link link) { for(String name: link.getParameterNames()){ System.out.println(name); } } }; } public LinkFactory build( @InjectService(LinkFactory) LinkFactory linkFactory, @InjectService(SessionStripLinkFactoryListener) LinkFactoryListener listener){ linkFactory.addListener(listener); return linkFactory; } -- View this message in context: http://www.nabble.com/T5%3A-how-to-add-a-LinkFactoryListener-to-the-existing-linkFactory-service-tp18013026p18013026.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] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: [ANNOUNCE] Tapestry 5.0.13
I guess from documentation standpoint it would be nice to hear from Tapestry leaders as to what are the benefits of coding Pages, Components and other classes with Groovy vs Java. Is it just for semantics, and shorter code? On Thu, Jun 19, 2008 at 12:03 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: There's not much to document; everything is the same, except that you name your source files .groovy instead of .java :-) Seriously, the Groovy code compiles to JVM bytecode and Tapestry is unaware that it started life as Groovy and not Java. There's a couple of exceptions to that rule, which show up as fixes in 5.0.14. On Thu, Jun 19, 2008 at 2:15 AM, Partogi, Joshua [EMAIL PROTECTED] wrote: Howard, I can not find in the documentation on how to use Groovy with T5. Could you please lead me to it? Perhaps I didn't look detailed enough. Many thanks -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 8:20 AM To: Tapestry users Subject: [ANNOUNCE] Tapestry 5.0.13 The latest release of Tapestry, Tapestry 5.0.13 , is now available. Tapestry 5.0.13 is just about feature complete and can be considered a beta release. A release candidate is expected in the near future. 5.0.13 adds quite a bit of improved Ajax functionality, and addresses a large number of bugs. It also makes it easier to use Tapestry with Groovy. Pay careful attention to the upgrade notes as there have been some wide-ranging changes, especially a rename of the root package from org.apache.tapestry to org.apache.tapestry5 (to faciliate side-by-side deployment of Tapestry 4 and Tapestry 5 applications inside the same WAR). Upgrade notes: http://tapestry.apache.org/tapestry5/tapestry-core/upgrade.html See the release notes for more details. http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html Note: there was no public release of Tapestry 5.0.12 (the release was rejected due to some significant issues). Download Tapestry 5.0.13 from http://tapestry.formos.com/nightly/tapestry5/tapestry-core/upgrade.html -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] IMPORTANT NOTICE: The information in this email (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this email in error, please immediately notify me by Reply command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by American International Group, Inc. or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use. -- Howard M. Lewis Ship Creator Apache Tapestry and Apache HiveMind - 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: Keep case (upper or lower) in page names and links
I've got a page called Login (first char is uppercase). There's a form on it. When it posts back it takes me to login (lowercase) which Tapestry treats as the same being case-insensitive. That's fine for now, but I want to preserve case for the end user. How do I tell Tapestry to send the user to Login and not login?
Re: T5: Keep case (upper or lower) in page names and links
Login or login has the same effect with tapestry 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: I've got a page called Login (first char is uppercase). There's a form on it. When it posts back it takes me to login (lowercase) which Tapestry treats as the same being case-insensitive. That's fine for now, but I want to preserve case for the end user. How do I tell Tapestry to send the user to Login and not login? -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: T5 turn off form validation
what can that make sense for? 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: How do I turn off form tracker / validation. Not just client side but the whole thing? Can I just use a plain HTML (not Tap) form? -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: T5: using with maven / tomcat / eclipse
Hello, I d/l the war file from http://www.infoq.com/articles/tapestry5-intro and imported it into eclipse. The directory structure in this is much like that of T3. I just pointed tomcat to the web.xml and it works fine. Any ideas why the T5 project I created using maven only seems to work when running mvn tomcat:run or how I get it working? Thanks, --James - Original Message - From: James Sherwood [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Thursday, June 19, 2008 1:35 PM Subject: Re: T5: using with maven / tomcat / eclipse This almost gets me there. It runs tomcat and I can use the pages but I cannot get the sysdeo tomcat plugin working within eclipse. There is a web.xml created but if I point the context at it , it does not work, it just shows me the directory listing. Any ideas what I am doing wrong? Thanks, --James - Original Message - From: Andreas Andreou [EMAIL PROTECTED] To: Tapestry users users@tapestry.apache.org Sent: Thursday, June 19, 2008 1:00 PM Subject: Re: T5: using with maven / tomcat / eclipse try mvn tomcat:run On Thu, Jun 19, 2008 at 6:16 PM, James Sherwood [EMAIL PROTECTED] wrote: Hello, I like to develop in tomcat and have not used Jetty much. I have gone through the tutorials using Jetty and have T5 running with hibernate under Jetty/maven/eclipse. I have been trying to use tomcat instead of Jetty in the tutorial off the T5 homepage but have had no luck and I cannot seem to find much resources on this. Can anyone link me a good resource that uses Tomcat / maven / eclipse to develop in T5 or maybe give me a some ideas of what I could be doing wrong? Thanks, --James -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Information from ESET Smart Security, version of virus signature database 3200 (20080619) __ The message was checked by ESET Smart Security. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Information from ESET Smart Security, version of virus signature database 3200 (20080619) __ The message was checked by ESET Smart Security. http://www.eset.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: T5: Keep case (upper or lower) in page names and links
I know that. But it doesn't have the same effect per the HTTP spec and I'm orthodox. Back to the question: how can one inform Tapestry that when I give the page name as Login and put a form on the page it should not change the name in the URL to login? -Original Message- From: Sven Homburg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 10:50 AM To: Tapestry users Subject: Re: T5: Keep case (upper or lower) in page names and links Login or login has the same effect with tapestry 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: I've got a page called Login (first char is uppercase). There's a form on it. When it posts back it takes me to login (lowercase) which Tapestry treats as the same being case-insensitive. That's fine for now, but I want to preserve case for the end user. How do I tell Tapestry to send the user to Login and not login? -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: T5 turn off form validation
Simple: the form has no validation and Tapestry + Form == server session == drop in scalability. If I've doing 1M + logins / hour I can't afford sessions. -Original Message- From: Sven Homburg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 10:58 AM To: Tapestry users Subject: Re: T5 turn off form validation what can that make sense for? 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: How do I turn off form tracker / validation. Not just client side but the whole thing? Can I just use a plain HTML (not Tap) form? -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Keep case (upper or lower) in page names and links
i tried to find in the URL specs that urls are case sensitive. no luck. i know that the underlying OS filesystem may be case sensitiv but it has nothing to do with the HTTP specs (IMHO) to your question: there is no switch to turn of the tapestry behavior but you can re-implement the LinkFactory, but i dont offer that, because its an internal class, that may be changed in the future 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: I know that. But it doesn't have the same effect per the HTTP spec and I'm orthodox. Back to the question: how can one inform Tapestry that when I give the page name as Login and put a form on the page it should not change the name in the URL to login? -Original Message- From: Sven Homburg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 10:50 AM To: Tapestry users Subject: Re: T5: Keep case (upper or lower) in page names and links Login or login has the same effect with tapestry 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: I've got a page called Login (first char is uppercase). There's a form on it. When it posts back it takes me to login (lowercase) which Tapestry treats as the same being case-insensitive. That's fine for now, but I want to preserve case for the end user. How do I tell Tapestry to send the user to Login and not login? -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: T5 turn off form validation
i dont now if this info helps you. the ValidationTracker in the form only stored into the session for one request 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: Simple: the form has no validation and Tapestry + Form == server session == drop in scalability. If I've doing 1M + logins / hour I can't afford sessions. -Original Message- From: Sven Homburg [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 10:58 AM To: Tapestry users Subject: Re: T5 turn off form validation what can that make sense for? 2008/6/19 Ezra Epstein [EMAIL PROTECTED]: How do I turn off form tracker / validation. Not just client side but the whole thing? Can I just use a plain HTML (not Tap) form? -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: T5: Trying to create a dynamic url to embed in a email
Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [T5] A Question about server side validation
Thanks for the response But, to decorate the bad field, i still have to declare it explicitly on the tml (of course, now i understand) I think that would be nice if BEF resolves the field on the fly by it's name or something, since it's intention is to write less than usual... Anyway, thank you for the attention! =) 2008/6/19 Howard Lewis Ship [EMAIL PROTECTED]: Inject the Form object and invoke the recordError() method. On Thu, Jun 19, 2008 at 7:47 AM, Marcelo Lotif [EMAIL PROTECTED] wrote: Ok, but how can i return the error to the page with onValidateForm? With the field validation method, i can throw a ValidationException in case of failure, and then tapestry puts the error message on the top of the form and decorates the bad field. But with onValidateForm i can not do this. I tried to make a _form.recordError, but after it still enters into the onSuccess method... 2008/6/19 Thiago H. de Paula Figueiredo [EMAIL PROTECTED]: Em Thu, 19 Jun 2008 10:43:49 -0300, Marcelo Lotif [EMAIL PROTECTED] escreveu: I was using a tricky field by field validation on the server side(not cross-validation) inside the BeanEditForm and i realize that to use onValidateFromXXX you have to declare explicitly the id of the field wrapping it with a parameter tag. I think this is a little verbose, since i didn't have to change anything in the field, i just have to do it because without that, the validation do not work. Use the form validation event, not the field validation one: Form.VALIDATE_FORM or onValidateForm(). Thiago - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - 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] -- Atenciosamente, Marcelo Lotif Programador Java e Tapestry FIEC - Federação das Indústrias do Estado do Ceará (85) 3477-5910 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Trying to create a dynamic url to embed in a email
sorry, i went wrong use : requestGlobals.getHTTPServletRequest().getRequestURL().toString() + link.toURI(); 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: T5: Trying to create a dynamic url to embed in a email
or even requestGlobals.getHTTPServletRequest().getRequestURL()..append(link.toURI()); 2008/6/19 Sven Homburg [EMAIL PROTECTED]: sorry, i went wrong use : requestGlobals.getHTTPServletRequest().getRequestURL().toString() + link.toURI(); 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: T5: Trying to create a dynamic url to embed in a email
Sven, I got the following url is http://localhost:8080/emaildetails.formregister/username/password Its actually showing the request url as well as the page and context parameters we have specified using createPageLink. It think with a bit of string manipulation I can get the result I want. There ought to be a more elegant way to do this though... Thanks for your help 2008/6/19 Sven Homburg [EMAIL PROTECTED]: sorry, i went wrong use : requestGlobals.getHTTPServletRequest().getRequestURL().toString() + link.toURI(); 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Trying to create a dynamic url to embed in a email
We use something like this to construct the baseUrl from a request. So it will either be to the root of the server, or to the root of the context path. So I usually do: getAbsoluteRootPath( request ) + link.toAbsoluteURI(); public static String getAbsoluteContextPath( HttpServletRequest request ) { return getAbsoluteRootPath( request ) + request.getContextPath(); } public static String getAbsoluteRootPath( HttpServletRequest request ) { StringBuilder sb = new StringBuilder(); String scheme = request.getScheme(); int port = request.getServerPort(); sb.append( scheme ); sb.append( :// ); sb.append( request.getServerName() ); if ( ! ( ( scheme.equals( http ) port == 80 ) || ( scheme.equals( https ) port == 443 ) ) ) { sb.append( : + port ); } return sb.toString(); } Jabbar wrote: Sven, I got the following url is http://localhost:8080/emaildetails.formregister/username/password Its actually showing the request url as well as the page and context parameters we have specified using createPageLink. It think with a bit of string manipulation I can get the result I want. There ought to be a more elegant way to do this though... Thanks for your help 2008/6/19 Sven Homburg [EMAIL PROTECTED]: sorry, i went wrong use : requestGlobals.getHTTPServletRequest().getRequestURL().toString() + link.toURI(); 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Trying to create a dynamic url to embed in a email
Fernando, That does return what I want. Thanks 2008/6/19 Fernando Padilla [EMAIL PROTECTED]: We use something like this to construct the baseUrl from a request. So it will either be to the root of the server, or to the root of the context path. So I usually do: getAbsoluteRootPath( request ) + link.toAbsoluteURI(); public static String getAbsoluteContextPath( HttpServletRequest request ) { return getAbsoluteRootPath( request ) + request.getContextPath(); } public static String getAbsoluteRootPath( HttpServletRequest request ) { StringBuilder sb = new StringBuilder(); String scheme = request.getScheme(); int port = request.getServerPort(); sb.append( scheme ); sb.append( :// ); sb.append( request.getServerName() ); if ( ! ( ( scheme.equals( http ) port == 80 ) || ( scheme.equals( https ) port == 443 ) ) ) { sb.append( : + port ); } return sb.toString(); } Jabbar wrote: Sven, I got the following url is http://localhost:8080/emaildetails.formregister/username/password Its actually showing the request url as well as the page and context parameters we have specified using createPageLink. It think with a bit of string manipulation I can get the result I want. There ought to be a more elegant way to do this though... Thanks for your help 2008/6/19 Sven Homburg [EMAIL PROTECTED]: sorry, i went wrong use : requestGlobals.getHTTPServletRequest().getRequestURL().toString() + link.toURI(); 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Trying to create a dynamic url to embed in a email
Fernando, do you think you are coding better then the guys from Sun ? why dont you use the HTTPServletRequest method getRequestURL() ? Jabbar, if you build the link via the LinkFactory instead the ComponentResource the result is that what you want: /** * t5components start page */ public class Start { @Inject private RequestGlobals globals; @Inject private LinkFactory linkFactory; public String getURL1() { Link link = linkFactory.createPageLink(Start, false, username, password); return globals.getHTTPServletRequest().getRequestURL().append(link.toURI()).toString(); } } 2008/6/19 Fernando Padilla [EMAIL PROTECTED]: We use something like this to construct the baseUrl from a request. So it will either be to the root of the server, or to the root of the context path. So I usually do: getAbsoluteRootPath( request ) + link.toAbsoluteURI(); public static String getAbsoluteContextPath( HttpServletRequest request ) { return getAbsoluteRootPath( request ) + request.getContextPath(); } public static String getAbsoluteRootPath( HttpServletRequest request ) { StringBuilder sb = new StringBuilder(); String scheme = request.getScheme(); int port = request.getServerPort(); sb.append( scheme ); sb.append( :// ); sb.append( request.getServerName() ); if ( ! ( ( scheme.equals( http ) port == 80 ) || ( scheme.equals( https ) port == 443 ) ) ) { sb.append( : + port ); } return sb.toString(); } Jabbar wrote: Sven, I got the following url is http://localhost:8080/emaildetails.formregister/username/password Its actually showing the request url as well as the page and context parameters we have specified using createPageLink. It think with a bit of string manipulation I can get the result I want. There ought to be a more elegant way to do this though... Thanks for your help 2008/6/19 Sven Homburg [EMAIL PROTECTED]: sorry, i went wrong use : requestGlobals.getHTTPServletRequest().getRequestURL().toString() + link.toURI(); 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: DWR Integration with Tapestry 4.1.5
Just an (ugly) idea... If you can send the DWR requests to a Tapestry service that will then forward or include the normal DWR servlet output, it should work. http://wiki.apache.org/tapestry/TapestryFasttrackForStrutsProgrammers has some code that creates a component that can include jsps, servlets, e.t.c. So, try building an IEngineService that uses that... BTW, how does the dwr creator for hivemind look like? is it possible that it finds its way into the tapestry wiki? On Thu, Jun 19, 2008 at 8:13 PM, Srinivas Yermal [EMAIL PROTECTED] wrote: Hi All, I am creating a huge dojo widget which needs to access some data on the server side as objects and I am trying to use DWR for remoting some of my calls. Pardon my ignorance, but I am not sure whether this is allowed in the tapestry world. So I set forth to try to integrate DWR into my tapestry app. My need is to have access to the visit object and other application state objects from within the DWR created objects. So I extended the tapestry ApplicationServlet in order to get access to the hivemind Registry and stored it into the servlet context. Next I wrote a separate DWR creator for hivemind and within the creator I am accessing the registry to get to the hivemind service. Everything works well until here. I get the service from the registry and the ApplicationStateManager is set into the service. Now within the service when I try to access the visit object using (Visit)appStateManager.get(visit); - I get the following exception. java.lang.NullPointerException: Property 'webRequest' of OuterProxy for tapestry.globals.RequestGlobals(org.apache.tapestry.services.RequestGlobals) is null. at $WebRequest_11aa1b3d84b._targetServiceProperty($WebRequest_11aa1b3d84b.java) at $WebRequest_11aa1b3d84b.getSession($WebRequest_11aa1b3d84b.java) at $WebRequest_11aa1b3d82f.getSession($WebRequest_11aa1b3d82f.java) at org.apache.tapestry.engine.state.SessionScopeManager.getSession(SessionScopeManager.java:48) at org.apache.tapestry.engine.state.SessionScopeManager.get(SessionScopeManager.java:64) at $StateObjectPersistenceManager_11aa1b3d845.get($StateObjectPersistenceManager_11aa1b3d845.java) at org.apache.tapestry.engine.state.StateObjectManagerImpl.get(StateObjectManagerImpl.java:50) at org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60) at $ApplicationStateManager_11aa1b3d807.get($ApplicationStateManager_11aa1b3d807.java) at $ApplicationStateManager_11aa1b3d808.get($ApplicationStateManager_11aa1b3d808.java) at com.eureka.engine.dwrtest.DWRTestService.getVisitObject(DWRTestService.java:24) at com.eureka.engine.dwrtest.DWRTestService.doSomething(DWRTestService.java:28) I guess the reason may be that the tapestry servlet doesnot get to bless the request and create tapestry specific webrequest, but I am at a loss of what I should do going forward. Any light on this would be greatly appreciated. Regards, Srini. -- Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr Tapestry / Tacos developer Open Source / JEE Consulting - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: T5: Trying to create a dynamic url to embed in a email
fernando, sorry, i dont thought that the url from getRequestURL may be not the base url 2008/6/19 Sven Homburg [EMAIL PROTECTED]: Fernando, do you think you are coding better then the guys from Sun ? why dont you use the HTTPServletRequest method getRequestURL() ? Jabbar, if you build the link via the LinkFactory instead the ComponentResource the result is that what you want: /** * t5components start page */ public class Start { @Inject private RequestGlobals globals; @Inject private LinkFactory linkFactory; public String getURL1() { Link link = linkFactory.createPageLink(Start, false, username, password); return globals.getHTTPServletRequest().getRequestURL().append(link.toURI()).toString(); } } 2008/6/19 Fernando Padilla [EMAIL PROTECTED]: We use something like this to construct the baseUrl from a request. So it will either be to the root of the server, or to the root of the context path. So I usually do: getAbsoluteRootPath( request ) + link.toAbsoluteURI(); public static String getAbsoluteContextPath( HttpServletRequest request ) { return getAbsoluteRootPath( request ) + request.getContextPath(); } public static String getAbsoluteRootPath( HttpServletRequest request ) { StringBuilder sb = new StringBuilder(); String scheme = request.getScheme(); int port = request.getServerPort(); sb.append( scheme ); sb.append( :// ); sb.append( request.getServerName() ); if ( ! ( ( scheme.equals( http ) port == 80 ) || ( scheme.equals( https ) port == 443 ) ) ) { sb.append( : + port ); } return sb.toString(); } Jabbar wrote: Sven, I got the following url is http://localhost:8080/emaildetails.formregister/username/password Its actually showing the request url as well as the page and context parameters we have specified using createPageLink. It think with a bit of string manipulation I can get the result I want. There ought to be a more elegant way to do this though... Thanks for your help 2008/6/19 Sven Homburg [EMAIL PROTECTED]: sorry, i went wrong use : requestGlobals.getHTTPServletRequest().getRequestURL().toString() + link.toURI(); 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: Putting templates together with the java
Yeah I assumed we're doing it for the web designers, too, which is a good reason. But perhaps the better alternative is simply to filter out the java files as we copy the project to them? On 20/06/2008, at 12:27 AM, Blower, Andy wrote: I've always assumed (apart from being more correct in some vague way) that the main practical reason is to keep the web designers away from Java code - so they only see the templates, properties, javascript css. Pure assumption on my part though. -Original Message- From: Geoff Callender [mailto:[EMAIL PROTECTED] Sent: 19 June 2008 15:02 To: Tapestry users Subject: Putting templates together with the java Perhaps I've lost my mind, but I'm struggling to find a good reason why we keep our templates and properties separate from our java source. I find it causes nothing but pain having to incessantly jump between these disconnected parts of the source tree. Is it purely to appease some Maven convention? What makes it even stranger is that the java classes end up together with the templates and properties anyway - my build process puts classes, templates and properties all together in WEB-INF/classes/ regardless of where they come from. Live class reloading loves it that way and it keeps them secure from prying hackers. So why not mix the source together into the following structure src/ main/ java/-- or perhaps some other name like t5/ myproject/ base/ components/ css/ images/ META-INF/ mixins/ pages/ services/ WEB-INF/ and let the build coax it into the WAR file correctly? Cheers, Geoff - 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: Trying to create a dynamic url to embed in a email
i fiddle around with regexpr to avoid the getAbsoluteRootPath( HttpServletRequest request) construct here is the result: public String getURL() { Link link = linkFactory.createPageLink(Start, false, username, password); String requestURL = globals.getHTTPServletRequest().getRequestURL().toString(); return requestURL.replaceAll([^\\/]+$, ) + link.toURI(); } 2008/6/19 Sven Homburg [EMAIL PROTECTED]: fernando, sorry, i dont thought that the url from getRequestURL may be not the base url 2008/6/19 Sven Homburg [EMAIL PROTECTED]: Fernando, do you think you are coding better then the guys from Sun ? why dont you use the HTTPServletRequest method getRequestURL() ? Jabbar, if you build the link via the LinkFactory instead the ComponentResource the result is that what you want: /** * t5components start page */ public class Start { @Inject private RequestGlobals globals; @Inject private LinkFactory linkFactory; public String getURL1() { Link link = linkFactory.createPageLink(Start, false, username, password); return globals.getHTTPServletRequest().getRequestURL().append(link.toURI()).toString(); } } 2008/6/19 Fernando Padilla [EMAIL PROTECTED]: We use something like this to construct the baseUrl from a request. So it will either be to the root of the server, or to the root of the context path. So I usually do: getAbsoluteRootPath( request ) + link.toAbsoluteURI(); public static String getAbsoluteContextPath( HttpServletRequest request ) { return getAbsoluteRootPath( request ) + request.getContextPath(); } public static String getAbsoluteRootPath( HttpServletRequest request ) { StringBuilder sb = new StringBuilder(); String scheme = request.getScheme(); int port = request.getServerPort(); sb.append( scheme ); sb.append( :// ); sb.append( request.getServerName() ); if ( ! ( ( scheme.equals( http ) port == 80 ) || ( scheme.equals( https ) port == 443 ) ) ) { sb.append( : + port ); } return sb.toString(); } Jabbar wrote: Sven, I got the following url is http://localhost:8080/emaildetails.formregister/username/password Its actually showing the request url as well as the page and context parameters we have specified using createPageLink. It think with a bit of string manipulation I can get the result I want. There ought to be a more elegant way to do this though... Thanks for your help 2008/6/19 Sven Homburg [EMAIL PROTECTED]: sorry, i went wrong use : requestGlobals.getHTTPServletRequest().getRequestURL().toString() + link.toURI(); 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello Sven, I got url is /register/username/password 2008/6/19 Sven Homburg [EMAIL PROTECTED]: try Link link = resources.createPageLink(Register, false, p.toArray()); System.err.println(link.toAbsoluteURI()) 2008/6/19 Jabbar [EMAIL PROTECTED]: Hello all, I'm trying to create a url I can embed in an email using the following ListString p = new ArrayListString(); p.add(emailAddress); p.add(password); Link link = resources.createPageLink(Register, false, p.toArray()); //emailVerifier.sendVerification(user, requestGlobals.getHTTPServletRequest().getPathInfo() +link.toURI()); System.out.println(url is +requestGlobals.getHTTPServletRequest().getPathInfo() +/+link.toURI()); the value of the System.out.println is url is null/register/username/password How do I get the name and port of the web server? -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- Thanks A Jabbar Azam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com -- with regards Sven Homburg http://tapestry5-components.googlecode.com http://chenillekit.googlecode.com
Re: Putting templates together with the java
ctrl + shift + R and Loom are good workarounds, but I guess I'm asking why we need workarounds at all? The maven folder structure is good, tried and trusted for action- oriented frameworks - it makes sense for them because the relationship between the views and the action handlers is very mixed - it can even be many-to-many. It becomes tough to find meaningful groupings so its easier to structure by layer. In Tapestry, however, the relationship between a page or component's class and its template is one-to-one. So does the old structure still provide a benefit? Geoff On 20/06/2008, at 12:29 AM, Lance Java wrote: Are you using eclipse? ctrl + shift + R is great (use * as wildcard) Or you can use this plugin http://code.google.com/p/loom-t5/ Otherwise you can bundle your source anyhow you like, as long as your build makes the war correctly at the end of the day. The maven folder structure is only a (good, tried and trusted) recommendation. On 19/06/2008, Geoff Callender [EMAIL PROTECTED] wrote: Perhaps I've lost my mind, but I'm struggling to find a good reason why we keep our templates and properties separate from our java source. I find it causes nothing but pain having to incessantly jump between these disconnected parts of the source tree. Is it purely to appease some Maven convention? What makes it even stranger is that the java classes end up together with the templates and properties anyway - my build process puts classes, templates and properties all together in WEB-INF/classes/ regardless of where they come from. Live class reloading loves it that way and it keeps them secure from prying hackers. So why not mix the source together into the following structure src/ main/ java/-- or perhaps some other name like t5/ myproject/ base/ components/ css/ images/ META-INF/ mixins/ pages/ services/ WEB-INF/ and let the build coax it into the WAR file correctly? Cheers, Geoff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [ANNOUNCE] Tapestry 5.0.13
I agree. I think it's a good exposure for the framework itself to list down what the framework are capable of doing in the documentation. Best regards, -Original Message- From: Adam Zimowski [mailto:[EMAIL PROTECTED] Sent: Friday, June 20, 2008 12:44 AM To: Tapestry users Subject: Re: [ANNOUNCE] Tapestry 5.0.13 I guess from documentation standpoint it would be nice to hear from Tapestry leaders as to what are the benefits of coding Pages, Components and other classes with Groovy vs Java. Is it just for semantics, and shorter code? On Thu, Jun 19, 2008 at 12:03 PM, Howard Lewis Ship [EMAIL PROTECTED] wrote: There's not much to document; everything is the same, except that you name your source files .groovy instead of .java :-) Seriously, the Groovy code compiles to JVM bytecode and Tapestry is unaware that it started life as Groovy and not Java. There's a couple of exceptions to that rule, which show up as fixes in 5.0.14. On Thu, Jun 19, 2008 at 2:15 AM, Partogi, Joshua [EMAIL PROTECTED] wrote: Howard, I can not find in the documentation on how to use Groovy with T5. Could you please lead me to it? Perhaps I didn't look detailed enough. Many thanks -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Thursday, June 19, 2008 8:20 AM To: Tapestry users Subject: [ANNOUNCE] Tapestry 5.0.13 The latest release of Tapestry, Tapestry 5.0.13 , is now available. Tapestry 5.0.13 is just about feature complete and can be considered a beta release. A release candidate is expected in the near future. 5.0.13 adds quite a bit of improved Ajax functionality, and addresses a large number of bugs. It also makes it easier to use Tapestry with Groovy. Pay careful attention to the upgrade notes as there have been some wide-ranging changes, especially a rename of the root package from org.apache.tapestry to org.apache.tapestry5 (to faciliate side-by-side deployment of Tapestry 4 and Tapestry 5 applications inside the same WAR). IMPORTANT NOTICE: The information in this email (and any attachments) is confidential. If you are not the intended recipient, you must not use or disseminate the information. If you have received this email in error, please immediately notify me by Reply command and permanently delete the original and any copies or printouts thereof. Although this email and any attachments are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by American International Group, Inc. or its subsidiaries or affiliates either jointly or severally, for any loss or damage arising in any way from its use.
tapestry5 + dojo/ajax.
Hi all, I have a problem on my web layout. i have tree view menu at my left hand side. right hand side is my tapestry grid. but, when i select a other paging. it will refresh my tree view to initial state again. how do i do to refresh only my grid only without refresh also my tree view? Thank you. Regards, cybertan
T5 contributeIgnoredPathsFilter
Hi list! I'm using tapestry 5.0.13. Under the configuration document, it's explained how to have the tapestry filter ignore certain paths. I'm actually using it for the exact example case, trying out dwr. The code in that document doesn't compile because UnorderedCollection doesn't seem to be present: public static void contributeIgnoredPathsFilter(UnorderedCollectionString configuration) { configuration.add(/dwr/.*); } Some google searches suggested maybe using org.apache.tapestry5.ioc.ConfigurationString instead. I added this to my AppModule, and it compiled fine but didn't have the desired effects: http://blah/mycontext/dwr/ still hit tapestry. Any help would be appreciated! Thanks Neil
Re: T5 contributeIgnoredPathsFilter
I've figured out the right way to do this by digging into the test App1 module in trunk svn. The part I missed was fixing the actual string added to the configuration: public static void contributeIgnoredPathsFilter(ConfigurationString configuration) { configuration.add(/dwr); } Thanks Neil On Fri, Jun 20, 2008 at 1:08 AM, Neil Curzon [EMAIL PROTECTED] wrote: Hi list! I'm using tapestry 5.0.13. Under the configuration document, it's explained how to have the tapestry filter ignore certain paths. I'm actually using it for the exact example case, trying out dwr. The code in that document doesn't compile because UnorderedCollection doesn't seem to be present: public static void contributeIgnoredPathsFilter(UnorderedCollectionString configuration) { configuration.add(/dwr/.*); } Some google searches suggested maybe using org.apache.tapestry5.ioc.ConfigurationString instead. I added this to my AppModule, and it compiled fine but didn't have the desired effects: http://blah/mycontext/dwr/ still hit tapestry. Any help would be appreciated! Thanks Neil