Re: t5: create a page link inside a service

2009-03-31 Thread Filip S. Adamsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Did my e-mail from almost 15 hours ago not get through to everyone on the list? :P To quote myself, "Inject the ComponentSource service, get a page from it, then get its ComponentResources." I've got a dedicated service for this, it gets the Componen

Re: T5 - Chenillekit Quartz & Services

2009-03-31 Thread Sven Homburg
possible it helps public class ImportEmailToArchive implements Job { private final Logger logger = LoggerFactory.getLogger(ImportEmailToArchive.class); @CommitAfter public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException { PerthreadManager

Re: access component from mixin

2009-03-31 Thread Inge Solvoll
I think this is the "standard" way of getting the clientId of the mixin's container: @InjectContainer private ClientElement container; On Tue, Mar 31, 2009 at 10:24 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 31 Mar 2009 17:21:07 -0300, Fernando Padilla > escrev

Re: t5: create a page link inside a service

2009-03-31 Thread Angelo Chen
Thanks, but that works for 5.1.x, not for 5.0.18. I'm eagerly expecting the release of 5.1.x stable version. Howard Lewis Ship wrote: > > http://tapestry.formos.com/nightly/tapestry5/faq/general.html#create-page-link-from-service > > On Tue, Mar 31, 2009 at 2:54 AM, Angelo Chen > wrote: >> >>

Re: access component from mixin

2009-03-31 Thread Thiago H. de Paula Figueiredo
Em Tue, 31 Mar 2009 17:21:07 -0300, Fernando Padilla escreveu: What is the best way to get the component a mixin i applied to, from within the mixin? I want to access the clientId of the component that the mixin has been tied to. How would I do that? I guess it is by using @InjectComp

access component from mixin

2009-03-31 Thread Fernando Padilla
What is the best way to get the component a mixin i applied to, from within the mixin? I want to access the clientId of the component that the mixin has been tied to. How would I do that? pseudo-code: mixin { afterRender { getComponent().getClientId(); } } -

Re: t:body

2009-03-31 Thread Luther Baker
On Tue, Mar 31, 2009 at 2:36 PM, Yancey Yeargan wrote: > > Tapestry 5.1 does handle this correctly. I checked by changing "" > to "" within the Layout.tml template of the quickstart example > project and it worked as expected. That is correct for 5.1.0.0, but this bug is specific to 5.1.0.1.

Re: t:body

2009-03-31 Thread Yancey Yeargan
Tapestry 5.1 does handle this correctly. I checked by changing "" to "" within the Layout.tml template of the quickstart example project and it worked as expected. Yancey On Mar 31, 2009, at 1:57 PM, Howard Lewis Ship wrote: Please add a bug; Tapestry should not be case sensitive about

Re: t:body

2009-03-31 Thread Luther Baker
TAP5-615 Thanks, -Luther On Tue, Mar 31, 2009 at 1:57 PM, Howard Lewis Ship wrote: > Please add a bug; Tapestry should not be case sensitive about this > (regardless about what the schema says). t:body and t:Body should be > equivalent. Tapestry 5.1 may already do this correctly. > > On Mon,

Re: T5 - Chenillekit Quartz & Services

2009-03-31 Thread Jonathan Barker
Dan, I can't call this elegant, but I prefer it to passing dao's in the JobDataMap.. I use Spring with Tapestry, and the SpringAwareStatefulJob from Spring that makes it easy to access the Spring application context. So, I still need to look up things that I'm accustomed to having injected, but

Re: t:body

2009-03-31 Thread Howard Lewis Ship
Please add a bug; Tapestry should not be case sensitive about this (regardless about what the schema says). t:body and t:Body should be equivalent. Tapestry 5.1 may already do this correctly. On Mon, Mar 30, 2009 at 9:28 AM, Luther Baker wrote: > For some reason, my brain likes to keep a consist

Re: T5 - Chenillekit Quartz & Services

2009-03-31 Thread Daniel Jones
Is there a more elegant solution than this? If so please share! Cheers, Dan -- View this message in context: http://www.nabble.com/T5---Chenillekit-Quartz---Services-tp22787045p22805264.html Sent from the Tapestry - User mailing list archive at Nabble.com. ---

RE: T5.1 URL Rewriting

2009-03-31 Thread Blower, Andy
If you want to stay away from extending the internals then a decorator / advisor of the ComponentEventLinkEncoder service would be the best route, as Thiago suggested. You will still have a reference to LinkImpl which is an internal implementation since you'll need to create a new link. I don't

Re: [T5.1] Running on Glassfish?

2009-03-31 Thread xfile80303
Hello all, I've been developing locally on Tomcat, but will have to ultimately deploy onto Glassfish . My app works as expected while on Tomcat, but once deployed to Glassfish I get an exception: java.lang.RuntimeException: Exception constructing service 'TemplateParser': Error invoking co

RE: T5.1 URL Rewriting

2009-03-31 Thread xfile80303
Hey Levi, That's almost identical to what I need for my application. Sorry I missed your post back in Feb, I had a two week holiday mid feb so I wasn't following. You did this the same way as me by creating your own PageRenderDispatcher and LinkFactory. My scenario is possibly a little more

Re: T5.1 URL Rewriting

2009-03-31 Thread xfile80303
On Mar 30, 2009, at 3/304:47 PM , xfile80303 wrote: > >> Is there a way to utilize this to only rewrite page render requests >> and >> not component or asset requests? I know it is pretty early on in the >> request lifespan, but without this discrimination this feature is not >> nearly as u

Re: T5.1 URL Rewriting

2009-03-31 Thread xfile80303
Just a suggestion: please quote the messages you're answering with >. Without them, it's hard to figure out what's the answer and what's being answered. ;) Hi Thiago, I'm just using nabble.com to access and post to this list and the quoting features of nabble. Perhaps try viewing your e

Re: t5: create a page link inside a service

2009-03-31 Thread Howard Lewis Ship
http://tapestry.formos.com/nightly/tapestry5/faq/general.html#create-page-link-from-service On Tue, Mar 31, 2009 at 2:54 AM, Angelo Chen wrote: > > Hi, > > I'd like to createPageLink inside a services, but ComponentResource can't be > injected into a service, any other way around? Thanks, > > Ang

Re: T5.1 URL Rewriting

2009-03-31 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 31, 2009 at 11:53 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, Mar 31, 2009 at 11:40 AM, Howard Lewis Ship wrote: >> Another option would be to combine the URLRewriterRule with an enum to >> define when it is in effect (INCOMING, OUTGOING, BOTH). > > I still prefer the context p

Re: T5.1 URL Rewriting

2009-03-31 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 31, 2009 at 11:40 AM, Howard Lewis Ship wrote: > Another option would be to combine the URLRewriterRule with an enum to > define when it is in effect (INCOMING, OUTGOING, BOTH). I still prefer the context parameter option, so it can differentiate page links from action links. -- Thi

Re: T5: AccessController Dispatcher asm.exists() not working?

2009-03-31 Thread Howard Lewis Ship
exists() looks for an instance in the HttpSession ... what is supposed to be creating this instance? On Tue, Mar 31, 2009 at 3:52 AM, Kasper wrote: > Hi, > > I am trying to create a dispatcher to define the access levels for the > current user. I have followed the steps from the Wiki pages: > htt

Re: T5.1 URL Rewriting

2009-03-31 Thread Howard Lewis Ship
Another option would be to combine the URLRewriterRule with an enum to define when it is in effect (INCOMING, OUTGOING, BOTH). On Mon, Mar 30, 2009 at 8:43 PM, Robert Zeigler wrote: > Yeah, I definitely think there needs to be at least /some/ disambiguation > between request and response. > A num

T5.1.0.2 problem with TestableRequestImpl

2009-03-31 Thread Blower, Andy
I'm in the process of migrating from T5.0.18 to T5.1 and I'm using the T5.1.0.2 release currently being voted on. I've fixed all the compilation errors and disabled enough of our custom stuff to get pages rendering, although most of our javascript seems to be broken (I'll be looking into this is

RE: T5.1 URL Rewriting

2009-03-31 Thread Blower, Andy
> > I'm leaning towards a custom implementation of > > ComponentEventLinkEncoder (possibly extending the internal T5.1 impl) > since the URL analysis which is going on in here is what I need to > figure out what (if > > anything) needs doing to the URL. > > As Fernando Padilla would point out and

Re: T5.1 URL Rewriting

2009-03-31 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 31, 2009 at 6:26 AM, Blower, Andy wrote: > Now I am and I can see what Thiago means but I don't think URL rewriting is > the right place to do this. I don't think I said that. :) > I'm leaning towards a custom implementation of > ComponentEventLinkEncoder (possibly extending the int

