T5: RESTful web services module

2008-12-22 Thread Bill Holloway
Well, against my better judgment, I've posted the little jar I use to make T5 services serve RESTful web service requets. It does this by shooting a RequestFilter into the pipeline that you contribute your service classes to via the IoC. The code and some documentation are at

Re: Reloading component templates from Maven's jetty plugin

2008-12-22 Thread Olle Hallin
Classes under myapp.components, myapp.pages, myapp.base and myapp.mixins are hot-deployed by Tapestry. Exclude these from the Jetty hot-deploy feature. Olle 2008/12/22 Josh Long starbux...@gmail.com Thank you for the help. I've adjusted my IntelliJ environment as you suggested and its

Tapestry 5 with Spring Security - problem with unit tests.

2008-12-22 Thread Michał Jedynak
Hi there, I've integrated spring security to my sample tapestry5 application (I'm using version 5.0.18) based on tapestry-spring-security (http://www.localhost.nu/java/tapestry-spring-security), but now my unit tests that use PageTester don't work, because there is no Authentication object in

Re: Reloading component templates from Maven's jetty plugin

2008-12-22 Thread kace
Ive done the following - src/main/resources configured as a source directory in IntelliJ. - you have configured IntelliJ to compile .tml files. (Settings - Compiler - Resource Patterns) still only picks up changes to tml files under webapp folder ie to pages not components. @Olle - how do you

[T5] Exposing child component parameters : inherit, autoconnect... Nothing better ?

2008-12-22 Thread Francois Armand
In my component building, I have a really common pattern which is: - I have a child component, which has a parameter, like : t:ChildComponent childParameter=... / - I have a parent component, in which I use ChildComponent (standard component composition), and I want to expose some or all

T5: how to make a module that is available to two t5 apps?

2008-12-22 Thread Angelo Chen
Hi, I have a project similar to this: 1) T5 web app 2) T5 IOC only app This has been working quite nicely, now I need to have some classes/services which should be used by #1 and #2, that means I need another module that can be compiled into jar file that #1 and #2 can call, any idea how to

Re: T5: how to make a module that is available to two t5 apps?

2008-12-22 Thread SergeEby
Hi, This can help: http://tapestry.apache.org/tapestry5/cookbook/lib.html /Serge Angelo Chen wrote: Hi, I have a project similar to this: 1) T5 web app 2) T5 IOC only app This has been working quite nicely, now I need to have some classes/services which should be used by #1 and

Re: Tapestry 5 with Spring Security - problem with unit tests.

2008-12-22 Thread SergeEby
Hi, This seems to be related to this thread: http://www.nabble.com/PageLinkTarget%2C-where-did-it-go--to21022001.html#a21022001 /Serge Michał Jedynak wrote: Hi there, I've integrated spring security to my sample tapestry5 application (I'm using version 5.0.18) based on

Accessing form data inside AddRowLink

2008-12-22 Thread superoverdrive
Is it possible to access form data inside AddRowLink? I am trying to get hold of the category value which is defined as: @Persist @Property private Category category; form t:type=form t:id=valuesedit t:errors/ table

Re: PageLinkTarget, where did it go?

2008-12-22 Thread Michał Jedynak
I have a similar issue: http://www.nabble.com/Tapestry-5-with-Spring-Security---problem-with-unit-tests.-td21126486.html. The problem is not about PageLinkTarget - PageRenderTarget, but about the way to properly initialize ComponentInvocationImpl. nille hammer wrote: Hi Mark, first I

Re: Reloading component templates from Maven's jetty plugin

2008-12-22 Thread Olle Hallin
See http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin .http://docs.codehaus.org/display/JETTY/Maven+Jetty+PluginSearch for excludes. Olle 2008/12/22 kace me_myself_and_...@hotmail.com Ive done the following - src/main/resources configured as a source directory in IntelliJ. - you

T5: encoding issues

2008-12-22 Thread Christoph Jäger
Hi, I have a strange issue with character encoding. I use Tapestry 5 on a Tomcat 6.0.18 installation. No difference between java5 or java6, MacOSX or Linux. Special characters on my pages look fine when they come from a .tml file, whne they come from a .properties file used for

Cached Annotation watch property seems to use '==' instead of 'equals'

2008-12-22 Thread Doug Hauge
I'm trying to use the '@Cached' annotation with a watch expression to cache results of methods in a form contained within a loop. For some watch expressions, I construct a string, so the code basically looks like @Cached(watch=watchKey) Object getData() { // return data; } String

Re: Confirm(are you sure want to delete) in action link

2008-12-22 Thread Tan cyb...@n
hi, i have found a solution. http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained this one maybe can help up Thank you. Tan. On Fri, Dec 12, 2008 at 7:21 PM, Martijn Brinkers martijn.l...@gmail.comwrote: Could you check if the Event.stop(event) works when used directly from the

Re: Cached Annotation watch property seems to use '==' instead of 'equals'

2008-12-22 Thread Howard Lewis Ship
Looks like an oversight to me ... using equals() would make more sense to me as well. It is intended primarily for Hibernate entities, but equals() works there as well, as Hibernate ensures that primary key identity is the same as object identity with a context. Perhaps Dan can shed some light?

Tapestry 5, Netbeans 6.5

2008-12-22 Thread Nick56789
We recently got a very basic Tapestry 5 app working with NetBeans 6.5 on Windows. We did not use Hibernate, Spring, or Maven (Maven's repository is blocked by work proxy server). Just thought I would post what we did in case it was useful to anyone else. A lot of this came from the official

Blog post about Tapestry 5 - Project Structure

2008-12-22 Thread Borut Bolčina
I made another post at http://bbwebcraft.blogspot.com/ Task 2 – Explore the Tapestry 5 project structure and learn where to put your stuff I hope you don't consider this email as spam. Cheers, Borut

Mixin for javascript.

2008-12-22 Thread Tan cyb...@n
hi all, regarding the tutorial about the mixin to prompt a confirm box before press the button. I have try to use the tutorial in http://wiki.apache.org/tapestry/Tapestry5AndJavaScriptExplained but seems like even i press the cancel. it also will post back. here are the sample: t:actionlink

Re: About the value of the parameters

2008-12-22 Thread Tan cyb...@n
hi 滕训华 , do you might to share out your coding about @Component(parameters = {onClick=literal:return confirm(\do you want to delete this record?\);}) ? i have a problem on prompt a confirmation box before submit. but when i even press cancel. it also do the submit post back. Thank you.