Re: tapestry-acegi anon svn
I have the same issues with tapernate SVN. It's been more than a month but no luck!! :-( On 9/20/06, Robin Ericsson [EMAIL PROTECTED] wrote: Hi, Couldn't find a specific list for tapestry-acegi so I post this here. I can't seem to access the anonymous svn repository. All I can find is that I should use anonymous/anon, but that doesn't seem to work. Any ideas/news on this? Searches on google indicates it's been a problem earlier as well. -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks, Karthik
Re: EventListener and PropertySelection
when i changed the initialization from @InitialValues to finishLoad(...) it started working. It really is amazingly simple to make this kind of functionality with EventListener. On 9/19/06, Jani Lindqvist [EMAIL PROTECTED] wrote: Hello, should the model of component B be persisted or set as property? I have a page that has the same logic as in this example, but the dynamically populated combobox value is always null when the post is done (and also in the eventlistener method). If i change the model to be fetch from a getModel() method that builds the model from database, the value is set when the submit is made. I have 3 different comboboxes, A that is built from the database and it's model doesnt change between user selections. It's value is set correctly. Combobox B is populated depending on what was selected in combo B and combo C is populated depending on the selection of combo B. now when i try to get the value of combo B in another eventlistener method, the value is always null, and the same is also with combo C value. tapestry version is the latest 4.1 On 9/13/06, Christian Dutaret [EMAIL PROTECTED] wrote: Hi all, I am trying to change the content of a dropdown list when some event occur. I am using PropertySelection to render the dropdown list. I assumed that my listener could change the component's PropertySelectionModel, and that updateComponent would render the updated content, but this doesn't work. Shouldn't the model binding be re-rendered when updateComponent is called, or am i doing something wrong? I am using the latest 4.1.1 snapshot. Thx for any hint. My page class: public abstract void setModelB(IPropertySelectionModel value); @EventListener(targets=A, events=onchange, submitForm=form) public void changeA(IRequestCycle cycle) { this.setModelB(buildNewModelFromDb(a)); cycle.getResponseBuilder().updateComponent(B); } My HTML template: span jwcid=@Shell title=Tapestry 4.1 test browserLogLevel=DEBUG body jwcid=@Body form jwcid=[EMAIL PROTECTED] success=listener:doNothing span jwcid=[EMAIL PROTECTED] model=ognl:modelA value=ognl:a/ span jwcid=[EMAIL PROTECTED] model=ognl:modelB value=ognl:b/ input type=submit value=Go/ /form /body /span Ch.
Re: BeanForm for TP3?
I don't have plans to backport it to Tap3, mainly because I don't use Tap3 and because I don't have any experience using Tap3. There has been some interest from others on this list in doing a backport (search the list), so you might want to get together to tackle it. It's Apache2-licensed, so nothing stops you. The only thing is that the next version or two will still be pretty large improvements over previous iterations, so keeping in sync with the original codebase might be an issue. I assume you realize that you'd have to eliminate some of the nicer features (like automatic validation generation based on annotations) in order to target older JDKs. Take care, Daniel On 9/20/06, DarĂo Vasconcelos [EMAIL PROTECTED] wrote: Hi, since recently someone mentioned the BeanForm component, I've been reading about it and wondering if there's a version for Tapestry 3, because I'm still stuck with old JDKs and app servers... In case there isn't such thing, would a backport be possible? Too much hard work? I haven't really gotten into all the annotation and HiveMind stuff and it looks kinda complicated from here... Regards, Dario -- Some weasel took the cork out of my lunch. -- W.C. Fields - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to listent for the Request Cycle End
Hi, Thanks Bryan, this looks like a hack:) What do you think if I override the Engine's method: public void service(WebRequest request, WebResponse response) throws IOException { super.service(request, response); // insert code here } Is this a bad approach? --- Bryan Lewis [EMAIL PROTECTED] wrote: It sounds like a servlet listener method could work for you. Or a servlet filter as in the previous suggestion. Both would give you a hook into the end-of-request, and you can get to the Visit via the session. Here's a listener approach. public class EventListener implements ServletRequestListener { public void requestInitialized(ServletRequestEvent sre) { // This method might not need to do anything. } public void requestDestroyed(ServletRequestEvent sre) { // Call a static method in your thread-storage class to get your data. // The slightly messy part is getting the Visit from the session. HttpSession session = sre.getServletRequest().getSession(false); String visitKey = state: + appName + :visit; Visit visit = (Visit) session.getAttribute(visitKey); } } In your web.xml: listener listener-classyour.package.EventListener/listener-class /listener Dobrin Ivanov wrote: I have designed some small API in order to provide the session persistance of the presentation layer (Tapestry - Visit object/HttpSession) to the model layer (in order to be able to cache some session related stuff without being aware of how the above layer is doing it). So the data is attached to the thread and at the end of the request cycle I want to save it into the Visit object. --- Martin Strand [EMAIL PROTECTED] wrote: Exactly what do you need this for? If you don't need any Tapestry logic, there might be other ways to do it - like a servlet filter or a threaded service that implements Discardable. On Tue, 19 Sep 2006 21:58:20 +0200, Jesse Kuhnert [EMAIL PROTECTED] wrote: It might not be super fun to learn, but I think the tapestry way of doing this would be to contribute something to the WebRequestServicerPipeline so that you know definitively when the cycle ends regardless of what services/engines are involved.. http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/tapestry.request.WebRequestServicerPipeline.html On 9/19/06, Dobrin Ivanov [EMAIL PROTECTED] wrote: Hi, I want some advise of which is the best way to catch the end of the request cycly. I have tried it using a PageDetachListener, but the problem is that sometimes there is more than one page involved into the request cycle and then I get more than one invocation on the pageDetached(...). So I'm wondering if overriding the Engine's service(...) method is the best place? Thanks and best regards, Dobrin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to listent for the Request Cycle End
Ummm... you could do that too. You're correct that it would avoid the visit-from-session inelegant bit. It would be conceptually similar to the servlet filter approach. The downside would be that custom Engine classes are frowned upon as Tapestry goes forward. I'm not sure there is an Engine.getVisit() in 4.1. None of the approaches is perfect since Tapestry doesn't provide a built-in end-of-request hook. Well, there is a call to monitor.serviceEnd() that you could use without subclassing Engine. Dobrin Ivanov wrote: Hi, Thanks Bryan, this looks like a hack:) What do you think if I override the Engine's method: public void service(WebRequest request, WebResponse response) throws IOException { super.service(request, response); // insert code here } Is this a bad approach? --- Bryan Lewis [EMAIL PROTECTED] wrote: It sounds like a servlet listener method could work for you. Or a servlet filter as in the previous suggestion. Both would give you a hook into the end-of-request, and you can get to the Visit via the session. Here's a listener approach. public class EventListener implements ServletRequestListener { public void requestInitialized(ServletRequestEvent sre) { // This method might not need to do anything. } public void requestDestroyed(ServletRequestEvent sre) { // Call a static method in your thread-storage class to get your data. // The slightly messy part is getting the Visit from the session. HttpSession session = sre.getServletRequest().getSession(false); String visitKey = state: + appName + :visit; Visit visit = (Visit) session.getAttribute(visitKey); } } In your web.xml: listener listener-classyour.package.EventListener/listener-class /listener Dobrin Ivanov wrote: I have designed some small API in order to provide the session persistance of the presentation layer (Tapestry - Visit object/HttpSession) to the model layer (in order to be able to cache some session related stuff without being aware of how the above layer is doing it). So the data is attached to the thread and at the end of the request cycle I want to save it into the Visit object. --- Martin Strand [EMAIL PROTECTED] wrote: Exactly what do you need this for? If you don't need any Tapestry logic, there might be other ways to do it - like a servlet filter or a threaded service that implements Discardable. On Tue, 19 Sep 2006 21:58:20 +0200, Jesse Kuhnert [EMAIL PROTECTED] wrote: It might not be super fun to learn, but I think the tapestry way of doing this would be to contribute something to the WebRequestServicerPipeline so that you know definitively when the cycle ends regardless of what services/engines are involved.. http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/tapestry.request.WebRequestServicerPipeline.html On 9/19/06, Dobrin Ivanov [EMAIL PROTECTED] wrote: Hi, I want some advise of which is the best way to catch the end of the request cycly. I have tried it using a PageDetachListener, but the problem is that sometimes there is more than one page involved into the request cycle and then I get more than one invocation on the pageDetached(...). So I'm wondering if overriding the Engine's service(...) method is the best place? Thanks and best regards, Dobrin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to listent for the Request Cycle End
You can plugin to the webrequest servicer pipeline. Ummm... you could do that too. You're correct that it would avoid the visit-from-session inelegant bit. It would be conceptually similar to the servlet filter approach. The downside would be that custom Engine classes are frowned upon as Tapestry goes forward. I'm not sure there is an Engine.getVisit() in 4.1. None of the approaches is perfect since Tapestry doesn't provide a built-in end-of-request hook. Well, there is a call to monitor.serviceEnd() that you could use without subclassing Engine. Dobrin Ivanov wrote: Hi, Thanks Bryan, this looks like a hack:) What do you think if I override the Engine's method: public void service(WebRequest request, WebResponse response) throws IOException { super.service(request, response); // insert code here } Is this a bad approach? --- Bryan Lewis [EMAIL PROTECTED] wrote: It sounds like a servlet listener method could work for you. Or a servlet filter as in the previous suggestion. Both would give you a hook into the end-of-request, and you can get to the Visit via the session. Here's a listener approach. public class EventListener implements ServletRequestListener { public void requestInitialized(ServletRequestEvent sre) { // This method might not need to do anything. } public void requestDestroyed(ServletRequestEvent sre) { // Call a static method in your thread-storage class to get your data. // The slightly messy part is getting the Visit from the session. HttpSession session = sre.getServletRequest().getSession(false); String visitKey = state: + appName + :visit; Visit visit = (Visit) session.getAttribute(visitKey); } } In your web.xml: listener listener-classyour.package.EventListener/listener-class /listener Dobrin Ivanov wrote: I have designed some small API in order to provide the session persistance of the presentation layer (Tapestry - Visit object/HttpSession) to the model layer (in order to be able to cache some session related stuff without being aware of how the above layer is doing it). So the data is attached to the thread and at the end of the request cycle I want to save it into the Visit object. --- Martin Strand [EMAIL PROTECTED] wrote: Exactly what do you need this for? If you don't need any Tapestry logic, there might be other ways to do it - like a servlet filter or a threaded service that implements Discardable. On Tue, 19 Sep 2006 21:58:20 +0200, Jesse Kuhnert [EMAIL PROTECTED] wrote: It might not be super fun to learn, but I think the tapestry way of doing this would be to contribute something to the WebRequestServicerPipeline so that you know definitively when the cycle ends regardless of what services/engines are involved.. http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/tapestry.request.WebRequestServicerPipeline.html On 9/19/06, Dobrin Ivanov [EMAIL PROTECTED] wrote: Hi, I want some advise of which is the best way to catch the end of the request cycly. I have tried it using a PageDetachListener, but the problem is that sometimes there is more than one page involved into the request cycle and then I get more than one invocation on the pageDetached(...). So I'm wondering if overriding the Engine's service(...) method is the best place? Thanks and best regards, Dobrin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] James Carman, President Carman Consulting, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tapestry in IDEA
hi how i can deploy a tapestry sample in intellij idea IDE? when i run a tapestry project in idea, i occure with this exception that i dont know , what i was doing: *** org.apache.hivemind.ApplicationRuntimeException : Unable to create class $Runnable_10dc5ff93d2: javassist.CtClass.toClass(Ljava/lang/ClassLoader;)Ljava/lang/Class; but i add hivemind and a javassist jar file to my classpath and Are there special stting for adding tapidea plugin to idea plugin ? when i copy tapidea plugin, in plugin folder of my idea installation directory idea throws class not found exception for IconProvider class.. please help me to resolve this problem. tnx a lot - Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail.
Re: Tapestry 4.1 roadmap ?
Impossible to predict. We will be adding a lot of new functionality / upgrading dojo / tons of new components in preparation for the upcoming theajaxexperience.com show so there may still be a few changes to the core API during that development period. Once that is done I'd say we can probably start clamping down on feature changes and work towards a more final release. On 9/20/06, Ed Ross [EMAIL PROTECTED] wrote: That's been there for some time. Is there any way to map how close the current 4.1 (unstable) is to the planned 4.1. Also - when will 4.1 go from unstable to RC or beta? thx On 9/19/06, Robin Ericsson [EMAIL PROTECTED] wrote: On 9/19/06, Stephane Decleire [EMAIL PROTECTED] wrote: Hi Is there a roadmap for the releases of Tapestry 4.1 ? But of course. http://wiki.apache.org/tapestry/Tapestry41Roadmap -- regards, Robin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ed Ross [EMAIL PROTECTED] -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
changes to @EventListener
I was thinking that it makes a lot more sense to detect whether or not a component being targeted is a form component and automatically submit that form dynamically when the event happens. What do you think? -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com
Very strange performance problem - II
Hi all I've been complaining about an application that slows down misteriously. By my detecting, I think the site starts to slowdown as soon as I click a couple of links created with @PageLinks. I've created them in a pretty standard way, but every time I click on one of them, the site slows down to a crawl. Here they are: Has anyone had a problem like this before? -- Cumprimentos, Rui Pacheco
RE: changes to @EventListener
Could you override that default behavior if you wanted and tell it not to submit the form? -Original Message- From: Jesse Kuhnert [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 12:47 PM To: Tapestry users Subject: changes to @EventListener I was thinking that it makes a lot more sense to detect whether or not a component being targeted is a form component and automatically submit that form dynamically when the event happens. What do you think? -- Jesse Kuhnert Tapestry/Dojo/(and a dash of TestNG), team member/developer Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to listent for the Request Cycle End
I have used a custom engine for displaying images as is described in Enjoy Web development with Tapestry. Is there an alternative (better) way of doing this? Cheers, On 9/20/06, James Carman [EMAIL PROTECTED] wrote: To plug into the WebRequestServicerPipeline, you implement the WebRequestServicerFilter interface: public class MyFilter implements WebRequestServicerFilter { } Then, in your hivemodule.xml you plug it into the pipeline: contribution configuration-id=hivemind.request.WebRequestServicerPipeline filter name=MyFilter object=instance:MyFilter / /contribution That's off the top of my head, but you get the idea. This basically acts like a servlet filter, but you can plug hivemind-managed filters in (so you can inject stuff into your implementation objects). -Original Message- From: Dobrin Ivanov [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 1:30 PM To: Tapestry users Subject: Re: How to listent for the Request Cycle End I do not know about this custom Engine classes changes (frowned)... is there some information about this topic? .. and also the other one with the pipelines/WebRequestServicerPipeline/interceptors? --- James Carman [EMAIL PROTECTED] wrote: You can plugin to the webrequest servicer pipeline. Ummm... you could do that too. You're correct that it would avoid the visit-from-session inelegant bit. It would be conceptually similar to the servlet filter approach. The downside would be that custom Engine classes are frowned upon as Tapestry goes forward. I'm not sure there is an Engine.getVisit() in 4.1. None of the approaches is perfect since Tapestry doesn't provide a built-in end-of-request hook. Well, there is a call to monitor.serviceEnd() that you could use without subclassing Engine. Dobrin Ivanov wrote: Hi, Thanks Bryan, this looks like a hack:) What do you think if I override the Engine's method: public void service(WebRequest request, WebResponse response) throws IOException { super.service(request, response); // insert code here } Is this a bad approach? --- Bryan Lewis [EMAIL PROTECTED] wrote: It sounds like a servlet listener method could work for you. Or a servlet filter as in the previous suggestion. Both would give you a hook into the end-of-request, and you can get to the Visit via the session. Here's a listener approach. public class EventListener implements ServletRequestListener { public void requestInitialized(ServletRequestEvent sre) { // This method might not need to do anything. } public void requestDestroyed(ServletRequestEvent sre) { // Call a static method in your thread-storage class to get your data. // The slightly messy part is getting the Visit from the session. HttpSession session = sre.getServletRequest().getSession(false); String visitKey = state: + appName + :visit; Visit visit = (Visit) session.getAttribute(visitKey); } } In your web.xml: listener listener-classyour.package.EventListener/listener-class /listener Dobrin Ivanov wrote: I have designed some small API in order to provide the session persistance of the presentation layer (Tapestry - Visit object/HttpSession) to the model layer (in order to be able to cache some session related stuff without being aware of how the above layer is doing it). So the data is attached to the thread and at the end of the request cycle I want to save it into the Visit object. --- Martin Strand [EMAIL PROTECTED] wrote: Exactly what do you need this for? If you don't need any Tapestry logic, there might be other ways to do it - like a servlet filter or a threaded service that implements Discardable. On Tue, 19 Sep 2006 21:58:20 +0200, Jesse Kuhnert [EMAIL PROTECTED] wrote: It might not be super fun to learn, but I think the tapestry way of doing this would be to contribute something to the WebRequestServicerPipeline so that you know definitively when the cycle ends regardless of what services/engines are involved.. http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/tapestry.reque st.WebRequestServicerPipeline.html On 9/19/06, Dobrin Ivanov [EMAIL PROTECTED] wrote: Hi, I want some advise of which is the best way to catch the end of the request cycly. I have tried it using a PageDetachListener, but the problem is that sometimes there is more than one page involved into the === message truncated === __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
Re: Dynamic columns
Just use an ognl expression for the columns attribute of the table. table jwcid=@contrib:Table columns=ognl:'column1, column2, column3' + (isAdminUser ? ',deleteColumn', '') ... Never underestimate the coolness of the terniary operator. -Steve [EMAIL PROTECTED] wrote: Anybody know a simple way to dynamically add a column to a table (using Contrib:Table)? I want a table to have a new column with a Delete link if the user is an admin. I have it working if I by always including the Delete column and the Delete links only appear for admins, but I want the column itself to only appear for admins.Any help appreciated. _ Express yourself with gadgets on Windows Live Spaces http://discoverspaces.live.com?source=hmtag1loc=us - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Custom Components
Hi, I have a question about best practice on how to design custom component. I will write custom components for our application that will be used only in our application. Is it a good idear to let the custom component access my session object and from that call my service layer to ask for some objects or is it a better design to add object as parameters to the component? // Jacob -- View this message in context: http://www.nabble.com/Custom-Components-tf2307973.html#a6416332 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 listent for the Request Cycle End
With this approach, you don't need a custom engine. It really works just like a servlet filter. I have used a custom engine for displaying images as is described in Enjoy Web development with Tapestry. Is there an alternative (better) way of doing this? Cheers, On 9/20/06, James Carman [EMAIL PROTECTED] wrote: To plug into the WebRequestServicerPipeline, you implement the WebRequestServicerFilter interface: public class MyFilter implements WebRequestServicerFilter { } Then, in your hivemodule.xml you plug it into the pipeline: contribution configuration-id=hivemind.request.WebRequestServicerPipeline filter name=MyFilter object=instance:MyFilter / /contribution That's off the top of my head, but you get the idea. This basically acts like a servlet filter, but you can plug hivemind-managed filters in (so you can inject stuff into your implementation objects). -Original Message- From: Dobrin Ivanov [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 1:30 PM To: Tapestry users Subject: Re: How to listent for the Request Cycle End I do not know about this custom Engine classes changes (frowned)... is there some information about this topic? .. and also the other one with the pipelines/WebRequestServicerPipeline/interceptors? --- James Carman [EMAIL PROTECTED] wrote: You can plugin to the webrequest servicer pipeline. Ummm... you could do that too. You're correct that it would avoid the visit-from-session inelegant bit. It would be conceptually similar to the servlet filter approach. The downside would be that custom Engine classes are frowned upon as Tapestry goes forward. I'm not sure there is an Engine.getVisit() in 4.1. None of the approaches is perfect since Tapestry doesn't provide a built-in end-of-request hook. Well, there is a call to monitor.serviceEnd() that you could use without subclassing Engine. Dobrin Ivanov wrote: Hi, Thanks Bryan, this looks like a hack:) What do you think if I override the Engine's method: public void service(WebRequest request, WebResponse response) throws IOException { super.service(request, response); // insert code here } Is this a bad approach? --- Bryan Lewis [EMAIL PROTECTED] wrote: It sounds like a servlet listener method could work for you. Or a servlet filter as in the previous suggestion. Both would give you a hook into the end-of-request, and you can get to the Visit via the session. Here's a listener approach. public class EventListener implements ServletRequestListener { public void requestInitialized(ServletRequestEvent sre) { // This method might not need to do anything. } public void requestDestroyed(ServletRequestEvent sre) { // Call a static method in your thread-storage class to get your data. // The slightly messy part is getting the Visit from the session. HttpSession session = sre.getServletRequest().getSession(false); String visitKey = state: + appName + :visit; Visit visit = (Visit) session.getAttribute(visitKey); } } In your web.xml: listener listener-classyour.package.EventListener/listener-class /listener Dobrin Ivanov wrote: I have designed some small API in order to provide the session persistance of the presentation layer (Tapestry - Visit object/HttpSession) to the model layer (in order to be able to cache some session related stuff without being aware of how the above layer is doing it). So the data is attached to the thread and at the end of the request cycle I want to save it into the Visit object. --- Martin Strand [EMAIL PROTECTED] wrote: Exactly what do you need this for? If you don't need any Tapestry logic, there might be other ways to do it - like a servlet filter or a threaded service that implements Discardable. On Tue, 19 Sep 2006 21:58:20 +0200, Jesse Kuhnert [EMAIL PROTECTED] wrote: It might not be super fun to learn, but I think the tapestry way of doing this would be to contribute something to the WebRequestServicerPipeline so that you know definitively when the cycle ends regardless of what services/engines are involved.. http://tapestry.apache.org/tapestry4/tapestry/hivedocs/config/tapestry.reque st.WebRequestServicerPipeline.html On 9/19/06, Dobrin Ivanov [EMAIL PROTECTED] wrote: Hi, I want some advise of which is the best way to catch the end of the request cycly. I have tried it using a PageDetachListener, but the problem is
java.io.NotSerializableException - tapestry property
Hi All, Dumb question...I'm getting a java.io.NotSerializableException stack Trace: * java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081) * java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302) * java.util.ArrayList.writeObject(ArrayList.java:569) * sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) * sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) * sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) * java.lang.reflect.Method.invoke(Method.java:585) * I remember reading in the Tapestry documentation three ways to address this problem, though can't find the link anymore...Any suggestions? Thanks, Josh - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: java.io.NotSerializableException - tapestry property
i think your output file is missing. the fill you are trying to write to does not exist. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Doubt about implementing Ajax request
Thanks :) I will look :) But I thought tapestry 4.1 would have some features for ajax submit already implemented. On 9/20/06, Karthik N [EMAIL PROTECTED] wrote: you should look at the excellent Tacos framework to help you on this. It makes Ajax with Tapestry a breeze, thanks to some great work done. http://tacos.sourceforge.net/ in addition, if need be, you can look at Dojo and DWR to help you with Ajax. On 9/21/06, Daniel Castro [EMAIL PROTECTED] wrote: Guys, please help me, if possible. I have a page with a search form, and those form fields are used as parameteres for a search query (SQL). There are two content holders, that are div tags with specified ids, to hold the ajax return of the search and ajax return of the search details. Those content holders are placed bellow the search form, on the same page. What is the search result and what is the search detail? Well, the search result is a 6 columns table sqlmodel component (from contrib library) where the first column is the pk of the database entry that is displayed and the last column is a button to invoke the display of the details. The search detail is a table that displays less relevant informations about one row of the search. so lets suppose that 1 - I have the form page with the submit button 2 - I have a tapestry tabel component that returns the search result 3 - I have a class that returns a string containing the html code of that detail table associated with a primary key. 4 - I have a button on the result table, for each row, that passes the id of the row as atttribute or parameter 5 - I have the place holders identified (two div tags) How shoul I implement the ajax call for the search and the detail? Please, step by step explanatuion if possble. My big problem is how to do this call, i tried some approaches to solve this, but none was sucessful. Thanks everyone. -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill -- Thanks, Karthik -- We shall go on to the end. We shall fight in France We shall fightover the seas and oceans. We shall fight with growing confidence and growing strength in the air. We shall defend our island whatever the cost may be We shall fight on beaches, we shall fight on the landing grounds, We shall fight in the fields and in the streets, We shall fight on the hills. We shall never surrender. Winston Churchill