Re: Hooks for code on every page request

2009-06-13 Thread Angelo Chen
maybe dispatcher? you can find a related articles in the wiki page for t5. Jason Lotz wrote: > > Are there any standard hooks in the Tapestry framework that I should use > if > I want to process some logic on each page request? The quick-and-dirty > solution for my architecture would be to put

Hooks for code on every page request

2009-06-13 Thread Jason Lotz
Are there any standard hooks in the Tapestry framework that I should use if I want to process some logic on each page request? The quick-and-dirty solution for my architecture would be to put this logic in the layout component as it is called on each page request. However, as this is my first Tap

Re: Switch from Prototype to jQuery?

2009-06-13 Thread Howard Lewis Ship
I see this as a two stage (two major release) process. In release X (say 5.2) we introduce a more complete Tapestry isolation layer and recode Tapestry's internal logic and components to use it. The isolation layer maps to Prototype and includes parallels to the common constructs of Prototype use

Re: Help with tapestry5 default convertion of html entities

2009-06-13 Thread Howard Lewis Ship
Or: ... and public String getDummyHref() { return "http://www.dummyhtml.fake";; } On Sat, Jun 13, 2009 at 10:12 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Use the OutputRaw component ( > http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corel

Re: Help with tapestry5 default convertion of html entities

2009-06-13 Thread Thiago H. de Paula Figueiredo
Use the OutputRaw component (http://tapestry.apache.org/tapestry5.1/tapestry-core/ref/org/apache/tapestry5/corelib/components/OutputRaw.html) -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor Consultor, desenvolvedor e instrutor em Java http://www.arsmachin

Using AliasOverride for services which already are aliases?

2009-06-13 Thread Joakim Olsson
Hi, In my applications Module-class I have a method like below for creating a specific kind of JPA EntityManager. @Scope(ScopeConstants.PERTHREAD) public static EntityManager buildWebshopEntityManager( @InjectService("WebshopEntityManagerFactory") JPAEntityManagerFactory entit

Help with tapestry5 default convertion of html entities

2009-06-13 Thread Daniel Anguita O.
Hey, I'm trying to insert a html link to my template from the class. For example, i have my page Dummy.java anda template Dummy.tml. on Dummy.java i have public String getDummyHtmlLink(){ return "http://www.dummyhtml.fake\";>Dummy Html"; } and anywhere on my Dummy.tml i have ${dummyHtmlLin

Re: Switch from Prototype to jQuery?

2009-06-13 Thread Thiago H. de Paula Figueiredo
Em Sat, 13 Jun 2009 10:45:15 -0300, Onno Scheffers escreveu: I tried that first. But the cdata node XML-encodes its content. So Javascript statements like if(a < b) becomes if(a < b). It also didn't seem to render out an actual CDATA block and last but not least: I wanted to make sure the C

Re: Switch from Prototype to jQuery?

2009-06-13 Thread Onno Scheffers
> Just one suggestion: instead of using Element.raw() for adding Javascript code inside a CDATA section, try using Element.cdata(). I tried that first. But the cdata node XML-encodes its content. So Javascript statements like if(a < b) becomes if(a < b). It also didn't seem to render out an actual

Re: Switch from Prototype to jQuery?

2009-06-13 Thread Thiago H. de Paula Figueiredo
Em Sat, 13 Jun 2009 00:30:05 -0300, Angelo Chen escreveu: I like what you are doing, keep us posted about your testing project, Prototype free t5 app is something I'm dreaming of:) Another suggestion: instead of "Removing Prototype from Tapestry", what about "Making Tapestry Javascript-fr

Re: Switch from Prototype to jQuery?

2009-06-13 Thread Thiago H. de Paula Figueiredo
Em Fri, 12 Jun 2009 21:09:50 -0300, Onno Scheffers escreveu: Thanks guys. If anyone is interested, I'll be documenting my progress here: http://piraya-blog.blogspot.com Added to my (long) list of feeds. :) Time to call it a day :) Nice! We have progress! :) Just one suggestion: instead

Re: Switch from Prototype to jQuery?

2009-06-13 Thread ice
Very interested in following your progress! Onno Scheffers wrote: > > Thanks guys. > If anyone is interested, I'll be documenting my progress here: > http://piraya-blog.blogspot.com > > Current status: I have a web-project up and running and I'm able to switch > between Prototype-mode and Non-

Re: T5.1: get the current page context from a component

2009-06-13 Thread Sergey Didenko
Well, actually what I need is - dedicated activation context for a component, something like current onActivate() for pages - passing request parameters to PageLink, like I'm implementing a pager that generates "forward" - "backward" links without EventLinks to avoid excessive http requests. T

Re: Decoration passed by parameter. Possible?

2009-06-13 Thread Sergey Didenko
Thanks. On Sat, Jun 13, 2009 at 4:06 AM, Lukasz Jazgar wrote: > 2009/6/12 Sergey Didenko : >> Could you help me, I can't understand how it is wired together. >> >> What is passed as its "by" parameter. > > Generally, Block with inside, which I name "decorator". > >> Where the class Decorate is us

Re: Switch from Prototype to jQuery?

2009-06-13 Thread Sergey Didenko
Ok, I'll move js related discussion there. > If anyone is interested, I'll be documenting my progress here: > http://piraya-blog.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands