Re: subclass overrides parameter value

2012-01-31 Thread Thiago H. de Paula Figueiredo
On Tue, 31 Jan 2012 00:27:38 -0200, Paul Stanton wrote: Hi all, Hi! I have a component with: @Parameter(defaultPrefix = BindingConstants.LITERAL, value = "30") private int maxResults; and I also have a subclass component for which I would like to change the default the valu

Re: URL Rewriting

2012-01-31 Thread Thiago H. de Paula Figueiredo
On Tue, 31 Jan 2012 03:50:49 -0200, Jochen Frey wrote: Hi! Hi! I am looking for a clean way to generically rewrite URLs as follows: Publicly we want to have an account name to be the first part of the path in URLs like so: /SomeAccount/settings/page1. Since (I believe) that in Tape

Exception handling in Tomcat 6.0.33

2012-01-31 Thread Brian Long
Hi all, I'm sure I'm not the first person to experience this issue but can't seem to find any answers in the mail archive or on the web. I have an ExceptionReport page implementing ExceptionReporter so any nasty surprises like NPE's result in a nice and friendly "We experiencing technical difficul

exclude a column from a grid component, by a condition

2012-01-31 Thread Vladimir Bauer
Good day everybody! I need to exclude a column from a grid component, by a condition. t:exclude parameter of a grid component provides ability to exclude any column, but with no condition. So far I have following code, but I think it is a bit ugly, because it is repeating same line with grid.

Re: exclude a column from a grid component, by a condition

2012-01-31 Thread Dusko Jovanovski
Try this: .tml: .java: public String getExcludeColumn(){ if(excludeCondition) return "somecolumn"; else return null; } I didn't test this code, but it should work. 2012/1/31 Vladimir Bauer > Good day everybody! > > I need to exclude a column from a grid component, by a conditio

form within a form scenario

2012-01-31 Thread hese
Hi, I want to create an ajax grid and do CRUD operations on single rows without having to post the entire form. So something like this - ContactCrud is my custom component which in turn deals each row in Edit, Delete, Create modes. Each row will have a Edit, Delete icons

Re: form within a form scenario

2012-01-31 Thread hese
The reason I want the entire thing enclosed within a form is that I have other fields along with t:ContactCrud for each row, which have to be submitted as a whole. -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-within-a-form-scenario-tp5444872p5444886.html Sent fro

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Kalle Korhonen
Are you setting an error code to your response? You haven't configured the filter to handle error dispatches: app /* REQUEST ERROR Error handling in Jetty and Tomcat differ, see http://www.cacoethes.co.uk/blog/softwa

Question regarding the internals of t:checklist component..

2012-01-31 Thread Julien Martin
Hello all, I am trying to better understand how T5 components work and I would like to know what the difference is between @Environmental and @Inject and when to use which in the context of component developpement of course. For instance having a look under the hood of t:checklist, I noticed that

Question regarding the t:delegate tag in the context of t:checklist component

2012-01-31 Thread Julien Martin
Hello, I noticed that a t:delegate is used in order to render the individual checkboxes of the t:checklist component. See below: http://tapestry.apache.org/schema/tapestry_5_3.xsd";> * * Can anyone please briefly explain the logic behind this? How can a simple t:delegate tag

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Brian Long
Hi Kalle, yes I managed finally track down the answer after searching through pages of search results, unfortunately my original search query included the terms "tomcat", "tapestry" and "error" which produces reams of result (most of them irrelevant)! Like you mentioned in your reply I needed to

Re: form within a form scenario

2012-01-31 Thread Thiago H. de Paula Figueiredo
On Tue, 31 Jan 2012 13:45:53 -0200, hese <1024h...@gmail.com> wrote: The reason I want the entire thing enclosed within a form is that I have other fields along with t:ContactCrud for each row, which have to be submitted as a whole. HTML doesn't allow nested forms, so you'll probably need to r

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Kalle Korhonen
Good thing, that's one way to set things up and I've used it myself but it only goes half way. The even better idea (if I say so myself) is to use Tynamo's (and in the future core Tapestry) tapestry-exceptionpage module for mapping exceptions directly to error pages (see http://tynamo.org/tapestry-

Re: Using Tapestry-IoC libraries in non-Tapestry application

2012-01-31 Thread Andreas Fink
Hi Erik. Be aware of the fact that many classes you will use through T5 will be rewritten. So if your "wrapping" application needs to work on annotations, make sure those are on interfaces, not implementing classes. Cheers, Andi. On Jan 30, 2012, at 16:56 , Erik Fäßler wrote: > Hello all, >

Re: Question regarding the internals of t:checklist component..

2012-01-31 Thread Thiago H. de Paula Figueiredo
On Tue, 31 Jan 2012 14:24:11 -0200, Julien Martin wrote: Hello all, Hi! I am trying to better understand how T5 components work and I would like to know what the difference is between @Environmental and @Inject and when to use which in the context of component developpement of course.

Re: URL Rewriting

2012-01-31 Thread Jochen Frey
On Jan 31, 2012, at 2:39 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 31 Jan 2012 03:50:49 -0200, Jochen Frey wrote: > >> Hi! > > Hi! > >> I am looking for a clean way to generically rewrite URLs as follows: >> >> Publicly we want to have an account name to be the first part of the pat

Re: Using Tapestry-IoC libraries in non-Tapestry application

2012-01-31 Thread Thiago H. de Paula Figueiredo
On Tue, 31 Jan 2012 15:31:33 -0200, Andreas Fink wrote: Hi Erik. Hi! Be aware of the fact that many classes you will use through T5 will be rewritten. So if your "wrapping" application needs to work on annotations, make sure those are on interfaces, not implementing classes. You can

Re: Question regarding the t:delegate tag in the context of t:checklist component

2012-01-31 Thread Thiago H. de Paula Figueiredo
On Tue, 31 Jan 2012 14:30:14 -0200, Julien Martin wrote: Hello, Hi! There's no t:delegate tag: there's a Delegate component. Any component instance can be declared using the or (which is my favorite one). I noticed that a t:delegate is used in order to render the individual checkbox

Re: URL Rewriting

2012-01-31 Thread Thiago H. de Paula Figueiredo
On Tue, 31 Jan 2012 15:35:13 -0200, Jochen Frey wrote: Let's say there's a page /SomeAccount/profile/SomeOtherVar, where "SomeOtherVar" is supposed to go into the activation context as well ... how would I handle that? Do I have the shot of augmenting the activation context somewhere o

Re: How to use custom onSubmit handler in form tag?

2012-01-31 Thread Christian Köberl
2012-01-29, Michael Gerzabek: > The form tag automagically renders a javascript handler for the onSubmit > event [1, line 388]. It uses the same snippet that's declared for > onclick handler in MarkupConstants.WAIT_FOR_PAGE >

Re: URL Rewriting

2012-01-31 Thread Jochen Frey
Excellent! But what let's say there's a 2nd link transformer, what happens to the PageRenderRequestParameters that the two transformers return? Would the second one just inject an EventContext @Inject private EventContext eventContext; and use it to generate the new EventContext? As well, wou

Re: How to use custom onSubmit handler in form tag?

2012-01-31 Thread Thiago H. de Paula Figueiredo
Why don't you just add a listener to the 'submit' function of the form using Prototype's Element.observe() or the similar function in jQuery? Anyway, adding onXXX attributes to attach listeners to HTML elements isn't recommended at all. On Tue, 31 Jan 2012 15:51:30 -0200, Christian Köberl

Re: URL Rewriting

2012-01-31 Thread Thiago H. de Paula Figueiredo
On Tue, 31 Jan 2012 15:53:29 -0200, Jochen Frey wrote: Excellent! But what let's say there's a 2nd link transformer, what happens to the PageRenderRequestParameters that the two transformers return? Would the second one just inject an EventContext The PageRenderRequestParameters retur

Re: URL Rewriting

2012-01-31 Thread Jochen Frey
Thanks Thiago! On Jan 31, 2012, at 10:52 AM, Thiago H. de Paula Figueiredo wrote: > On Tue, 31 Jan 2012 15:53:29 -0200, Jochen Frey wrote: > >> Excellent! >> >> But what let's say there's a 2nd link transformer, what happens to the >> PageRenderRequestParameters that the two transformers retu

Re: form within a form scenario

2012-01-31 Thread hese
Yeah ok. Thats how I've handled it now...was wondering if there is another way. Thanks! -- View this message in context: http://tapestry.1045711.n5.nabble.com/form-within-a-form-scenario-tp5444872p5445619.html Sent from the Tapestry - User mailing list archive at Nabble.com. -

Re: Question regarding the t:delegate tag in the context of t:checklist component

2012-01-31 Thread Julien Martin
Hi Thiago, I understand better now. Thanks, J. 2012/1/31 Thiago H. de Paula Figueiredo > On Tue, 31 Jan 2012 14:30:14 -0200, Julien Martin > wrote: > > Hello, >> > > Hi! > > There's no t:delegate tag: there's a Delegate component. Any component > instance can be declared using the or (which

scripts in head affect placement of imported scripts in tapestry 5.3

2012-01-31 Thread hien
Hi, I am upgrading from tapestry 5.2.5 to 5.3.1 and have noticed that scripts already in the head of the tml affect the placement of imported scripts using JavaScriptSupport class in 5.3.1. I have a

How to automatically add mixins to all

2012-01-31 Thread Yohan Yudanara
Hi, I'm planning to use Lenny Primak - Flowlogix's "DisableAfterSubmit" mixins to all of my submit component. It works great to prevent double submit. Please give me a clue how to accomplish this, instead of having to copy paste "mixins="DisableAfterSubmit" to all of submit components on so many

Re: How to automatically add mixins to all

2012-01-31 Thread Robert Zeigler
Why don't you create a custom submit component that uses the mixin? Then just use your custom component anywhere the standard submit would otherwise be used? Robert On Jan 31, 2012, at 1/318:10 PM , Yohan Yudanara wrote: > Hi, > > I'm planning to use Lenny Primak - Flowlogix's "DisableAfterSub

Re: How to automatically add mixins to all

2012-01-31 Thread Yohan Yudanara
Currently my project already have use standard Submit components in all of its pages. And there are so many pages.. :) So I'm looking for an 'automatic' way to add mixins to existing "standard" submit components on my project. Thanks.. Best regards, Yohan Yudanara On Wed, Feb 1, 2012 at 9:15 AM

Re: How to automatically add mixins to all

2012-01-31 Thread Taha Hafeez Siddiqi
Hi Write a ComponontClassTransformWorker catch all submit components and add your mixin :) http://tawus.wordpress.com/2011/08/01/tapestry-mixins-classtransformations/ regards Taha On Feb 1, 2012, at 7:50 AM, Yohan Yudanara wrote: > Currently my project already have use standard Submit compone