Re: Error after logout
Thank you very much for your help! Marek 2011/2/17 Kalle Korhonen > You are logging out the Subject, right? See this (from > > http://svn.codehaus.org/tynamo/trunk/tynamo-example-federatedaccounts/src/main/java/org/tynamo/examples/federatedaccounts/pages/Index.java > ): >Object onActionFromLogout() { >// Need to call this explicitly to invoke onlogout handlers > (for > remember me etc.) >SecurityUtils.getSubject().logout(); >try { >// the session is already invalidated, but need to > cause an > exception since tapestry doesn't know about it >// and you'll get a container exception message > instead without > this. Unfortunately, there's no way of >// configuring Shiro to not invalidate sessions > right now. See > DefaultSecurityManager.logout() >// There's a similar issues in Tapestry - Howard has > fixed, but no > in T5.2.x releases yet >request.getSession(false).invalidate(); >} catch (Exception e) { >} > >return this; >} > > I don't have the Tapestry issue at hand. Perhaps try with 5.3-SNAPSHOT > first without other changes if that's an option. > > Kalle > > > On Thu, Feb 17, 2011 at 7:59 AM, Marek Matus > wrote: > > Hi all, > > > > I have application with tomcat 7.0.4, tapestry 5.2.4, tynamo security > > 0.3.0. Sometimes after logout I receise this error - see bellow. > > Could you give me advice what could be wrong? > > > > Thanks, > > > > Marek > > > > HTTP Status 500 - > > -- > > > > *type* Exception report > > > > *message* > > > > *description* *The server encountered an internal error () that prevented > it > > from fulfilling this request.* > > > > *exception* > > > > java.io.IOException: Filtered request failed. > > > > org.tynamo.security.filter.SecurityRequestFilter.service(SecurityRequestFilter.java:174) > > > > $HttpServletRequestFilter_12e33dd15c1.service($HttpServletRequestFilter_12e33dd15c1.java) > > > > $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) > > > > org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:928) > > > > $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) > > > > $HttpServletRequestHandler_12e33dd15bc.service($HttpServletRequestHandler_12e33dd15bc.java) > > > com.b2bcentrum.mks.t5.services.MKSFilter.doFilter(MKSFilter.java:114) > > > > com.b2bcentrum.mks.t5.services.ServiceHolderFilter.doFilter(ServiceHolderFilter.java:58) > > > > *root cause* > > > > javax.servlet.ServletException: Filtered request failed. > > > > org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:294) > > > > org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) > > > > org.tynamo.security.filter.SecurityRequestFilter.service(SecurityRequestFilter.java:164) > > > > $HttpServletRequestFilter_12e33dd15c1.service($HttpServletRequestFilter_12e33dd15c1.java) > > > > $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) > > > > org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:928) > > > > $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) > > > > $HttpServletRequestHandler_12e33dd15bc.service($HttpServletRequestHandler_12e33dd15bc.java) > > > com.b2bcentrum.mks.t5.services.MKSFilter.doFilter(MKSFilter.java:114) > > > > com.b2bcentrum.mks.t5.services.ServiceHolderFilter.doFilter(ServiceHolderFilter.java:58) > > > > *root cause* > > > > java.lang.IllegalStateException: removeAttribute: Session already > invalidated > > > > org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1311) > > > > org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1286) > > > > org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1391) > > > > org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1362) > > > > org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:142) > > > > org.apache.tapestry5.internal.services.SessionImpl.restoreDirtyObjects(SessionImpl.java:135) > > > > org.apache.tapestry5.internal.services.RestoreDirtySessionObjects.requestDidComplete(RestoreDirtySessionObjects.java:38) > > > > org.apache.tapestry5.internal.services.EndOfRequestEventHubImpl.fire(EndOfRequestEventHubImpl.java:40) > > > > $EndOfRequestEventHub_12e33dd15a5.fire($EndOfRequestEventHub_12e33dd15a5.java) > > > > org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:988) > > > $RequestHandler_12e33dd15d0.service($RequestHandler_12e33dd15d0.java) > > > > org.apache.tapestry5.services.TapestryM
Re: Render informal parameters into element(s) of a component's template
Thanks, just run into the same. What a surprising use case for the trigger component. Perhaps a hack, but feels right :) This would deserve a spot somewhere in the documentation. Kalle On Fri, Jan 14, 2011 at 3:10 AM, nille hammer wrote: > > Hi List, > > I have just stepped into the same problem as the original poster of this > thread: > http://tapestry.markmail.org/message/ma3wvd6rk4fm56hr?q=SupportsInformalParameters#query:SupportsInformalParameters+page:1+mid:3ma5dlzcmvjjyoit+state:results > > I found the solution described by Josh Canfield a bit complicated and came up > with an easier one by using the Trigger component. > > Template of a page/component, where u use "MyComponent" (style is the > informal parameter here): > ... > > ... > > Java class of MyComponent > > ... > @SupportsInformalParameters > public class MyComponent { > > @Inject > private ComponentResources resources; > > /** > * This method will be called by the Trigger component in MyComponent's > template. > */ > @OnEvent("renderInformals") > final void renderInformals(final MarkupWriter writer) { > /* Will render informal parameters into the current element of writer. > * You chose which one that is by putting a Trigger component right after > * the element you want your informal parameters rendered into. > */ > this.resources.renderInformalParameters(writer); > } > ... > > Put the following into MyComponent's template right after the element that > you want your informal parameters rendered into. You can even use it several > times not just once: > > > Regards nillehammer > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
[CK-1.3.2] Window component problem
Hi! I'm building an app with T5.2.4 and wanna use ChenilleKit for some magic. Unfortunately I cannot show the window component as it was in the demo of CK: click here to show window I discovered that I could use $T('window1').ck_window.showCenter(true) instead. This looks more geeky - so it would be OK, but $T is deprecated already. I wonder if I miss some JS somehow... Thanks in advance! Sandor Irlanda
Re: 10 Minute Web Application Demo
I spend a lot of time when teaching Tapestry getting people to do One Small Step at a time. Everyone feels the need to jump from a blank page to the final solution in one go, and that's really hard. I do a lot of "placeholder goes here", then do a series of refinements. That's how I work on real projects as well, not just tutorials and demos. On Thu, Feb 17, 2011 at 6:39 AM, Inge Solvoll wrote: > Nice work, Mark! > > I have some feedback for you here: > > Tapestry is great because it enables me to work tiny iterations. These tiny > iteratinos are enabled by live reloading and excellent error reporting. I > use this to work in a TDD way (without actually doing TDD), adding one bit > at a time and verifying its behaviour in the browser before continuing. > Being used to that, I was a bit overwhelmed by your speed in this tutorial, > adding lots of things before reloading in the browser. That approach might > work very well for you, but probably not for beginners. > > I believe a lot of people out there are used to quite long development > cycles. They are used to coding lots of lines before restarting the server > and checking the GUI. Upon arrival in the T5 world, it might be hard to > adjust quickly. Sure, everyone loves live class reloading and it works > instantly. But do they understand how to get the full power out of it? I'll > give a (hopefully understandable) example: If you ask your grandmother to > send you an email, she might print it, put it in an envelope and go for a > walk to the post office. Not what you intended when you provided her with > the very effective tools necessary :) > > Don't get me wrong, I love this tutorial! Just wanted to write a few words > about how I feel T5 could gain more popularity. Highly efficient tools > aren't enought, we should also focus on showing a set of simple and > simplifying techniques that makes it very hard to fail and very much fun to > be a T5 programmer. Also for newbies :) > > On Thu, Feb 17, 2011 at 9:46 AM, Peter Stavrinides < > p.stavrini...@albourne.com> wrote: > >> :) Excellent Mark! I know the feeling... does she also give the blank >> expression? >> >> - Original Message - >> From: "Mark" >> To: "Tapestry users" >> Sent: Wednesday, 16 February, 2011 23:25:47 GMT +02:00 Athens, Beirut, >> Bucharest, Istanbul >> Subject: Re: 10 Minute Web Application Demo >> >> I keep showing my wife, but she doesn't ever seem to get very excited >> about it. :) >> >> On Wed, Feb 16, 2011 at 2:27 PM, Michael Gentry >> wrote: >> > Sure, but I don't general show people Tapestry 5 at home. I'll bet >> > most of us don't do that, either. :-) >> > >> > mrg >> > >> > >> > On Wed, Feb 16, 2011 at 2:28 PM, Christian Riedel >> > wrote: >> >> don't you have internet at home? :p >> >> >> >> >> >> Am 16.02.2011 um 19:54 schrieb Michael Gentry: >> >> >> >>> That's not an option for some of us, either. :-) >> >>> >> >>> >> >>> On Wed, Feb 16, 2011 at 1:48 PM, Lenny Primak >> wrote: >> That's what the your mobile device is for :) >> >> On Feb 16, 2011, at 1:47 PM, Michael Gentry wrote: >> >> > Hi Mark, >> > >> > Keep in mind that a lot of companies block YouTube access (and other >> > media sites), so putting it on YouTube might actually restrict access >> > more than you intended. >> > >> > mrg >> >> >> - >> 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 >> >>> >> >> >> >> >> >> - >> >> 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 >> > >> > >> >> - >> 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 >> >> > -- 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 ---
Re: Class Transformation
On Thu, 17 Feb 2011 14:11:39 -0200, Taha Hafeez wrote: Can I do it in Javassist. You'd need to ensure your Javassist-changed class version is the only one used in your application. This is probably quite hard to do. If I needed to something like you want, I'd study how Projet Lombok works. -- 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
Re: Error after logout
You are logging out the Subject, right? See this (from http://svn.codehaus.org/tynamo/trunk/tynamo-example-federatedaccounts/src/main/java/org/tynamo/examples/federatedaccounts/pages/Index.java): Object onActionFromLogout() { // Need to call this explicitly to invoke onlogout handlers (for remember me etc.) SecurityUtils.getSubject().logout(); try { // the session is already invalidated, but need to cause an exception since tapestry doesn't know about it // and you'll get a container exception message instead without this. Unfortunately, there's no way of // configuring Shiro to not invalidate sessions right now. See DefaultSecurityManager.logout() // There's a similar issues in Tapestry - Howard has fixed, but no in T5.2.x releases yet request.getSession(false).invalidate(); } catch (Exception e) { } return this; } I don't have the Tapestry issue at hand. Perhaps try with 5.3-SNAPSHOT first without other changes if that's an option. Kalle On Thu, Feb 17, 2011 at 7:59 AM, Marek Matus wrote: > Hi all, > > I have application with tomcat 7.0.4, tapestry 5.2.4, tynamo security > 0.3.0. Sometimes after logout I receise this error - see bellow. > Could you give me advice what could be wrong? > > Thanks, > > Marek > > HTTP Status 500 - > -- > > *type* Exception report > > *message* > > *description* *The server encountered an internal error () that prevented it > from fulfilling this request.* > > *exception* > > java.io.IOException: Filtered request failed. > > org.tynamo.security.filter.SecurityRequestFilter.service(SecurityRequestFilter.java:174) > > $HttpServletRequestFilter_12e33dd15c1.service($HttpServletRequestFilter_12e33dd15c1.java) > > $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) > > org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:928) > > $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) > > $HttpServletRequestHandler_12e33dd15bc.service($HttpServletRequestHandler_12e33dd15bc.java) > com.b2bcentrum.mks.t5.services.MKSFilter.doFilter(MKSFilter.java:114) > > com.b2bcentrum.mks.t5.services.ServiceHolderFilter.doFilter(ServiceHolderFilter.java:58) > > *root cause* > > javax.servlet.ServletException: Filtered request failed. > > org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:294) > > org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) > > org.tynamo.security.filter.SecurityRequestFilter.service(SecurityRequestFilter.java:164) > > $HttpServletRequestFilter_12e33dd15c1.service($HttpServletRequestFilter_12e33dd15c1.java) > > $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) > > org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:928) > > $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) > > $HttpServletRequestHandler_12e33dd15bc.service($HttpServletRequestHandler_12e33dd15bc.java) > com.b2bcentrum.mks.t5.services.MKSFilter.doFilter(MKSFilter.java:114) > > com.b2bcentrum.mks.t5.services.ServiceHolderFilter.doFilter(ServiceHolderFilter.java:58) > > *root cause* > > java.lang.IllegalStateException: removeAttribute: Session already invalidated > > org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1311) > > org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1286) > > org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1391) > > org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1362) > > org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:142) > > org.apache.tapestry5.internal.services.SessionImpl.restoreDirtyObjects(SessionImpl.java:135) > > org.apache.tapestry5.internal.services.RestoreDirtySessionObjects.requestDidComplete(RestoreDirtySessionObjects.java:38) > > org.apache.tapestry5.internal.services.EndOfRequestEventHubImpl.fire(EndOfRequestEventHubImpl.java:40) > > $EndOfRequestEventHub_12e33dd15a5.fire($EndOfRequestEventHub_12e33dd15a5.java) > > org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:988) > $RequestHandler_12e33dd15d0.service($RequestHandler_12e33dd15d0.java) > > org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:974) > $RequestHandler_12e33dd15d0.service($RequestHandler_12e33dd15d0.java) >
Re: Error after logout
The problem here is the session somehow being accessed after invalidate() is called. Maybe you tried to set an @Persist'd variable or something, and the actual change didn't propagate until after you called invalidate(). I do my invalidate in an ajax request. The other solution is to call invalidate in a filter, so it always ends up after any session altering code. -- View this message in context: http://tapestry-users.832.n2.nabble.com/Error-after-logout-tp6036478p6036628.html Sent from the Tapestry Users 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: Class Transformation
We did use envers in one of our projects but it makes creating auditing reports a project in itself. Besides the auditing is not of our liking. We, being a financial organization, have to audit every thing and having so many audit tables around is just too much. Also there is less control over the amount of auditing. Also we have a maker-checker concept and implementing it needs some audit data in the domain classes.. Can I do it in Javassist. I know tapestry5 will be migrating to plastic but then I can also make upgrades to my application later. I have a slight idea Something like for(String className: classNameLocator.locateClassNames(packageName)){ CtClass ctClass = classFactoryClassPool.get(className); //Do whatever using javasssist } Am I on the right path ? I will checkout lombok regards Taha On Thu, Feb 17, 2011 at 9:23 PM, Kalle Korhonen wrote: > On Thu, Feb 17, 2011 at 7:15 AM, Taha Hafeez > wrote: > > Back to the question. What I really want to do is provide an @Auditable > > annotation on my domain classes and then add some fields/methods at the > time > > of loading the classes. > > Are you sure that adding the auditing data directly to your domain > classes is a good idea? Just asking whether you've considered the > trade-offs. > > If you are using Hibernate, see > http://docs.jboss.org/envers/docs/index.html. > > Kalle > > > > On Thu, Feb 17, 2011 at 8:12 PM, Thiago H. de Paula Figueiredo < > > thiag...@gmail.com> wrote: > > > >> On Thu, 17 Feb 2011 11:33:35 -0200, Taha Hafeez < > tawus.tapes...@gmail.com> > >> wrote: > >> > >> Hi > >>> > >> > >> Hi! > >> > >> There is internal support for creating new classes in tapestry ioc > using > >>> ClassFactory/ClassFab. > >>> > >> > >> They're going to be deprecated soon and remved in the future. The > >> replacement will be Howard's Plastic package: > >> https://github.com/hlship/plastic. > >> > >> -- > >> 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 > >
Re: 10 Minute Web Application Demo
THanks for the suggestion. I was thinking about doing the same demo program again, but this time spending more time explaining what is going on. It would be much longer though, so I wasn't sure if people would actually watch it. :) Mark On Thu, Feb 17, 2011 at 8:39 AM, Inge Solvoll wrote: > Nice work, Mark! > > I have some feedback for you here: > > Tapestry is great because it enables me to work tiny iterations. These tiny > iteratinos are enabled by live reloading and excellent error reporting. I > use this to work in a TDD way (without actually doing TDD), adding one bit > at a time and verifying its behaviour in the browser before continuing. > Being used to that, I was a bit overwhelmed by your speed in this tutorial, > adding lots of things before reloading in the browser. That approach might > work very well for you, but probably not for beginners. > > I believe a lot of people out there are used to quite long development > cycles. They are used to coding lots of lines before restarting the server > and checking the GUI. Upon arrival in the T5 world, it might be hard to > adjust quickly. Sure, everyone loves live class reloading and it works > instantly. But do they understand how to get the full power out of it? I'll > give a (hopefully understandable) example: If you ask your grandmother to > send you an email, she might print it, put it in an envelope and go for a > walk to the post office. Not what you intended when you provided her with > the very effective tools necessary :) > > Don't get me wrong, I love this tutorial! Just wanted to write a few words > about how I feel T5 could gain more popularity. Highly efficient tools > aren't enought, we should also focus on showing a set of simple and > simplifying techniques that makes it very hard to fail and very much fun to > be a T5 programmer. Also for newbies :) > > On Thu, Feb 17, 2011 at 9:46 AM, Peter Stavrinides < > p.stavrini...@albourne.com> wrote: > >> :) Excellent Mark! I know the feeling... does she also give the blank >> expression? >> >> - Original Message - >> From: "Mark" >> To: "Tapestry users" >> Sent: Wednesday, 16 February, 2011 23:25:47 GMT +02:00 Athens, Beirut, >> Bucharest, Istanbul >> Subject: Re: 10 Minute Web Application Demo >> >> I keep showing my wife, but she doesn't ever seem to get very excited >> about it. :) >> >> On Wed, Feb 16, 2011 at 2:27 PM, Michael Gentry >> wrote: >> > Sure, but I don't general show people Tapestry 5 at home. I'll bet >> > most of us don't do that, either. :-) >> > >> > mrg >> > >> > >> > On Wed, Feb 16, 2011 at 2:28 PM, Christian Riedel >> > wrote: >> >> don't you have internet at home? :p >> >> >> >> >> >> Am 16.02.2011 um 19:54 schrieb Michael Gentry: >> >> >> >>> That's not an option for some of us, either. :-) >> >>> >> >>> >> >>> On Wed, Feb 16, 2011 at 1:48 PM, Lenny Primak >> wrote: >> That's what the your mobile device is for :) >> >> On Feb 16, 2011, at 1:47 PM, Michael Gentry wrote: >> >> > Hi Mark, >> > >> > Keep in mind that a lot of companies block YouTube access (and other >> > media sites), so putting it on YouTube might actually restrict access >> > more than you intended. >> > >> > mrg >> >> >> - >> 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 >> >>> >> >> >> >> >> >> - >> >> 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 >> > >> > >> >> - >> 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 >> >> > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Error after logout
Hi all, I have application with tomcat 7.0.4, tapestry 5.2.4, tynamo security 0.3.0. Sometimes after logout I receise this error - see bellow. Could you give me advice what could be wrong? Thanks, Marek HTTP Status 500 - -- *type* Exception report *message* *description* *The server encountered an internal error () that prevented it from fulfilling this request.* *exception* java.io.IOException: Filtered request failed. org.tynamo.security.filter.SecurityRequestFilter.service(SecurityRequestFilter.java:174) $HttpServletRequestFilter_12e33dd15c1.service($HttpServletRequestFilter_12e33dd15c1.java) $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:928) $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) $HttpServletRequestHandler_12e33dd15bc.service($HttpServletRequestHandler_12e33dd15bc.java) com.b2bcentrum.mks.t5.services.MKSFilter.doFilter(MKSFilter.java:114) com.b2bcentrum.mks.t5.services.ServiceHolderFilter.doFilter(ServiceHolderFilter.java:58) *root cause* javax.servlet.ServletException: Filtered request failed. org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:294) org.apache.shiro.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:81) org.tynamo.security.filter.SecurityRequestFilter.service(SecurityRequestFilter.java:164) $HttpServletRequestFilter_12e33dd15c1.service($HttpServletRequestFilter_12e33dd15c1.java) $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) org.apache.tapestry5.services.TapestryModule$2.service(TapestryModule.java:928) $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) $HttpServletRequestHandler_12e33dd15bc.service($HttpServletRequestHandler_12e33dd15bc.java) com.b2bcentrum.mks.t5.services.MKSFilter.doFilter(MKSFilter.java:114) com.b2bcentrum.mks.t5.services.ServiceHolderFilter.doFilter(ServiceHolderFilter.java:58) *root cause* java.lang.IllegalStateException: removeAttribute: Session already invalidated org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1311) org.apache.catalina.session.StandardSession.removeAttribute(StandardSession.java:1286) org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1391) org.apache.catalina.session.StandardSession.setAttribute(StandardSession.java:1362) org.apache.catalina.session.StandardSessionFacade.setAttribute(StandardSessionFacade.java:142) org.apache.tapestry5.internal.services.SessionImpl.restoreDirtyObjects(SessionImpl.java:135) org.apache.tapestry5.internal.services.RestoreDirtySessionObjects.requestDidComplete(RestoreDirtySessionObjects.java:38) org.apache.tapestry5.internal.services.EndOfRequestEventHubImpl.fire(EndOfRequestEventHubImpl.java:40) $EndOfRequestEventHub_12e33dd15a5.fire($EndOfRequestEventHub_12e33dd15a5.java) org.apache.tapestry5.services.TapestryModule$4.service(TapestryModule.java:988) $RequestHandler_12e33dd15d0.service($RequestHandler_12e33dd15d0.java) org.apache.tapestry5.services.TapestryModule$3.service(TapestryModule.java:974) $RequestHandler_12e33dd15d0.service($RequestHandler_12e33dd15d0.java) org.apache.tapestry5.internal.services.StaticFilesFilter.service(StaticFilesFilter.java:90) $RequestHandler_12e33dd15d0.service($RequestHandler_12e33dd15d0.java) org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:90) org.apache.tapestry5.internal.services.CheckForUpdatesFilter$2.invoke(CheckForUpdatesFilter.java:80) org.apache.tapestry5.ioc.internal.util.ConcurrentBarrier.withRead(ConcurrentBarrier.java:85) org.apache.tapestry5.internal.services.CheckForUpdatesFilter.service(CheckForUpdatesFilter.java:103) $RequestHandler_12e33dd15d0.service($RequestHandler_12e33dd15d0.java) $RequestHandler_12e33dd15c3.service($RequestHandler_12e33dd15c3.java) org.apache.tapestry5.services.TapestryModule$HttpServletRequestHandlerTerminator.service(TapestryModule.java:272) org.apache.tapestry5.upload.internal.services.MultipartServletRequestFilter.service(MultipartServletRequestFilter.java:44) $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHandler_12e33dd15c5.java) org.tynamo.resteasy.ResteasyRequestFilter.service(ResteasyRequestFilter.java:71) $HttpServletRequestFilter_12e33dd15c0.service($HttpServletRequestFilter_12e33dd15c0.java) $HttpServletRequestHandler_12e33dd15c5.service($HttpServletRequestHand
Re: Class Transformation
On Thu, Feb 17, 2011 at 7:15 AM, Taha Hafeez wrote: > Back to the question. What I really want to do is provide an @Auditable > annotation on my domain classes and then add some fields/methods at the time > of loading the classes. Are you sure that adding the auditing data directly to your domain classes is a good idea? Just asking whether you've considered the trade-offs. If you are using Hibernate, see http://docs.jboss.org/envers/docs/index.html. Kalle > On Thu, Feb 17, 2011 at 8:12 PM, Thiago H. de Paula Figueiredo < > thiag...@gmail.com> wrote: > >> On Thu, 17 Feb 2011 11:33:35 -0200, Taha Hafeez >> wrote: >> >> Hi >>> >> >> Hi! >> >> There is internal support for creating new classes in tapestry ioc using >>> ClassFactory/ClassFab. >>> >> >> They're going to be deprecated soon and remved in the future. The >> replacement will be Howard's Plastic package: >> https://github.com/hlship/plastic. >> >> -- >> 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
Re: Class Transformation
+1 Lombok. It is awesome and I've used it for some time. On Feb 17, 2011, at 10:38 AM, "Thiago H. de Paula Figueiredo" wrote: > On Thu, 17 Feb 2011 13:15:01 -0200, Taha Hafeez > wrote: > >> Back to the question. What I really want to do is provide an @Auditable >> annotation on my domain classes and then add some fields/methods at the time >> of loading the classes. > > Tapestry-IoC doesn't change classes at all. It just creates proxies around > existing objects. I guess you need to look at at the Project Lombok (very, > very insteresting package, by the way) for some insipiration: > http://projectlombok.org/. > > -- > 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 > - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org
Re: Class Transformation
On Thu, 17 Feb 2011 13:15:01 -0200, Taha Hafeez wrote: Back to the question. What I really want to do is provide an @Auditable annotation on my domain classes and then add some fields/methods at the time of loading the classes. Tapestry-IoC doesn't change classes at all. It just creates proxies around existing objects. I guess you need to look at at the Project Lombok (very, very insteresting package, by the way) for some insipiration: http://projectlombok.org/. -- 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
Re: Class Transformation
I know a bit of asm and I am really looking forward to browse its code but I am too busy with migrating our internal wicket applications to Tapestry5. We are also planning to replace front-end of Finacle from jsp to tapestry5. Back to the question. What I really want to do is provide an @Auditable annotation on my domain classes and then add some fields/methods at the time of loading the classes. regards Taha On Thu, Feb 17, 2011 at 8:12 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 17 Feb 2011 11:33:35 -0200, Taha Hafeez > wrote: > > Hi >> > > Hi! > > There is internal support for creating new classes in tapestry ioc using >> ClassFactory/ClassFab. >> > > They're going to be deprecated soon and remved in the future. The > replacement will be Howard's Plastic package: > https://github.com/hlship/plastic. > > -- > 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 >
Re: T5 : Zone / Tapestry.windowUnloaded / Download link
Yes, we've experienced same problem and resorted to use target="_blank" as we didn't have the time to come up with something more creative. A better solution would be welcomed though :) On Thu, Feb 17, 2011 at 3:05 PM, Richard Kolísek wrote: > > same problem here > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/T5-Zone-Tapestry-windowUnloaded-Download-link-tp2436863p3389487.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: Tapestry 5 - cache issue when accessed via proxy
Yes, difficult to diagnose with only this information. I can only suggest the obvious: check both proxy server logs and your servlet container logs to make sure the request is being received and forwarded correctly. Check what parameters/search queries is being actually passed into your tapestry app. Check what queries/parameters are being passed to your db or index or other data store. Do you have any db or indexing caching layer? And finally check what you are caching in tapestry itself - e.g @Persist'd fields, SSOs etc. R. On Thu, 2011-02-17 at 06:21 -0800, Josh Canfield wrote: > You haven't given us a lot to work with so I'll speculate that you're app > doesn't keep the search parameters in the URL after the redirect-after-post > so the browser is always fetching the same url. > > Have you tried looking at the proxy logs to see what its doing? > On Feb 16, 2011 11:17 PM, "sunmoor007" wrote: > > > > Hello All > > > > We have developed a web application using Tapestry 5. We are facing a > > caching issue when we try to access the application via a proxy. When we > > access the application directly i.e without going via a proxy server, > > everything is working fine. > > > > when we access via proxy we are seeing this problem. A simple example is a > > search screen. We first seach using a criteria and appilcation returned a > > result. Later when we search using a different criteria we are seeing the > > old entries in page. When we do a refresh or CTRL f5 manually, we are > seeing > > the updated values. > > > > Is there any solution or workaround to this problem from Tapestry 5 point > of > > view. Would really appreciate if you can help on this. > > > > thanks > > Sundar > > -- > > View this message in context: > http://tapestry.1045711.n5.nabble.com/Tapestry-5-cache-issue-when-accessed-via-proxy-tp3388994p3388994.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: Class Transformation
On Thu, 17 Feb 2011 11:33:35 -0200, Taha Hafeez wrote: Hi Hi! There is internal support for creating new classes in tapestry ioc using ClassFactory/ClassFab. They're going to be deprecated soon and remved in the future. The replacement will be Howard's Plastic package: https://github.com/hlship/plastic. -- 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
Re: 10 Minute Web Application Demo
Nice work, Mark! I have some feedback for you here: Tapestry is great because it enables me to work tiny iterations. These tiny iteratinos are enabled by live reloading and excellent error reporting. I use this to work in a TDD way (without actually doing TDD), adding one bit at a time and verifying its behaviour in the browser before continuing. Being used to that, I was a bit overwhelmed by your speed in this tutorial, adding lots of things before reloading in the browser. That approach might work very well for you, but probably not for beginners. I believe a lot of people out there are used to quite long development cycles. They are used to coding lots of lines before restarting the server and checking the GUI. Upon arrival in the T5 world, it might be hard to adjust quickly. Sure, everyone loves live class reloading and it works instantly. But do they understand how to get the full power out of it? I'll give a (hopefully understandable) example: If you ask your grandmother to send you an email, she might print it, put it in an envelope and go for a walk to the post office. Not what you intended when you provided her with the very effective tools necessary :) Don't get me wrong, I love this tutorial! Just wanted to write a few words about how I feel T5 could gain more popularity. Highly efficient tools aren't enought, we should also focus on showing a set of simple and simplifying techniques that makes it very hard to fail and very much fun to be a T5 programmer. Also for newbies :) On Thu, Feb 17, 2011 at 9:46 AM, Peter Stavrinides < p.stavrini...@albourne.com> wrote: > :) Excellent Mark! I know the feeling... does she also give the blank > expression? > > - Original Message - > From: "Mark" > To: "Tapestry users" > Sent: Wednesday, 16 February, 2011 23:25:47 GMT +02:00 Athens, Beirut, > Bucharest, Istanbul > Subject: Re: 10 Minute Web Application Demo > > I keep showing my wife, but she doesn't ever seem to get very excited > about it. :) > > On Wed, Feb 16, 2011 at 2:27 PM, Michael Gentry > wrote: > > Sure, but I don't general show people Tapestry 5 at home. I'll bet > > most of us don't do that, either. :-) > > > > mrg > > > > > > On Wed, Feb 16, 2011 at 2:28 PM, Christian Riedel > > wrote: > >> don't you have internet at home? :p > >> > >> > >> Am 16.02.2011 um 19:54 schrieb Michael Gentry: > >> > >>> That's not an option for some of us, either. :-) > >>> > >>> > >>> On Wed, Feb 16, 2011 at 1:48 PM, Lenny Primak > wrote: > That's what the your mobile device is for :) > > On Feb 16, 2011, at 1:47 PM, Michael Gentry wrote: > > > Hi Mark, > > > > Keep in mind that a lot of companies block YouTube access (and other > > media sites), so putting it on YouTube might actually restrict access > > more than you intended. > > > > mrg > > > - > 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 > >>> > >> > >> > >> - > >> 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 > > > > > > - > 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: Tapestry 5 - cache issue when accessed via proxy
You haven't given us a lot to work with so I'll speculate that you're app doesn't keep the search parameters in the URL after the redirect-after-post so the browser is always fetching the same url. Have you tried looking at the proxy logs to see what its doing? On Feb 16, 2011 11:17 PM, "sunmoor007" wrote: > > Hello All > > We have developed a web application using Tapestry 5. We are facing a > caching issue when we try to access the application via a proxy. When we > access the application directly i.e without going via a proxy server, > everything is working fine. > > when we access via proxy we are seeing this problem. A simple example is a > search screen. We first seach using a criteria and appilcation returned a > result. Later when we search using a different criteria we are seeing the > old entries in page. When we do a refresh or CTRL f5 manually, we are seeing > the updated values. > > Is there any solution or workaround to this problem from Tapestry 5 point of > view. Would really appreciate if you can help on this. > > thanks > Sundar > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/Tapestry-5-cache-issue-when-accessed-via-proxy-tp3388994p3388994.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 : Zone / Tapestry.windowUnloaded / Download link
same problem here -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Zone-Tapestry-windowUnloaded-Download-link-tp2436863p3389487.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
Class Transformation
Hi There is internal support for creating new classes in tapestry ioc using ClassFactory/ClassFab. What if I have to modify an existing class say add methods/fields or do I have to go for javassist directly regards Taha
Re: T5: onActivate called before onSuccessFrom
Hello guys, What about I have something like this: Object onActivate() { condition = service.findSomething(); return (condition == null) ? OtherPage.class : null; } Thanks. Alessandro Badin -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-onActivate-called-before-onSuccessFrom-tp2430026p3389328.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: 10 Minute Web Application Demo
:) Excellent Mark! I know the feeling... does she also give the blank expression? - Original Message - From: "Mark" To: "Tapestry users" Sent: Wednesday, 16 February, 2011 23:25:47 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: Re: 10 Minute Web Application Demo I keep showing my wife, but she doesn't ever seem to get very excited about it. :) On Wed, Feb 16, 2011 at 2:27 PM, Michael Gentry wrote: > Sure, but I don't general show people Tapestry 5 at home. I'll bet > most of us don't do that, either. :-) > > mrg > > > On Wed, Feb 16, 2011 at 2:28 PM, Christian Riedel > wrote: >> don't you have internet at home? :p >> >> >> Am 16.02.2011 um 19:54 schrieb Michael Gentry: >> >>> That's not an option for some of us, either. :-) >>> >>> >>> On Wed, Feb 16, 2011 at 1:48 PM, Lenny Primak >>> wrote: That's what the your mobile device is for :) On Feb 16, 2011, at 1:47 PM, Michael Gentry wrote: > Hi Mark, > > Keep in mind that a lot of companies block YouTube access (and other > media sites), so putting it on YouTube might actually restrict access > more than you intended. > > mrg - 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 >>> >> >> >> - >> 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 > > - 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