Re: T5.2 Need Advice on JDBC and Transaction Mgmt
Any plans for suppor live class reloading in spring beans? Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Need-Advice-on-JDBC-and-Transaction-Mgmt-tp3301388p4433969.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.2 Need Advice on JDBC and Transaction Mgmt
I'm implementing this approach to have live class reloading with TapestryIoC Services Annotated with spring's @Transactional, but I have a problem: How can I implement this approach COMPLETE, my problem is when I define for example @Transactional(readonly=true) or @Transactional(rollbackfor=Exception.class) , how can I implement it ? Thanks in advance -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-2-Need-Advice-on-JDBC-and-Transaction-Mgmt-tp3301388p4433413.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 add values to URL in onPassivate
Josh, it worked! "return this;" when the values are null took the values returned by onPassivate and it appeared in the URL. (Though I am having issues with infinite page loop error, guess I can fix that) Thiago, I shouldn't have used the word "override", I meant implementing onActivate in MyPage. Thanks guys! -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-add-values-to-URL-in-onPassivate-tp4433180p4433290.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 add values to URL in onPassivate
> I tried overriding onPassivate() and returned > > return new Object[] { userSession.getViewType(), > userSession.getTeam().getId() }; > > but it does not appear in the URL. > > What should be done to get it there?? In onActivate you detect that these values are not present and return "this" so that your page will be redirected with the values from onPassivate(). pseudo-ish code: onActivate(value1, value2) { fieldForValue1 = value1; fieldForValue2 = value2; } onActivate() { if ( fieldForValue1 == null || fieldForValue2 == null ) return this; // assumes that you always have values returned by onPassivate otherwise you'll infinite loop! } onPassivate() { return new Object[] { userSession.getViewType() || "DEFAULT_USER_TYPE", userSession.getTeam().getId() || "DEFAULT_TEAM_ID" }; } On Fri, May 27, 2011 at 12:25 PM, hese <1024h...@gmail.com> wrote: > > Hi, > > I have two select controls on my page. I populate these two select controls > based on the role and other settings for this user. Now, what I am trying > to achieve is to add a restful URL access to the page depending on values in > these two controls so the page can be bookmarked. Something like this - > > /mypage/Value1/Value2 - should populate Value1 in the first control and > Value2 in the second control and load the page accordingly. I've > implemented this by overriding onActivate(EventContext ec) and checking 'ec' > for these values and populating the page accordingly. So far so good. But > what happens when the user does not manipulate the url? I still want the URL > to have the currently selected values. (like the user logs in and goes to > /mypage (the default page after login) I want the URL to automatically > become - /mypage/Value3/Value4) > > I tried overriding onPassivate() and returned > > return new Object[] { userSession.getViewType(), > userSession.getTeam().getId() }; > > but it does not appear in the URL. > > What should be done to get it there?? > > Thanks for any help!! > > > > > > (This is the first page the users goes to when he/she logs in.) > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/how-to-add-values-to-URL-in-onPassivate-tp4433180p4433180.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 > > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: how to add values to URL in onPassivate
On Fri, 27 May 2011 16:25:11 -0300, hese <1024h...@gmail.com> wrote: Hi, Hi! Value2 in the second control and load the page accordingly. I've implemented this by overriding onActivate(EventContext ec) What do you mean by overriding? Do you have a base page class? But what happens when the user does not manipulate the url? I still want the URL to have the currently selected values. (like the user logs in and goes to /mypage (the default page after login) I want the URL to automatically become - /mypage/Value3/Value4) The onPassivate() method should be in the page that will receive the context (in the other words, the page to which you're redirecting). In this case, MyPage. -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor Owner, Ars Machina Tecnologia da Informação Ltda. http://www.arsmachina.com.br - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
how to add values to URL in onPassivate
Hi, I have two select controls on my page. I populate these two select controls based on the role and other settings for this user. Now, what I am trying to achieve is to add a restful URL access to the page depending on values in these two controls so the page can be bookmarked. Something like this - /mypage/Value1/Value2 - should populate Value1 in the first control and Value2 in the second control and load the page accordingly. I've implemented this by overriding onActivate(EventContext ec) and checking 'ec' for these values and populating the page accordingly. So far so good. But what happens when the user does not manipulate the url? I still want the URL to have the currently selected values. (like the user logs in and goes to /mypage (the default page after login) I want the URL to automatically become - /mypage/Value3/Value4) I tried overriding onPassivate() and returned return new Object[] { userSession.getViewType(), userSession.getTeam().getId() }; but it does not appear in the URL. What should be done to get it there?? Thanks for any help!! (This is the first page the users goes to when he/she logs in.) -- View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-add-values-to-URL-in-onPassivate-tp4433180p4433180.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.2.5] Ajax redirectURL does not work when invoked though ComponentRequestFilter
My bad. My own code was generating this response from a dark little neglected corner. On 23/05/11 11:12 AM, Joost Schouten (ml) wrote: Hi, When an AJAX event handler method returns a Page the following response is generated which nicely redirects me to the page. { "redirectURL" : "/jsportal-projectportal-client-tapestry/nl/secured/project/overview/3603" } When the same is generated though the process of the ComponentRequestFilter [1] this response is generated which does not work. {'redirectURL':'https://localhost:8443/jsportal-projectportal-client-tapestry/nl/login'} When debuging the the javascript the reply is null but I can't seem to find why this is. Does anyone have any idea why this stopped working? Thanks, Joost [1] part of my ComponentRequestFilter: public void handleComponentEvent(ComponentEventRequestParameters parameters, ComponentRequestHandler handler) throws IOException { ... String loginPage = componentClassResolver.resolvePageClassNameToPageName(logonService.getLogonPage().getName()); event = new ComponentEventRequestParameters(loginPage, loginPage, "", EventConstants.ACTIVATE, emptyEventContext, emptyEventContext); ... handler.handleComponentEvent(event); } } - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Pentaho Reporting integration - SOLVED
Hi I had the same problem but with ETL integration and i solved in the same way that you. There are a lot of jars to add, but it works too. Thanks! David 2011/5/27 atcach > Had to manually include every file from the pentaho's artifactory and that > worked ok. > Regards > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Pentaho-Reporting-integration-tp4419907p4431642.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: Pentaho Reporting integration - SOLVED
Had to manually include every file from the pentaho's artifactory and that worked ok. Regards -- View this message in context: http://tapestry.1045711.n5.nabble.com/Pentaho-Reporting-integration-tp4419907p4431642.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 ignore @Cache annotation while calling a method?
Take a look at the watch argument for @Cache annotation. On Thu, May 26, 2011 at 11:29 PM, Ashutosh Dash wrote: > How to ignore @Cache annotation while calling a method? > Actually I have method say "method1()" with @Cache annotated. and this method > is calling from diffrent area from my application. > > My requirement is that, while this "method1()" will call from only > "method2()", the @cache annotation should ignored. > > Is is possible in T5 ? > > > > ::DISCLAIMER:: > --- > > The contents of this e-mail and any attachment(s) are confidential and > intended for the named recipient(s) only. > It shall not attach any liability on the originator or HCL or its affiliates. > Any views or opinions presented in > this email are solely those of the author and may not necessarily reflect the > opinions of HCL or its affiliates. > Any form of reproduction, dissemination, copying, disclosure, modification, > distribution and / or publication of > this message without the prior written consent of the author of this e-mail > is strictly prohibited. If you have > received this email in error please delete it and notify the sender > immediately. Before opening any mail and > attachments please check them for viruses and defect. > > --- > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: datefield - no option to cancel?
Ok, done. -- View this message in context: http://tapestry.1045711.n5.nabble.com/datefield-no-option-to-cancel-tp463p4431585.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: datefield - no option to cancel?
I would suggest attaching your code to one of those JIRA issues mentioned. Bob Harner On May 27, 2011 2:52 AM, "antalk" wrote: