Re: [T5] Get Response data
Hi Ben, I've tried to use your solution. But it doesn't work as expected. I expect to get "entirely" response data. Ex, Some css and js I've injected to page. But it seems we don't get those files at this phase. Do you have any idea? Thanks, Van iapilgrim wrote: > > Ah yes, thank Ben. > I'm using your CacheControl Module in my project. > Thank for your contribution. You do a great job. > Thank, > Van > > > ben.gidley wrote: >> >> If you look at the code behind the tapestry caching library in >> ioko-tapestry-commons - >> http://code.google.com/p/ioko-tapestry-commons/source/browse/trunk/tapestry-commons/tapestry-cacheControl/src/main/java/uk/co/ioko/tapestry/cacheControl/services/CacheControlMarkupRenderer.java >> This wraps the render lifecycle and captures the output. >> >> Ben Gidley >> >> www.gidley.co.uk >> b...@gidley.co.uk >> >> >> On Mon, Oct 19, 2009 at 11:53 AM, iapilgrim wrote: >> >>> >>> No matter what cache strategy is, I want to get entirely response data. >>> How to get entirely response data is my question ? >>> Anyone can help? >>> >>> >>> Martin Strand-4 wrote: >>> > >>> > Not really answering your question but if you want to cache entire >>> pages >>> I >>> > would recommend using a caching proxy such as squid or varnish. >>> > Of course it depends on your specific use case... >>> > >>> > >>> > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim >>> wrote: >>> > >>> > >>> >> >>> >> Hi all, >>> >> I'm using T5.1.0.5. My goal is to get page response data and cache it >>> for >>> >> future use. >>> >> One way to achieve that is in after render phase or clean up render >>> >> phase. >>> >> My questions are >>> >> + Are data at after render phase final? >>> >> I mean does T5 inject more data after that? >>> >> + If I want to get response data of many pages how do I do that in >>> one >>> >> place. >>> >> Decorate or contribute after render phase for example? >>> >> + I has followed request-response processing. >>> >> http://uli.spielviel.de/~uli/tapestry_request_processing.png >>> >> tapestry_request_processing >>> >> But find no way to achieve this. >>> >> >>> >> How about your idea? >>> >> Thank in advance, >>> >> Van >>> > >>> > - >>> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> > For additional commands, e-mail: users-h...@tapestry.apache.org >>> > >>> > >>> > >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html >>> Sent from the Tapestry - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >>> For additional commands, e-mail: users-h...@tapestry.apache.org >>> >>> >> >> > > -- View this message in context: http://www.nabble.com/-T5--Get-Response-data-tp25902064p25969127.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Error when running tapestry on IBM WebSphere Portal
So sorry!! I'm so confused. Please download the lib from https://issues.apache.org/jira/secure/attachment/12422643/tapestry_portlet_5.1.0.5.zip On Tue, Oct 20, 2009 at 9:46 AM, Xuan Tran Le wrote: > Sorry, I attach the files > > > On Tue, Oct 20, 2009 at 9:45 AM, Xuan Tran Le wrote: > >> Hi dear, >> >> I have an error when running tapestry (version 5.1.0.5) on IBM WebSphere >> Portal (version 6.1). The lib you can download from >> https://issues.apache.org/jira/secure/attachment/12418778/tapestry_portlet_5.0.15.zip(issue >> link: https://issues.apache.org/jira/browse/TAP5-64). I attach the error >> log file and the README show how I run tapestry in portlet mode. >> >> This is the error: >> >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R >> java.lang.IllegalStateException: Construction of service >> 'GenericRequestResponseServiceImplPortlet' has failed due to recursion: the >> service depends on itself in some way. Please check >> com.mvnsoft.mvncms.tapestry5.services.GenericRequestResponseServiceImplPortlet() >> (at GenericRequestResponseServiceImplPortlet.java:30) via >> com.mvnsoft.mvncms.tapestry5.services.MvnPublishAdminPortletModule.bind(ServiceBinder) >> (at MvnPublishAdminPortletModule.java:30) for references to another service >> that is itself dependent on service >> 'GenericRequestResponseServiceImplPortlet'. >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:52) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:68) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:57) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> $GenericRequestResponseService_124337f520a.delegate($GenericRequestResponseService_124337f520a.java) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> $GenericRequestResponseService_124337f520a.getGenericResponse($GenericRequestResponseService_124337f520a.java) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> com.mvnsoft.mvncms.tapestry5.base.BasePage.getGenericResponse(BasePage.java:69) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> com.mvnsoft.mvncms.tapestry5.base.BasePage.activate(BasePage.java:105) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> com.mvnsoft.mvncms.tapestry5.base.BasePage.dispatchComponentEvent(BasePage.java) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> com.mvnsoft.mvncms.tapestry5.pages.publishadmin.Index.dispatchComponentEvent(Index.java) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:902) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1081) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:56) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1943) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> $PageRenderRequestHandler_124337f51e2.handle($PageRenderRequestHandler_124337f51e2.java) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> $PageRenderRequestHandler_124337f51cc.handle($PageRenderRequestHandler_124337f51cc.java) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) >> [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at >> $ComponentRequestHandler_124337f51d1.handlePageRender($ComponentRequestHand
Error when running tapestry on IBM WebSphere Portal
Hi dear, I have an error when running tapestry (version 5.1.0.5) on IBM WebSphere Portal (version 6.1). The lib you can download from https://issues.apache.org/jira/secure/attachment/12418778/tapestry_portlet_5.0.15.zip(issue link: https://issues.apache.org/jira/browse/TAP5-64). I attach the error log file and the README show how I run tapestry in portlet mode. This is the error: [10/8/09 16:34:16:875 ICT] 0037 SystemErr R java.lang.IllegalStateException: Construction of service 'GenericRequestResponseServiceImplPortlet' has failed due to recursion: the service depends on itself in some way. Please check com.mvnsoft.mvncms.tapestry5.services.GenericRequestResponseServiceImplPortlet() (at GenericRequestResponseServiceImplPortlet.java:30) via com.mvnsoft.mvncms.tapestry5.services.MvnPublishAdminPortletModule.bind(ServiceBinder) (at MvnPublishAdminPortletModule.java:30) for references to another service that is itself dependent on service 'GenericRequestResponseServiceImplPortlet'. [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.ioc.internal.RecursiveServiceCreationCheckWrapper.createObject(RecursiveServiceCreationCheckWrapper.java:52) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator$1.invoke(OperationTrackingObjectCreator.java:45) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.ioc.internal.OperationTrackerImpl.invoke(OperationTrackerImpl.java:68) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.ioc.internal.PerThreadOperationTracker.invoke(PerThreadOperationTracker.java:68) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.ioc.internal.RegistryImpl.invoke(RegistryImpl.java:941) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.ioc.internal.OperationTrackingObjectCreator.createObject(OperationTrackingObjectCreator.java:49) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.obtainObjectFromCreator(JustInTimeObjectCreator.java:68) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.ioc.internal.services.JustInTimeObjectCreator.createObject(JustInTimeObjectCreator.java:57) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at $GenericRequestResponseService_124337f520a.delegate($GenericRequestResponseService_124337f520a.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at $GenericRequestResponseService_124337f520a.getGenericResponse($GenericRequestResponseService_124337f520a.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at com.mvnsoft.mvncms.tapestry5.base.BasePage.getGenericResponse(BasePage.java:69) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at com.mvnsoft.mvncms.tapestry5.base.BasePage.activate(BasePage.java:105) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at com.mvnsoft.mvncms.tapestry5.base.BasePage.dispatchComponentEvent(BasePage.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at com.mvnsoft.mvncms.tapestry5.pages.publishadmin.Index.dispatchComponentEvent(Index.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.dispatchEvent(ComponentPageElementImpl.java:902) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.internal.structure.ComponentPageElementImpl.triggerContextEvent(ComponentPageElementImpl.java:1081) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.internal.services.PageRenderRequestHandlerImpl.handle(PageRenderRequestHandlerImpl.java:56) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.services.TapestryModule$33.handle(TapestryModule.java:1943) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at $PageRenderRequestHandler_124337f51e2.handle($PageRenderRequestHandler_124337f51e2.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at $PageRenderRequestHandler_124337f51cc.handle($PageRenderRequestHandler_124337f51cc.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.internal.services.ComponentRequestHandlerTerminator.handlePageRender(ComponentRequestHandlerTerminator.java:48) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at $ComponentRequestHandler_124337f51d1.handlePageRender($ComponentRequestHandler_124337f51d1.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at org.apache.tapestry5.internal.services.PageRenderDispatcher.dispatch(PageRenderDispatcher.java:45) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at $Dispatcher_124337f51d3.dispatch($Dispatcher_124337f51d3.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R at $Dispatcher_124337f51ca.dispatch($Dispatcher_124337f51ca.java) [10/8/09 16:34:16:875 ICT] 0037 SystemErr R
Re: Conditional Validators
Thanks for your comments, guys. Benny On Mon, Oct 19, 2009 at 7:39 PM, Howard Lewis Ship wrote: > This is actually a challenge in Tapestry. In effect, the component > abstraction does get in the way of any kind of intra-field dependency, > including validation. In simpler systems, you can create an > "engineered coincidence" for these types of relationships ("the city > field is required if a country is selected" is easier to implement if > you have orchestrated that the client id and control names are "city" > and "country" and directly connect to the "city" and "country" > properties of the data object). In Tapestry, a single form can > reasonably edit many different data objects, and especially with loops > and/or Ajax in the mix, the control names and client ids may vary > wildly (including extra numbers to ensure that they are unique). > > I don't have a specific plan to address this; it may be something that > is done less declaratively (using @Validate) and more imperatively (a > set of utilities for generating the necessary client- and server-side > validations). > > On Mon, Oct 19, 2009 at 2:57 PM, Ulrich Stärk wrote: > > You can make form fields conditionally visible using the if or > formfragment > > components. Apart from that, manually performing validation in the > > corresponding onValidate event handler method is the way to go. > > > > Uli > > > > Am 19.10.2009 23:10 schrieb Benny Law: > >> > >> Hi everyone, > >> > >> I have a form with a field that is required only when certain conditions > >> are > >> true, so I can't use validator="required" in the template. What is the > >> best > >> way to handle this? I would rather not do it in onValidateForm because > >> that > >> will require a duplicate error message to be provided (one that is > already > >> provided by the required validator). Is there a way to dynamically add > >> validators to a field when a form is submitted before validations are > >> performed? I am using T5.1. Thanks. > >> > >> Benny Law > >> > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > -- > Howard M. Lewis Ship > > Creator of Apache Tapestry > > The source for Tapestry training, mentoring and support. Contact me to > learn how I can get you up and productive in Tapestry fast! > > (971) 678-5210 > http://howardlewisship.com > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Conditional Validators
This is actually a challenge in Tapestry. In effect, the component abstraction does get in the way of any kind of intra-field dependency, including validation. In simpler systems, you can create an "engineered coincidence" for these types of relationships ("the city field is required if a country is selected" is easier to implement if you have orchestrated that the client id and control names are "city" and "country" and directly connect to the "city" and "country" properties of the data object). In Tapestry, a single form can reasonably edit many different data objects, and especially with loops and/or Ajax in the mix, the control names and client ids may vary wildly (including extra numbers to ensure that they are unique). I don't have a specific plan to address this; it may be something that is done less declaratively (using @Validate) and more imperatively (a set of utilities for generating the necessary client- and server-side validations). On Mon, Oct 19, 2009 at 2:57 PM, Ulrich Stärk wrote: > You can make form fields conditionally visible using the if or formfragment > components. Apart from that, manually performing validation in the > corresponding onValidate event handler method is the way to go. > > Uli > > Am 19.10.2009 23:10 schrieb Benny Law: >> >> Hi everyone, >> >> I have a form with a field that is required only when certain conditions >> are >> true, so I can't use validator="required" in the template. What is the >> best >> way to handle this? I would rather not do it in onValidateForm because >> that >> will require a duplicate error message to be provided (one that is already >> provided by the required validator). Is there a way to dynamically add >> validators to a field when a form is submitted before validations are >> performed? I am using T5.1. Thanks. >> >> Benny Law >> > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- Howard M. Lewis Ship Creator of Apache Tapestry The source for Tapestry training, mentoring and support. Contact me to learn how I can get you up and productive in Tapestry fast! (971) 678-5210 http://howardlewisship.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: T51.0.5: Persistent fields may not be up dated until after the page has finished loading.
Em Mon, 19 Oct 2009 18:17:26 -0200, Argo Vilberg escreveu: hi, Hi! I got error : In tapestry 5.0.14 i use construction Constructor? ERROR java.lang.RuntimeException: Exception assembling root component of page SignDoc: Error persisting field SignDoc:sdocinfo: Persistent fields may not be up dated until after the page has finished loading. This may be due to a persistent field with a default value. The default value should be removed. Don't initialize @Persist'ed fields in their declaration nor in constructor. Use event handler methods for that· How can i communicate with two java class with persistent tapestry annotation variable? Just like you did in 5.0.14. -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://www.arsmachina.com.br/thiago - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Conditional Validators
You can make form fields conditionally visible using the if or formfragment components. Apart from that, manually performing validation in the corresponding onValidate event handler method is the way to go. Uli Am 19.10.2009 23:10 schrieb Benny Law: Hi everyone, I have a form with a field that is required only when certain conditions are true, so I can't use validator="required" in the template. What is the best way to handle this? I would rather not do it in onValidateForm because that will require a duplicate error message to be provided (one that is already provided by the required validator). Is there a way to dynamically add validators to a field when a form is submitted before validations are performed? I am using T5.1. Thanks. Benny Law - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Conditional Validators
Hi everyone, I have a form with a field that is required only when certain conditions are true, so I can't use validator="required" in the template. What is the best way to handle this? I would rather not do it in onValidateForm because that will require a duplicate error message to be provided (one that is already provided by the required validator). Is there a way to dynamically add validators to a field when a form is submitted before validations are performed? I am using T5.1. Thanks. Benny Law
T51.0.5: Persistent fields may not be up dated until after the page has finished loading.
hi, I got error : In tapestry 5.0.14 i use construction Failid.java signDoc.setSignedDocInfo(startSessionResponse.getSignedDocInfo()); return signDoc; SignDoc.java @Persist private SignedDocInfo sdocinfo; But in tapestry 5.1.0.5 i got error: ERROR java.lang.RuntimeException: Exception assembling root component of page SignDoc: Error persisting field SignDoc:sdocinfo: Persistent fields may not be up dated until after the page has finished loading. This may be due to a persistent field with a default value. The default value should be removed. How can i communicate with two java class with persistent tapestry annotation variable? Argo
Re: T5:what can replace jsp's include tag in Tapestry?
thanks! Ulrich! you give a light on darkness! i'd got the answer:make a reusable component.this is so easy in tapestry! here is my code,share them now: 1.CommSideBar.tml: http://www.w3.org/1999/xhtml"; xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> ${pageDes.displayName} 2.CommSideBar.java package com.packtpub.t5first.components; import java.util.ArrayList; import java.util.List; import org.apache.tapestry5.ComponentResources; import org.apache.tapestry5.annotations.Parameter; import org.apache.tapestry5.annotations.Property; import org.apache.tapestry5.ioc.annotations.Inject; public class CommSideBar { @Property private PageDes pageDes; @Inject private ComponentResources resources; @Property @Parameter(required=true) private List pages; public String getClassForPageName(){ return resources.getPageName().equalsIgnoreCase(pageDes.getPage()) ? "current_sidebar_item" : "sidebar_item"; } } 3.put some style code on layout.css: #sidebar DIV.sidebar-content LI.current_sidebar_item a{ text-decoration:underline; } #sidebar DIV.sidebar-content LI.sidebar_item a{ text-decoration:none; } 4.use the CommSideBar component in Start page: Start.class: ... public List getLinkPages(){ List pages=new ArrayList(); pages.add(new PageDes("another","另一页")); pages.add(new PageDes("scrip/create","创建纸条")); pages.add(new PageDes("scrip/listView","查看纸条")); return pages; } ... start.tml: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> so here is the param-value-transform course: 1.commSideBar will get pages parameter from start; 2.and use it to construct sidebar parameter's value which will be as layout's parameter. thanks all of buddy from Tapestry! On Mon, Oct 19, 2009 at 7:12 PM, Ulrich Stärk wrote: > That's what components are used for: reusable pieces of markup and logic. > Just build a component that's responsible for rendering out your common code > and place that on each page where this common code shall be displayed. > > Cheers, > > Uli > > Am 19.10.2009 11:44 schrieb cleverpig: >> >> i knew in the layout page,we can use block to implement the include >> another page in layout page. >> >> such as: >> in the layout.tml: >> ... >> >> >> >> ${sidebarTitle} >> >> >> >> >> >> >> ... >> >> in the start.tml: >> > title="${message:page-c01}" >> sidebarTitle="start here!" >> xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> >> >> here is sidebar! >> >> >> >> so when start page displayed,the sidebar content will be given by the >> parameter. >> >> but i got a deeper problem:i will added a common html code in start >> and another pages,such as help link. >> it sounds like include tag in jsp times. >> i think it maybe can be done as what in the layout! >> please give me a hand! >> > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:cleverpig Blog: www.cleverpig.name Tags: del.icio.us/cleverpig Twitter: twitter.com/cleverpig 新浪微博: t.sina.com.cn/cleverpig Organization: www.beijing-open-party.org or...@facebook: http://www.facebook.com/group.php?gid=8159558294 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Taåestry.debug() toggles blackbird console ... newbiew quest ...
try Tapestry.Logging.debug("message") 2009/10/19 Gunnar Eketrapp > Tapestry.debug('Message'); > > 2009/10/19 Toby Hobson > > > Are you using Tapestry.Logging.debug() ? > > > > 2009/10/19 Gunnar Eketrapp > > > > > Hi! > > > > > > I entered some debug loggings into some javascript code but the > blackbird > > > console keeps toogling each time I call Tapestry.debug(). > > > > > > Hum ... the page is reloaded how do I get the blackbird console to > > > persistent across multiple pages ... > > > > > > Or am I stupid > > > > > > > > > -- > [Hem: 08-715 59 57, Mobil: 0708-52 62 90] > Allévägen 2A, 132 42 Saltsjö-Boo >
Re: Taåestry.debug() toggles blackbird console ... newbiew quest ...
Tapestry.debug('Message'); 2009/10/19 Toby Hobson > Are you using Tapestry.Logging.debug() ? > > 2009/10/19 Gunnar Eketrapp > > > Hi! > > > > I entered some debug loggings into some javascript code but the blackbird > > console keeps toogling each time I call Tapestry.debug(). > > > > Hum ... the page is reloaded how do I get the blackbird console to > > persistent across multiple pages ... > > > > Or am I stupid > > > -- [Hem: 08-715 59 57, Mobil: 0708-52 62 90] Allévägen 2A, 132 42 Saltsjö-Boo
Re: Taåestry.debug() toggles blackbird console ... newbiew quest ...
Are you using Tapestry.Logging.debug() ? 2009/10/19 Gunnar Eketrapp > Hi! > > I entered some debug loggings into some javascript code but the blackbird > console keeps toogling each time I call Tapestry.debug(). > > Hum ... the page is reloaded how do I get the blackbird console to > persistent across multiple pages ... > > Or am I stupid >
Re: Ajax fileupload
As mentioned on previous threads, you can use dwr to upload files in an ajax style fashion which uses a hidden iframe. There is an example of using fileupload in the demo war file http://directwebremoting.org/dwr/download.html 2009/10/18 Argo Vilberg > hi > Is in tapestry such component like GMAIL fileupload. Choose file and after > that, uploading started automatically? > > > Argo >
Re: Ajax fileupload
I've built a component that uses aurigma's image upload tool. It works pretty nicely but it's specifically for bulk image uploads not general file uploading. Having said that it's easy enough to write a tapestry wrapper around any flash upload library, although licensing issues would probably prevent it from being included in the T5 distribution Toby 2009/10/19 Harald Geritzer > > interesting question...has anybody been successful including/using some > flash upload component with tapestry 5? > > Toby Hobson schrieb: > >> Tapestry's file upload component is not ajax based. Actually GMAIL's file >> upload uses flash, not ajax because ajax does not work with multipart form >> data >> >> Toby >> >> 2009/10/18 Argo Vilberg >> >> hi >>> Is in tapestry such component like GMAIL fileupload. Choose file and >>> after >>> that, uploading started automatically? >>> >>> >>> Argo >>> >>> >> > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: How to create same functionality as TriggerFragment, but for actionLink
You might like the TitlePane add-on component at http://lombok.demon.co.uk/tapestry5Demo/. Or at least start with its code. It can hide any arbirtary section of a page with an onclick, using the prototype api. On Mon, Oct 19, 2009 at 4:29 AM, Andrey Larionov wrote: > All examples what i found for formfragment or other, uses some > persistency on server side. Is it possible to remove it? > > On Mon, Oct 19, 2009 at 11:44, cordenier christophe > wrote: > > Hi > > > > Do you mean without 'server side' persistency ? > > > > You can do it by using prototype API to show or hide DOM elements, and > > scriptaculous for more visual effect. > > > > If you want to persist the state, you can send an Ajax Request on toggle > > that updates the state each time the user click on your link. > > > > Regards > > ChristophE. > > > > 2009/10/19 Andrey Larionov > > > >> I need to show and hide Form by click on some link. Actualy want to do > >> this without persistency. Should i do it on client side? And how? Can > >> anybody suggest direction > >> > >> Thanks. > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > >> For additional commands, e-mail: users-h...@tapestry.apache.org > >> > >> > > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: Ajax fileupload
interesting question...has anybody been successful including/using some flash upload component with tapestry 5? Toby Hobson schrieb: Tapestry's file upload component is not ajax based. Actually GMAIL's file upload uses flash, not ajax because ajax does not work with multipart form data Toby 2009/10/18 Argo Vilberg hi Is in tapestry such component like GMAIL fileupload. Choose file and after that, uploading started automatically? Argo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Get Response data
Ah yes, thank Ben. I'm using your CacheControl Module in my project. Thank for your contribution. You do a great job. Thank, Van ben.gidley wrote: > > If you look at the code behind the tapestry caching library in > ioko-tapestry-commons - > http://code.google.com/p/ioko-tapestry-commons/source/browse/trunk/tapestry-commons/tapestry-cacheControl/src/main/java/uk/co/ioko/tapestry/cacheControl/services/CacheControlMarkupRenderer.java > This wraps the render lifecycle and captures the output. > > Ben Gidley > > www.gidley.co.uk > b...@gidley.co.uk > > > On Mon, Oct 19, 2009 at 11:53 AM, iapilgrim wrote: > >> >> No matter what cache strategy is, I want to get entirely response data. >> How to get entirely response data is my question ? >> Anyone can help? >> >> >> Martin Strand-4 wrote: >> > >> > Not really answering your question but if you want to cache entire >> pages >> I >> > would recommend using a caching proxy such as squid or varnish. >> > Of course it depends on your specific use case... >> > >> > >> > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim >> wrote: >> > >> > >> >> >> >> Hi all, >> >> I'm using T5.1.0.5. My goal is to get page response data and cache it >> for >> >> future use. >> >> One way to achieve that is in after render phase or clean up render >> >> phase. >> >> My questions are >> >> + Are data at after render phase final? >> >> I mean does T5 inject more data after that? >> >> + If I want to get response data of many pages how do I do that in one >> >> place. >> >> Decorate or contribute after render phase for example? >> >> + I has followed request-response processing. >> >> http://uli.spielviel.de/~uli/tapestry_request_processing.png >> >> tapestry_request_processing >> >> But find no way to achieve this. >> >> >> >> How about your idea? >> >> Thank in advance, >> >> Van >> > >> > - >> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> > For additional commands, e-mail: users-h...@tapestry.apache.org >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > > -- View this message in context: http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956852.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Get Response data
If you look at the code behind the tapestry caching library in ioko-tapestry-commons - http://code.google.com/p/ioko-tapestry-commons/source/browse/trunk/tapestry-commons/tapestry-cacheControl/src/main/java/uk/co/ioko/tapestry/cacheControl/services/CacheControlMarkupRenderer.java This wraps the render lifecycle and captures the output. Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Mon, Oct 19, 2009 at 11:53 AM, iapilgrim wrote: > > No matter what cache strategy is, I want to get entirely response data. > How to get entirely response data is my question ? > Anyone can help? > > > Martin Strand-4 wrote: > > > > Not really answering your question but if you want to cache entire pages > I > > would recommend using a caching proxy such as squid or varnish. > > Of course it depends on your specific use case... > > > > > > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim > wrote: > > > > > >> > >> Hi all, > >> I'm using T5.1.0.5. My goal is to get page response data and cache it > for > >> future use. > >> One way to achieve that is in after render phase or clean up render > >> phase. > >> My questions are > >> + Are data at after render phase final? > >> I mean does T5 inject more data after that? > >> + If I want to get response data of many pages how do I do that in one > >> place. > >> Decorate or contribute after render phase for example? > >> + I has followed request-response processing. > >> http://uli.spielviel.de/~uli/tapestry_request_processing.png > >> tapestry_request_processing > >> But find no way to achieve this. > >> > >> How about your idea? > >> Thank in advance, > >> Van > > > > - > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > > For additional commands, e-mail: users-h...@tapestry.apache.org > > > > > > > > -- > View this message in context: > http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
Re: T5:what can replace jsp's include tag in Tapestry?
That's what components are used for: reusable pieces of markup and logic. Just build a component that's responsible for rendering out your common code and place that on each page where this common code shall be displayed. Cheers, Uli Am 19.10.2009 11:44 schrieb cleverpig: i knew in the layout page,we can use block to implement the include another page in layout page. such as: in the layout.tml: ... ${sidebarTitle} ... in the start.tml: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> here is sidebar! so when start page displayed,the sidebar content will be given by the parameter. but i got a deeper problem:i will added a common html code in start and another pages,such as help link. it sounds like include tag in jsp times. i think it maybe can be done as what in the layout! please give me a hand! - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: [T5] Get Response data
No matter what cache strategy is, I want to get entirely response data. How to get entirely response data is my question ? Anyone can help? Martin Strand-4 wrote: > > Not really answering your question but if you want to cache entire pages I > would recommend using a caching proxy such as squid or varnish. > Of course it depends on your specific use case... > > > On Thu, 15 Oct 2009 04:11:20 +0200, iapilgrim wrote: > > >> >> Hi all, >> I'm using T5.1.0.5. My goal is to get page response data and cache it for >> future use. >> One way to achieve that is in after render phase or clean up render >> phase. >> My questions are >> + Are data at after render phase final? >> I mean does T5 inject more data after that? >> + If I want to get response data of many pages how do I do that in one >> place. >> Decorate or contribute after render phase for example? >> + I has followed request-response processing. >> http://uli.spielviel.de/~uli/tapestry_request_processing.png >> tapestry_request_processing >> But find no way to achieve this. >> >> How about your idea? >> Thank in advance, >> Van > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > > > -- View this message in context: http://www.nabble.com/-T5--Get-Response-data-tp25902064p25956280.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Validating a Select component without JavaScript
Hello! In a page I have a Select component like this: During the tests I figured out that the validation of this field only works with JavaScript enabled. Is this a bug in tapestry? How can I fix this? My own onValidate methods are never called. I tried void onValidateFromRoleName(Object) void onValidateFromRoleName(String) TIA Stephan P.S.: Does the issue tracker work? When clicking "next" in the bug list, I get this empty page: http://issues.apache.org/jira/secure/IssueNavigator.jspa?pager/start=50 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry behaving strangely in production environment
It sounds unlikely to have anything to do with Tapestry (or your code) and more to do with the hardware it is running on. Few applications can survive losing their database connection! Ben Gidley www.gidley.co.uk b...@gidley.co.uk On Mon, Oct 19, 2009 at 8:11 AM, Vidya Sivadas wrote: > > Hi, > > The application developed using Tapestry 5.0.15 is working fine here in > India in the development environment,but when it is deployed in client's > machine at U.K,the application is behaving strangely and at times showing > hibernate connection problems and network adapter problems.The database > settings are configured properly in the production environment.But throwing > some unwanted exceptions and some readonly textfields are not disaplaying > the text.When we deploy the same war file here,it is working fine without > any issues. > > The locale configuration that is set in AppModule is "en".Do this have any > relation with the issue? > > Any idea on this issue? > Please revert back if u have any ideas. > > Thanks in advance.. > -- > View this message in context: > http://www.nabble.com/Tapestry-behaving-strangely-in-production-environment-tp25954098p25954098.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
T5:what can replace jsp's include tag in Tapestry?
i knew in the layout page,we can use block to implement the include another page in layout page. such as: in the layout.tml: ... ${sidebarTitle} ... in the start.tml: http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> here is sidebar! so when start page displayed,the sidebar content will be given by the parameter. but i got a deeper problem:i will added a common html code in start and another pages,such as help link. it sounds like include tag in jsp times. i think it maybe can be done as what in the layout! please give me a hand! -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:cleverpig Blog: www.cleverpig.name Tags: del.icio.us/cleverpig Twitter: twitter.com/cleverpig 新浪微博: t.sina.com.cn/cleverpig Organization: www.beijing-open-party.org or...@facebook: http://www.facebook.com/group.php?gid=8159558294 - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Tapestry behaving strangely in production environment
try 5.1.0.5, it works fine with me in a quite large application. Vidya Sivadas wrote: > > Hi, > > The application developed using Tapestry 5.0.15 is working fine here in > India in the development environment,but when it is deployed in client's > machine at U.K,the application is behaving strangely and at times showing > hibernate connection problems and network adapter problems.The database > settings are configured properly in the production environment.But > throwing some unwanted exceptions and some readonly textfields are not > disaplaying the text.When we deploy the same war file here,it is working > fine without any issues. > > The locale configuration that is set in AppModule is "en".Do this have any > relation with the issue? > > Any idea on this issue? > Please revert back if u have any ideas. > > Thanks in advance.. > -- View this message in context: http://www.nabble.com/Tapestry-behaving-strangely-in-production-environment-tp25954098p25955527.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: How to create same functionality as TriggerFragment, but for actionLink
All examples what i found for formfragment or other, uses some persistency on server side. Is it possible to remove it? On Mon, Oct 19, 2009 at 11:44, cordenier christophe wrote: > Hi > > Do you mean without 'server side' persistency ? > > You can do it by using prototype API to show or hide DOM elements, and > scriptaculous for more visual effect. > > If you want to persist the state, you can send an Ajax Request on toggle > that updates the state each time the user click on your link. > > Regards > ChristophE. > > 2009/10/19 Andrey Larionov > >> I need to show and hide Form by click on some link. Actualy want to do >> this without persistency. Should i do it on client side? And how? Can >> anybody suggest direction >> >> Thanks. >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Chenille kit Quartz
On Fri, Oct 16, 2009 at 7:04 PM, Sam Domonkos wrote: > I was wondering if the Chenille kit project will be updating the Quartz > module to version 1.6.5 from 3/6/2009, it seems to be using 1.6.0 from > 11/6/2006 Sven committed something about that... but please if you would like to help fire a Jira issue or at lease write to Chenillekit mailing list instead of posting here. Cheers -- Massimo http://meridio.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Taåestry.debug() toggles blackbird console ... newb iew quest ...
Hi! I entered some debug loggings into some javascript code but the blackbird console keeps toogling each time I call Tapestry.debug(). Hum ... the page is reloaded how do I get the blackbird console to persistent across multiple pages ... Or am I stupid
Re: How to create same functionality as TriggerFragment, but for actionLink
Hi Do you mean without 'server side' persistency ? You can do it by using prototype API to show or hide DOM elements, and scriptaculous for more visual effect. If you want to persist the state, you can send an Ajax Request on toggle that updates the state each time the user click on your link. Regards ChristophE. 2009/10/19 Andrey Larionov > I need to show and hide Form by click on some link. Actualy want to do > this without persistency. Should i do it on client side? And how? Can > anybody suggest direction > > Thanks. > > - > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > >
How to create same functionality as TriggerFragment, but for actionLink
I need to show and hide Form by click on some link. Actualy want to do this without persistency. Should i do it on client side? And how? Can anybody suggest direction Thanks. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Tapestry behaving strangely in production environment
Hi, The application developed using Tapestry 5.0.15 is working fine here in India in the development environment,but when it is deployed in client's machine at U.K,the application is behaving strangely and at times showing hibernate connection problems and network adapter problems.The database settings are configured properly in the production environment.But throwing some unwanted exceptions and some readonly textfields are not disaplaying the text.When we deploy the same war file here,it is working fine without any issues. The locale configuration that is set in AppModule is "en".Do this have any relation with the issue? Any idea on this issue? Please revert back if u have any ideas. Thanks in advance.. -- View this message in context: http://www.nabble.com/Tapestry-behaving-strangely-in-production-environment-tp25954098p25954098.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org