Re: Appropriate use of ProgressiveDisplay?

2012-08-17 Thread Ray Nicholus
The best approach here was probably not to copy the source of ProgressiveDisplay and make some odd modifications to it. You haven't described a specific case you need to account for here. If, for example, you wanted to display some sort of a waiting modal box, you could show it after a button is p

Re: redirecting in the same page class

2012-08-17 Thread Angelo C.
could have been nice if setAnchor returns Link instead of void so we can have: return renderLinkSource.createPageRenderLinkWithContext(MyClass.class, code).setAnchor(entry) Howard Lewis Ship wrote > > The Link object already has a setAnchor() method. It's called OO > Design, people :-) > > >

Re: redirecting in the same page class

2012-08-17 Thread Angelo C.
cool, most of time t5 already got something ahead of my poor imagination, thanks. Howard Lewis Ship wrote > > The Link object already has a setAnchor() method. It's called OO > Design, people :-) > > Also note that the server *never sees* the anchor; that stays on the > client and is not part

Re: tapestry by JEE standard

2012-08-17 Thread Jay Ginete
I have always thought that Tapestry5 was classified as a "Compontent-oriented" web framework and not as "MVC" web framework. I tend to think that each page in a Tapestry5 app is a single stand alone app that has components within it that respond to events. I even sometimes think of Tapestry5 ap

Re: Appropriate use of ProgressiveDisplay?

2012-08-17 Thread George Ludwig
ProgressiveDisplay does almost exactly what I need, with a small exception. On the same page, some actionlinks should trigger it, while others should not. So today I hacked it to work the way I wanted...I'd appreciate it if someone can tell me if I did something monumentally stupid! I copied Progr

Re: tapestry by JEE standard

2012-08-17 Thread Thiago H de Paula Figueiredo
On Fri, 17 Aug 2012 16:30:06 -0300, Lodorvonhal wrote: distributed systems have a particular architecture. Web applications can be classified according to the MVC-pattern. I know how that looks in Tapestry. Tapestry implements MVC: pages and components classes are the C, V are their te

Re: tapestry by JEE standard

2012-08-17 Thread Lodorvonhal
distributed systems have a particular architecture. Web applications can be classified according to the MVC-pattern. I know how that looks in Tapestry. my professor wants a classification by fat-clint or fat-server. The structure of an application. I guess that is not express this in just a few a

Re: tapestry by JEE standard

2012-08-17 Thread Michael Prescott
When you say classification, what do you mean? On 17 August 2012 14:50, Lodorvonhal wrote: > many thanks @ all for the reply. > I know that tapestry is a web framework. I meant the classification of the > finished application. I think you have helped me already. many thanks. > > I try to describ

Re: tapestry by JEE standard

2012-08-17 Thread Lodorvonhal
many thanks @ all for the reply. I know that tapestry is a web framework. I meant the classification of the finished application. I think you have helped me already. many thanks. I try to describe a little bit. Let's see what my professor says. :) I am not a theorist. My Tapestry application is

Re: tapestry by JEE standard

2012-08-17 Thread Thiago H de Paula Figueiredo
On Fri, 17 Aug 2012 12:41:10 -0300, Lodorvonhal wrote: I'm currently writing a bachelor thesis about tapestry. Nice! :) Count on us for questions, explanations, etc. ;) I'm trying to classify tapestry by JEE standard. But I can't find any information about it. I'd call it a Java web fra

Re: redirecting in the same page class

2012-08-17 Thread Howard Lewis Ship
The Link object already has a setAnchor() method. It's called OO Design, people :-) Also note that the server *never sees* the anchor; that stays on the client and is not part of the HTTP GET/POST request in any way. It is not accessible. On Fri, Aug 17, 2012 at 7:12 AM, Angelo C. wrote: > righ

Re: tapestry by JEE standard

2012-08-17 Thread tapestry.kung.fu
Best way to start is by spending 25$ and get this book http://www.indiegogo.com/tapestry5book It explains everything you want to know. Tapestry Pages are Singleton. One Instance of Page is used between multiple threads. Page can either save data in application session OR page session. Applicati

Re: tapestry by JEE standard

2012-08-17 Thread Lenny Primak
It's a web framework. You can think of it as a replacement for JSF and to some extent, CDI On Aug 17, 2012, at 10:41 AM, Lodorvonhal wrote: > I'm currently writing a bachelor thesis about tapestry. > I'm trying to classify tapestry by JEE standard. But I can't find any > information about it.

tapestry by JEE standard

2012-08-17 Thread Lodorvonhal
I'm currently writing a bachelor thesis about tapestry. I'm trying to classify tapestry by JEE standard. But I can't find any information about it. A tapestry application is based on the Java-Servlet-API, but unlike servlets tapestry pages are no singletons. Could you please give me information a

Re: redirecting in the same page class

2012-08-17 Thread Angelo C.
right, might be nice if PageRenderLinkSource can add another two methods: createPageRenderLinkWithContextAndAnchor createPageRenderLinkWithAnchor the use case is, say you are converting your app into Backbonejs based, you might like to redirect: /mypage/0001 to /mypage#0001 and you would like t

Re: redirecting in the same page class

2012-08-17 Thread Thiago H de Paula Figueiredo
On Fri, 17 Aug 2012 07:43:27 -0300, Michael Gentry wrote: Hi Angelo, Can't you just have #2 call #1? Something like: Object onActivate((String code, String entry) { this.entry = entry; return onActivate(code); } From Angelo's code, it seemed he needed to add an anchor too, so just

Re: redirecting in the same page class

2012-08-17 Thread Michael Gentry
Hi Angelo, Can't you just have #2 call #1? Something like: Object onActivate((String code, String entry) { this.entry = entry; return onActivate(code); } mrg On Thu, Aug 16, 2012 at 10:29 PM, Angelo C. wrote: > turned out, T5 already has this: > > Link lnk = renderLinkSource.createPageRen

Re: [Sharing] How to setup a Global XSS Filter in Tapestry 5

2012-08-17 Thread Alex Kotchnev
Martin, out of curiosity - why was it necessary to add all of the additional regexes in addition to using ESAPI ? Didn't ESAPI contain the needed APIs to perform the filtering only with it ? Cheers, Alex K On Fri, Aug 17, 2012 at 3:16 AM, kheldar666 wrote: > Hi all, > > I post this as I had

[Sharing] How to setup a Global XSS Filter in Tapestry 5

2012-08-17 Thread kheldar666
Hi all, I post this as I had some headaches finding the proper solution and it seems that nobody posted a similar approach here First step in AppModule.java: public static void bind(ServiceBinder binder) { binder.bind(RequestFilter.class, XSSRequestFilterImpl.class).w

Re: XSS Filter and Erratic Behaviour of Tapestry 5.3.4

2012-08-17 Thread kheldar666
Hi Thiago ! Thanks for the hint ! That helped me a lot ^^ I will post the solution and the Filter as I see many times this question of XSS filter have been asked. Best regards, Martin -- View this message in context: http://tapestry.1045711.n5.nabble.com/XSS-Filter-and-Erratic-Behaviour-of-