Re: T5: replacing the ComponentInstantiatorSource service

2007-09-14 Thread Tom Davies
On 15/09/2007, at 1:09 PM, Tom Davies wrote: I think I need to explictly @Inject 'Configuration configuration', but I can't figure out what Id to use... No! The services injected into buildCalComponentInstantiator needed to be injected explictly! Got it now! Thanks, Tom

Re: T5: replacing the ComponentInstantiatorSource service

2007-09-14 Thread Tom Davies
Thanks for the help. On 14/09/2007, at 12:30 AM, Howard Lewis Ship wrote: Oh, then ComponentClassEnhancementWorker is almost certainly the way to go. At the moment I'm persisting with ComponentInstantiatorSource, as I can do *anything* to the class with that, and I'm still experimenting

Re: T4.1.2 - DatePicker javascript problem

2007-09-14 Thread Norman Franke
You need to wrap your page in an Shell component. That may be the problem. -Norman On Sep 14, 2007, at 3:24 PM, [EMAIL PROTECTED] wrote: Hi, I am getting a javascript error (calendar_startDate is undefined) when using the DatePicker component: value="ognl:startDate" translator="transl

Re: T5 & JSP Tag Libarary

2007-09-14 Thread Christian Gruber
Tapestry, particularly T5 uses XML/xhtml as a template, not a scripting language. It doesn't interpret tags via the standard JSP tag system, if I am not mistaken. JSPs are converted to servlet code which is then compiled. No such transformation happens in Tapestry. So while you might be

Re: T5 & JSP Tag Libarary

2007-09-14 Thread Angelo Chen
Hi Hong, Not so sure, but I'm doubtful about using those tags with T5 when even T4's own tags cant be used. I come from desktop background and trying to find a framework for my first web application, evaluated JSP, GWT, Struts, T4 and T5, and found T5 is the easiest and powerful framework among t

T5 & JSP Tag Libarary

2007-09-14 Thread Hong Yu (hoyu2)
Hi, I'm evaluating different web development framework right now and I have found T5 very attractive. We have a large JSP Tag library that corporate uses to enforce the standard interface look&feel. My question is whether it is possible to use T5 and our corporate JSP Tag library together. Your

T4.1.2 - DatePicker javascript problem

2007-09-14 Thread amirsguard-tapestry
Hi, I am getting a javascript error (calendar_startDate is undefined) when using the DatePicker component: When I inspect the generated html I do not see the DatePicker.js asset nor do I see the Calendar javascript objects being initialized. Anyone have any idea what I am doing wrong? Tha

Re: T4.1 - Override a configuration when no service is used

2007-09-14 Thread Renat Zubairov
Hi You can extend the service which consumes given contribution, inside your extension do wherever you need with the list of contributions. Then overwrite the service which consumes contribution with you extension. I guess this should work. Renat On 14/09/2007, carlos f <[EMAIL PROTECTED]> wrote

T4.1 - Override a configuration when no service is used

2007-09-14 Thread carlos f
I would like to override the InjectPageWorker used by the tapestry framework. However, the contribution for this worker uses the instance object provider: . . . When I attempt to "override" it by contributing another worker with a "page" type I get the "Value for attribute 'typ

Re: @InjectPage in library -- Page 'XXX' not found in application namespace.

2007-09-14 Thread carlos f
carlos f wrote: > > I am working under the assumption that page/component resolution is > "scoped" inside of a library. So that unqualified references (e.g. > "ComponentName" versus "myLibrary:ComponentName") are treated as local to > the library. > BTW - I am using tap 4.1.2. It looks like

Re: how to change cursor to hourglass during async event handling

2007-09-14 Thread Andreas Andreou
nice! On 9/14/07, Mike Oestereter <[EMAIL PROTECTED]> wrote: > > Thanks > > This is what I did at the end. Its a bit in your face but it mostly > (besides the IE6 div bug) prevents users from clicking on something > else while the request is processing. > > style="display:none; curso

@InjectPage in library -- Page 'XXX' not found in application namespace.

2007-09-14 Thread carlos f
For a variety of reasons I am attempting to convert a large portion of a free standing tapestry web application into a library. A page in my library contains an @InjectPage annotation. This annotation use the name of a page specified in the library. I double checked the library specification fi

Re: how to change cursor to hourglass during async event handling

2007-09-14 Thread Mike Oestereter
Thanks This is what I did at the end. Its a bit in your face but it mostly (besides the IE6 div bug) prevents users from clicking on something else while the request is processing. Loading... On 9/13/07, andyhot <[EMAIL PROTECTED]> wrote: > Use @contri

Re: how to change cursor to hourglass during async event handling

2007-09-14 Thread Mike Oestereter
Thanks a lot!! On 9/13/07, andyhot <[EMAIL PROTECTED]> wrote: > Use @contrib:AjaxStatus > http://tapestry.apache.org/tapestry4.1/tapestry-contrib/componentreference/ajaxstatus.html > > ... or, for more control, see > http://tapestry.apache.org/tapestry4.1/jsdoc/index.html > the tapestry.fx.attachA

Re: T5: Hibernate and InjectService

2007-09-14 Thread Davor Hrg
You were probably just mislead by how things work for pages and compoenents, tapestry does much more to pages and components, like parameter injection for example. however for services there are (as I'm aware) two ways only to inject, via constructor for autobuilt services, and via builderMethod

Re: T5: Hibernate and InjectService

2007-09-14 Thread Angelo Chen
Hi Davor, This works, kind of amazing, I read that section about service, but can't find info about this, maybe I'm not reading enough? Thanks, A.C. Davor Hrg wrote: > > declare Session as parameter in you service constructor > you dont even need to call any inject annotation ... > > > MySer

Re: T5: Hibernate and InjectService

2007-09-14 Thread Davor Hrg
declare Session as parameter in you service constructor you dont even need to call any inject annotation ... MyServiceImpl(Session session){ this.session=session; } in your module use: public static void bind(ServiceBinder binder) { binder.bind(MyService.class, MyServiceImpl.class);

Re: How to init T5 pages on deployment? - 1st few hits would be faster

2007-09-14 Thread Nick Westgate
ApplicationInitializer is a pipeline service: http://tapestry.apache.org/tapestry5/tapestry-ioc/pipeline.html Howard is saying you could contribute to ApplicationInitializer in your AppModule to do what you want. To find out about the "cleanup", use the source. Search for other code that uses pa

T5: Hibernate and InjectService

2007-09-14 Thread Angelo Chen
Hi, I need to use Tapestry-Hibernate in a service, what is the correct way of calling the Session? following construct does not compile: @InjectService("Session") Session _session; public List members() { List lst = _session.createQuery("from MemberNew m order by name