Re: Can EventLink be created as default for component parameters ?

2010-11-28 Thread Alessio Gambi
On Sun, Nov 28, 2010 at 11:45 AM, Taha Hafeez tawus.tapes...@gmail.comwrote: Will this work ? @Parameter(defaultPrefix = BindingConstants.LITERAL, value=testEvent) private String event; This is not generating the exception (good) but is not what I want as I need the eventLink to be the

Re: Can EventLink be created as default for component parameters ?

2010-11-28 Thread Taha Hafeez
Will this work for your case ? (This time I am not answering but asking!!) @Parameter(defaultPrefix = BindingConstants.LITERAL) private String link; @SetupRender void setup(){ if(link == null){ link = resources.createEventLink(testEvent, new

problme learning t5+spring+hibernate

2010-11-28 Thread Roy Chan
hi list, I'm new to tapestry 5, so I follow tutorial from wiki to learn t5+spring+hibernate. http://wiki.apache.org/tapestry/Tapstry5First_project_with_Tapestry5,_Spring_and_Hibernate However, I use the t5.2.4, spring 2.5.6 and hibernate 3.3 instead. I had a problem of double context, so I

Re: problme learning t5+spring+hibernate

2010-11-28 Thread Christophe Cordenier
Hi Currently T5.1 was not compatible with spring 3.0, but if you use spring 2.5.6 you should have no problem using T5.1 or T5.2. The only difference if you use a ContextLoaderListener to load Spring is that you will not be able to inject Tapestry services inside Spring beans. Make sure you have

Re: problme learning t5+spring+hibernate

2010-11-28 Thread Christophe Cordenier
I forgot to say that T5.1 was compatible with Spring 3 but in external configuration (Spring ContextLoaderListener) 2010/11/28 Christophe Cordenier christophe.corden...@gmail.com Hi Currently T5.1 was not compatible with spring 3.0, but if you use spring 2.5.6 you should have no problem

Re: problme learning t5+spring+hibernate

2010-11-28 Thread onj888-tapestry
Hi Chrstophe, thank you for your reply, I followed the example to local ApplicationContext.xml in my web.xml. I know if it is configured externally or internally, the information on the page is just not enough. Can you point me some other references? Thanks John 於 2010/11/29 0:55, Christophe

Re: problme learning t5+spring+hibernate

2010-11-28 Thread Jonathan Barker
Remove the ContextLoaderListener, and remove the @Service annotation. One of the changes in T5.1 was the ability to inject T5 services into Spring beans as well as the the other way around. The downside is that now you are restricted to only a single Spring bean for each service type that you

Re: Can EventLink be created as default for component parameters ?

2010-11-28 Thread Thiago H. de Paula Figueiredo
On Sun, 28 Nov 2010 05:53:30 -0200, Alessio Gambi agamb...@gmail.com wrote: Hi folks, Hi! I am stuck in this and apparently I am not able to understand why. I have a page containing a single component of type *TestEvent *(the code is pasted below). Basically the component has a

How to extend a parent template

2010-11-28 Thread Lu Mudong
Hello, list, I am pretty new to tapestry. I am trying to figure out how to extend a parent template, all the googling and tutorials didn't help. All the examples I found extend a parent template like below: t:extend xmlns:t=http://tapestry.apache.org/schema/tapestry_5_1_0.xsd; ../t:extend

Re: How to extend a parent template

2010-11-28 Thread Paul Stanton
Hi Ron, In tapestry you need to think of a 'template' as a 'component'. Components don't 'extend' each other, however they can be included within one another. Components can be made flexible enough so that they can defer sections to their containing component via parameters or the body

T5: using message prefix in a javascript block

2010-11-28 Thread Angelo C.
Hi, How to use message prefix in a javascript? following is sample's ${message:info_text} does not work when inside the script block, any hints? Thanks, jQuery(document).ready(function(){ jQuery(#info_text).watermark(${message:info_text}); }); /script -- View this message in

Re: T5: using message prefix in a javascript block

2010-11-28 Thread Thiago H. de Paula Figueiredo
On Sun, 28 Nov 2010 23:01:26 -0200, Angelo C. angelochen...@gmail.com wrote: Hi, Hi! How to use message prefix in a javascript? following is sample's ${message:info_text} does not work when inside the script block, any hints? Using JavaScript inline (inside templates) is not

Re: how do you gracefully shutdown run-jetty-run ?

2010-11-28 Thread Paul Stanton
Hi Thiago, Yes I did. It would be great if someone could extend the plugin however. On 28/11/2010 1:21 AM, Thiago H. de Paula Figueiredo wrote: Have you tried what Howard describes here? http://tapestryjava.blogspot.com/2010/11/starting-and-stopping-jetty-gracefully.html. The code is in

Re: how to cleanup threads when tapestry shutsdown

2010-11-28 Thread Paul Stanton
Howard, There's a typo in this FAQ: shutdownHub.addShutdownListener(this); should be shutdownHub.addRegistryShutdownListener(this); p. On 18/09/2010 7:50 AM, Howard Lewis Ship wrote: Added to FAQ:

tapestry-hibernate, hsqldb and registry shutdown

2010-11-28 Thread Paul Stanton
Hi all, I'm using tapestry-hibernate and an embedded HSQLDB database. As you might know, it's important to tell HSQLDB to shutdown when you are terminating the vm. You do this by executing a proprietary SQL query SHUTDOWN before closing your last connection. Ideally I'd like to use

Re: T5: using message prefix in a javascript block

2010-11-28 Thread Josh Canfield
Try looking at the source for the rendered page. It looks like you are rendering a string without quotes. If you put your script a comment then you'll need to evaluate your tapestry bindings outside of it and store it in a var. On 28 Nov 2010 17:01, Angelo C. angelochen...@gmail.com wrote: Hi,

Re: How to extend a parent template

2010-11-28 Thread Josh Canfield
http://tapestry.apache.org/tapestry5.1/guide/templates.html Look at the template inheritance section. In general you should choose composition over inheritance, but if you want to have a base class for your pages there is a way to inherit and extend a templates. What you might want to