Re: [localization] reusing facilities for enum-names

2009-04-06 Thread Ulrich Stärk
Use the Messages service. Uli Am 05.04.2009 19:21 schrieb manuel aldana: I got a java enumeration and would like to reuse the nice localization facilities from tapestry 5. let's say I have an enum: enum A{ ONE,TWO; } If it displays on a page I would like to have it displayed by the

Re: [intellij support] how to faster update webapp-content?

2009-04-06 Thread Onno Scheffers
I don't start Jetty from within IDEA. I start it separately (when required I use the remote debugger to connect to the external process, which is quicker as well). When you combine this setup with the deploy-on-frame-deactivation option, clicking outside IDEA (on the browser-reload button for

T5: how to redirect to an external site?

2009-04-06 Thread Angelo Chen
Hi, How to redirect to an external site? here is code, but not working: Object onSuccessFromMyForm() { return http://www.google.com/search?q=abcdsitesearch=abc.com;; } any idea how? thanks Angelo -- View this message in context:

Re: T5: how to redirect to an external site?

2009-04-06 Thread Peter Stavrinides
Thats because you are returning a string not a URL/Link Object regards, Peter - Original Message - From: Angelo Chen angelochen...@yahoo.com.hk To: users@tapestry.apache.org Sent: Monday, 6 April, 2009 13:51:39 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: T5: how to redirect

Re: T5: how to redirect to an external site?

2009-04-06 Thread Kristian Marinkovic
Peter meant, just return a new URL(yourlink) instance and tapestry will do the rest g, kris Angelo Chen angelochen...@yahoo.com.hk 06.04.2009 13:10 Bitte antworten an Tapestry users users@tapestry.apache.org An users@tapestry.apache.org Kopie Thema Re: T5: how to redirect to an external

[T5.1] ApplicationInitializer not allways executed

2009-04-06 Thread Martin Papy
Hello everyone, I noticed something very odd : sometimes the ApplicationInitilizer is not executed. The difference between two launches ? At first sight : none (no code changed, db is always recreated). What I am sure of : - ApplicationInitializer ( and my contribution ) is always created : I

Re: Reloading in 5.1

2009-04-06 Thread Peter Stavrinides
This can relate to using the wrong org.mortbay.jetty:maven-jetty-plugin version. I am currently using version: 6.1.16 on Ubuntu, and it works for me I think (but could be mistaken) from an old post 6.1.14 was recommended. Peter -- If you are not an intended recipient of this e-mail,

Re: [grid-component] javascript style for ordering rows

2009-04-06 Thread Thiago H. de Paula Figueiredo
On Sun, Apr 5, 2009 at 1:45 PM, manuel aldana ald...@gmx.de wrote: what I miss is that javascript is not used when ordering the tables, at each click a complete HTTP request is fired. The data itself is not changed so another server call wouldn't be necessary. I at least did not find a

Form submit with bypass to required validation

2009-04-06 Thread Pedro Januário
Hi, I have the need to use a form with two submit buttons: save finish. The form contains 3 required fields. I would like to know if it's possible to bypass the required field validation on the save button submit. Is there any workaround on it? -- Regards, Pedro Januário

Re: T5: how to redirect to an external site?

2009-04-06 Thread Angelo Chen
Thanks for the quick reply, I understand that CreatePageLink creates only the links within the same domain, not external domains, how to create a link object pointing to an external site? Peter Stavrinides wrote: Thats because you are returning a string not a URL/Link Object regards,

Tapestry 5.1.0.2 and tapestry-spring-security 2.0.1

2009-04-06 Thread Volker Lamp
While attempting to upgrade my webapp to Tapestry 5.1.0.2 from Tapestry 5.0.18 I run into a problem related with tapestry-spring-security 2.0.1. Triggering LogoutService.logout() in a 5.1.0.2 environment results in a IllegalStateException which was not the case in 5.0.18. From a recent

Re: Tapestry 5.1.0.2 and tapestry-spring-security 2.0.1

2009-04-06 Thread Thiago H. de Paula Figueiredo
On Mon, Apr 6, 2009 at 9:29 AM, Volker Lamp volker.l...@gmail.com wrote: While attempting to upgrade my webapp to Tapestry 5.1.0.2 from Tapestry 5.0.18 I run into a problem related with tapestry-spring-security 2.0.1. Triggering LogoutService.logout() in a 5.1.0.2 environment results in a

Re: Form submit with bypass to required validation

2009-04-06 Thread Jorge Saridis
Use onSubmit form the save button, and onSuccess for the finish one http://tapestry.apache.org/tapestry5/tapestry-core/ref/org/apache/tapestry5/corelib/components/Form.html 2009/4/6 Pedro Januário prnjanua...@gmail.com: Hi, I have the need to use a form with two submit buttons: save finish.

Re: Form submit with bypass to required validation

2009-04-06 Thread Tapestry Infodea
Hi, you can use Form.clearErrors() when you save. Roberto. Pedro Januário ha scritto: Hi Jorge, Probably i didn't explained very well. The idea was to kept the client validation turned on, and i don't want to display any required validation message on save submit button. The aproach that you

Re: Tapestry 5.1.0.2 and tapestry-spring-security 2.0.1

2009-04-06 Thread manuel aldana
Thiago H. de Paula Figueiredo schrieb[ [...] session rather than Tapestry's Session. I'm having this issue too. Besides this, the @Secured annotation does not work. I asked the creator about this. He said spring-security is not compatible with 5.1. So I guess we need to wait or help :)

Re: Form submit with bypass to required validation

2009-04-06 Thread Pedro Januário
Hi Roberto, I suppose that you are talking about server side code, Form.clearError(), isn't it? The main problem is on client side. 2009/4/6 Tapestry Infodea tapes...@infodea.it Hi, you can use Form.clearErrors() when you save. Roberto. Pedro Januário ha scritto: Hi Jorge, Probably

Re: [grid-component] javascript style for ordering rows

2009-04-06 Thread manuel aldana
Thiago H. de Paula Figueiredo schrieb: [...] javascript enable parameter. You're not exactly right. When Grid has more rows to show than rows per page, you cannot just reorder the objects that are being shown, you must reorder the whole row list. By the way, don't forget the inplace=true

Re: Form submit with bypass to required validation

2009-04-06 Thread Tapestry Infodea
You are right! Using the client side validation the follows method is not called: void onValidateForm() { if (saveMode) form.clearErrors(); } If you use ... t:form t:clientValidation=false ... the above workaround works. Roberto. Pedro Januário ha scritto: Hi Roberto, I suppose

Re: [grid-component] javascript style for ordering rows

2009-04-06 Thread Howard Lewis Ship
Nested divs for layout is one thing, and has been distorted in the past for a non-rectangular layout. The Grid is displaying ordered rows and columns: what could be more natural than a table? On Mon, Apr 6, 2009 at 9:56 AM, manuel aldana ald...@gmx.de wrote: Thiago H. de Paula Figueiredo

Re: Form submit with bypass to required validation

2009-04-06 Thread Pedro Januário
I would like to have client validation working... My aproach was to implement the required validation on server side, on onValidateForm. That way the rest of the client validation still working on. But i think this should be one easy stuff... but i don't know if tapestry allows to bypass client

Disable sorting- grid component

2009-04-06 Thread Amit Nithian
Is there a simple way to disable the sorting feature of the grid component? I just want the column heading without the ability to re-sort by clicking on the arrows or the column heading link. Thanks!

Re: Executing javascript on ajax call return

2009-04-06 Thread Hugo Palma
I couldn't find an issue for this, so i created one https://issues.apache.org/jira/browse/TAP5-624 On Mon, Mar 23, 2009 at 11:19 PM, Thiago H. de Paula Figueiredo thiag...@gmail.com wrote: Is therea JIRA for that so I can vote on it? Em Mon, 23 Mar 2009 17:29:03 -0300, Fernando Padilla

Re: Executing javascript on ajax call return

2009-04-06 Thread Hugo Palma
Well, i just got back to this issue and i can't seem to make it work again. I can't remember the exact use case on which i tested this but i can't make it work now. Maybe i just wanted it to work so bad that i thought it was when i wasn't :o( On Tue, Mar 24, 2009 at 7:35 PM, Blower, Andy

Re: Disable sorting- grid component

2009-04-06 Thread Geoffrey Wiseman
On Mon, Apr 6, 2009 at 1:59 PM, Amit Nithian anith...@gmail.com wrote: Is there a simple way to disable the sorting feature of the grid component? I just want the column heading without the ability to re-sort by clicking on the arrows or the column heading link. There definitely is, yes --

Re: Tapestry 5.1.0.2 and tapestry-spring-security 2.0.1

2009-04-06 Thread Borut Bolčina
I'd love to see tapestry-spring-security work with T5.1 -Borut 2009/4/6 manuel aldana ald...@gmx.de Thiago H. de Paula Figueiredo schrieb[ [...] session rather than Tapestry's Session. I'm having this issue too. Besides this, the @Secured annotation does not work. I asked the creator

Re: Tapestry 5.1.0.2 and tapestry-spring-security 2.0.1

2009-04-06 Thread Anthony Schexnaildre
I also would love to see first class support for spring security in tapestry. I am currently having to define all this in xml. Spring Webflow is cool but I would have though security would have been higher on the priority list. -Anthony On Apr 6, 2009, at 5:35 PM, Borut Bolčina wrote:

Hidden field encoder problem

2009-04-06 Thread Andrew Court
I'm seeing an issue with the new Hidden field component in 5.1.0.2. I've written a ValueEncoder to translate between string and java.sql.Date, but this throws a class cast exception when used as the encoder parameter for the hidden field. If I use a regular TextField component and use a

Re: Form submit with bypass to required validation

2009-04-06 Thread Geoff Callender
Does this example help? It uses chenillekit's button with type submit when client-side validation is not wanted. http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/wizard/usingformfragments/START/1239080805266 Geoff On 07/04/2009, at 3:24 AM, Pedro Januário wrote: I