Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
Yes - sorry I wasn't clear. Thanks for your help. On 21 June 2012 18:30, Thiago H de Paula Figueiredo wrote: > On Thu, 21 Jun 2012 16:36:38 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > > That's crazy talk. >> > > Did it work? > > >> Thanks. :-) >> >> On 21 June 2012 15:09,

Re: @Symbol and web context-params

2012-06-21 Thread Thiago H de Paula Figueiredo
On Thu, 21 Jun 2012 16:36:38 -0300, Michael Prescott wrote: That's crazy talk. Did it work? Thanks. :-) On 21 June 2012 15:09, Thiago H de Paula Figueiredo wrote: On Thu, 21 Jun 2012 15:11:04 -0300, Michael Prescott < michael.r.presc...@gmail.com> wrote: MyModule { // Doesn't w

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
That's crazy talk. Thanks. :-) On 21 June 2012 15:09, Thiago H de Paula Figueiredo wrote: > On Thu, 21 Jun 2012 15:11:04 -0300, Michael Prescott < > michael.r.presc...@gmail.com> wrote: > >> MyModule { >> >> // Doesn't work >> @Symbol("paramname") >> private String param; >> } >> >> It works

Re: @Symbol and web context-params

2012-06-21 Thread Thiago H de Paula Figueiredo
On Thu, 21 Jun 2012 15:11:04 -0300, Michael Prescott wrote: MyModule { // Doesn't work @Symbol("paramname") private String param; } It works as an annotation on a method parameter, though! Have you tried to add @Inject to the field? -- Thiago H. de Paula Figueiredo -

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
Steve, I need two web-apps running side by side, not two tapestry apps within the same webapp. :-) No problems there. In any case, I figured out why what I was doing wasn't working, I was trying to do MyModule { // Doesn't work @Symbol("paramname") private String param; } It works as an

Re: @Symbol and web context-params

2012-06-21 Thread Steve Eynon
> because i need multiple apps running side by side. Err... http://tapestry.apache.org/configuration.html#Configuration-SegregatingApplicationsIntoFolders says, "At this time, it is still not possible to run multiple Tapestry 5 applications within the same web application." Other than that there

Re: @Symbol and web context-params

2012-06-21 Thread Michael Prescott
Nevermind. :-) Turns out that my problem was just that I was trying to use @Symbol on a module field, instead of on a method parameter. Michael On 21 June 2012 13:43, Michael Prescott wrote: > I'm hoping to use tapestry-hibernate, and also flyway to do db migrations, > and I'm having trouble in

Re: @Symbol and web context-params

2012-06-21 Thread Thiago H de Paula Figueiredo
On Thu, 21 Jun 2012 14:43:53 -0300, Michael Prescott wrote: I'm hoping to use tapestry-hibernate, and also flyway to do db migrations, and I'm having trouble injecting the data source from the servlet container into each of these. With tapestry-spring, I was able to have spring read we

@Symbol and web context-params

2012-06-21 Thread Michael Prescott
I'm hoping to use tapestry-hibernate, and also flyway to do db migrations, and I'm having trouble injecting the data source from the servlet container into each of these. With tapestry-spring, I was able to have spring read web context params, and go from there. But in my tapestry module, @Symbol