Re: T5.1 URL Rewriting

2009-03-31 Thread Thiago H. de Paula Figueiredo
On Tue, Mar 31, 2009 at 1:21 AM, Robert Zeigler wrote: > As a sort of nitpicky aside... does URLRewriterService have to be called > that? (Since we're still in new feature api-change mode, here... :). > What about just URLRewriter? Or URLRewriteHandler? Either of those seem to > gel a little more

T5: AccessController Dispatcher asm.exists() not working?

2009-03-31 Thread Kasper
Hi, I am trying to create a dispatcher to define the access levels for the current user. I have followed the steps from the Wiki pages: http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher http://wiki.apache.org/tapestry/Tapestry5HowToCreateADispatcher2 This seems to work. But as I

[T5] Overriding the BeanBlockSource for a specific component only.

2009-03-31 Thread Otho
Hi all, I am working on a different BeanEditForm, which takes layout parameters as a String and creates a multicolumn layout for a form. A bit like the idea of JGoodies forms. Now I go first for tables, since it is an internal application and accessibility is not an issue, but regardless if I go f

Re: t5: create a page link inside a service

2009-03-31 Thread Filip S. Adamsen
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Angelo, Inject the ComponentSource service, get a page from it, then get its ComponentResources. /Filip On 2009-03-31 11:54, Angelo Chen wrote: > Hi, > > I'd like to createPageLink inside a services, but ComponentResource can't be > injected int

t5: create a page link inside a service

2009-03-31 Thread Angelo Chen
Hi, I'd like to createPageLink inside a services, but ComponentResource can't be injected into a service, any other way around? Thanks, Angelo -- View this message in context: http://www.nabble.com/t5%3A-create-a-page-link-inside-a-service-tp22801831p22801831.html Sent from the Tapestry - User

RE: T5.1 URL Rewriting

2009-03-31 Thread Blower, Andy
Hey Levi, That's almost identical to what I need for my application. Sorry I missed your post back in Feb, I had a two week holiday mid feb so I wasn't following. You did this the same way as me by creating your own PageRenderDispatcher and LinkFactory. My scenario is possibly a little more com

Re: T5 - Chenillekit Quartz & Services

2009-03-31 Thread Massimo Lusetti
On Tue, Mar 31, 2009 at 7:58 AM, Inge Solvoll wrote: > Is that thread safe, putting the service in a map in non-service class? JobExecutionContext is made available by Quarz just to store job's context information and while jobs are executed in an separate thread i think that should be the case,