Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
On Thu, Nov 19, 2009 at 1:10 AM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 18 Nov 2009 20:00:22 -0200, Ilya Obshadko > escreveu: > > > Finally, I've managed to create generic-purpose mixin that can trigger >> form submit on any type of event and on any element within t

Re: Number Formatting in TextField (T5)

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 22:02:42 -0200, Benny Law escreveu: If I need to implement it myself, I would like to know how best to provide this info to the translator on a per field basis. AFAIK, it's not possible. Should I create a NumericField component (subclass of TextField) and add parame

Re: Number Formatting in TextField (T5)

2009-11-18 Thread Benny Law
Thanks Thiago. I was hoping that someone had already implemented a generic numeric translator that allowed formatting to be specified at the field level, e.g. number of decimal places, whether or not thousands separators should be displayed, etc. If I need to implement it myself, I would like to kn

Re: simulate form submission events without Submit component

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 20:00:22 -0200, Ilya Obshadko escreveu: Finally, I've managed to create generic-purpose mixin that can trigger form submit on any type of event and on any element within t:form component. It works using standard Tapestry mechanisms (similarly to original Submit compon

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
Finally, I've managed to create generic-purpose mixin that can trigger form submit on any type of event and on any element within t:form component. It works using standard Tapestry mechanisms (similarly to original Submit component), supports multiple submit triggers within single form (analogous t

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread buckofive
> Since we recently also fixed a major bug concerning application security, I'd say we should do a 5.1.0.6 release. +1 There should also be a new version of the 5.0 branch with any new security fixes +1 -- View this message in context: http://old.nabble.com/T-5.1-vs-5.0-JSON-encoding---brea

Re: jetty embeded

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 17:09:51 -0200, Alfonso Quiroga escreveu: Hi! I'm using by now RunJettyRun plugin and works OK (I have my projects managed with M2ECLIPSE -maven-). Now I'm trying to do a StartUp.java, without the jetty plugin... I can't find util doc about this... Take a look at http://

jetty embeded

2009-11-18 Thread Alfonso Quiroga
Hi! I'm using by now RunJettyRun plugin and works OK (I have my projects managed with M2ECLIPSE -maven-). Now I'm trying to do a StartUp.java, without the jetty plugin... I can't find util doc about this... i.e. how to add .jars to the classpath, and how to set the "webapp home" (/main/webapp). Can

Re: Devoxx 2009

2009-11-18 Thread Howard Lewis Ship
Wish you had pointed out where to meet and when. I'm in the JDK7 BOF. On Wed, Nov 18, 2009 at 4:55 AM, cordenier christophe wrote: > Hi > > Is there any other Tapestry folk here at the devoxx ? >Should > Maybe we can meet at the end of the day. > > Cheers > Christophe. > -- Howard M. Lewis Sh

Res: Request to a unlocalized URL using the Locale stored on session

2009-11-18 Thread Everton Agner
Thanks a lot, Juan and Thiago! We'll try to implement this idea... :) De: Juan E. Maya Para: Tapestry users Enviadas: Quarta-feira, 18 de Novembro de 2009 16:25:55 Assunto: Re: Request to a unlocalized URL using the Locale stored on session :) u r right tiag

Re: Best server for development and for production?

2009-11-18 Thread Juan E. Maya
I use tomcat with the sysdeo plugin (http://www.eclipsetotale.com/tomcatPlugin.html), although as pointed out by Tiago tapestry reduces the need of deploy-on-change, still the code in the business layer of the application requires a redeploy. Sysdeo although not perfect, reduces the deploys to chan

Re: problem with "Secure" configuration

2009-11-18 Thread Szemere Szemere
Resurrecting an old thread. We recently upgraded from 5.0.18 to 5.1.0.x and have unsuspectingly got hammered by this feature (bug). When making application breaking changes like this between versions, it would be nice if there was a warning or error message for it. The docs are also out of date o

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
On Wed, Nov 18, 2009 at 5:59 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Wed, 18 Nov 2009 11:22:03 -0200, Ilya Obshadko > escreveu: > > ... anybody? >> > > Thanks! I thought about something similar, but I was hoping that it's possible without such kind of workaround. --

Re: DateField customization

2009-11-18 Thread Ilya Obshadko
... anybody, again? :) On Tue, Nov 17, 2009 at 9:05 AM, Ilya Obshadko wrote: > Could someone give me an idea how do I customize built-in DateField > component? > > I would like to disable Today/None buttons, and make some sort of context > dependencies in calendar itself (for example, if website

Re: Request to a unlocalized URL using the Locale stored on session

2009-11-18 Thread Juan E. Maya
:) u r right tiago! It should a RequestFilter :) My memory betrayed me :) On Wed, Nov 18, 2009 at 7:06 PM, Thiago H. de Paula Figueiredo wrote: > Em Wed, 18 Nov 2009 15:53:32 -0200, Juan E. Maya > escreveu: > >> U can store the locale of the user in a cookie or in db (if u already >> have a sess

Re: Request to a unlocalized URL using the Locale stored on session

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 15:53:32 -0200, Juan E. Maya escreveu: U can store the locale of the user in a cookie or in db (if u already have a session) and then set the desired locale in a ComponentRequestFilter. It would be something like this: Nice implementation, but why a ComponentRequestFilte

Re: Best practice for database notifications?

2009-11-18 Thread Kalle Korhonen
On Wed, Nov 18, 2009 at 7:48 AM, wrote: > Are you looking specifically for a Hibernate solution? Not necessarily. > If you use PostgreSQL, there are notifications such as Listen / Notify, which > I expect would do the job. Thanks, a good idea. Since I started using H2, I've become a firm beli

Re: Best server for development and for production?

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 15:54:04 -0200, Alessandro Bottoni escreveu: Hi All, Hi! in your opinion, which is the best server (servlet container, actually) for Tapestry? Definitely, Jetty, at least for development, maybe also for production. Small, easy to configure, fast. That's what I use

Best server for development and for production?

2009-11-18 Thread Alessandro Bottoni
Hi All, in your opinion, which is the best server (servlet container, actually) for Tapestry? It seems that Glassfish has an advantage over other solutions in the development environment because of the deploy-on-change feature supplied by NetBeans and Eclipse plug-ins but... What about Tomcat? Wh

Re: Request to a unlocalized URL using the Locale stored on session

2009-11-18 Thread Juan E. Maya
Hi Everton, U can store the locale of the user in a cookie or in db (if u already have a session) and then set the desired locale in a ComponentRequestFilter. It would be something like this: public class LocaleComponentRenderRequestFilter implements ComponentRequestFilter { private fina

Res: Request to a unlocalized URL using the Locale stored on session

2009-11-18 Thread Everton Agner
Sorry about the previous e-mail title... I was going to change before sending it and I forgot. Well... here's the problem. I didn't explain it well before: - My app has 2 Supported Languages : 'pt-BR' (default) and 'en'. - By default, when the app is acessed with an Unlocalized URL (like http:

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread David Rees
On Wed, Nov 18, 2009 at 1:57 AM, Howard Lewis Ship wrote: > On Wed, Nov 18, 2009 at 1:52 AM, Markus Joschko > wrote: >> But doesn't stabilizing mean to fix at least the major bugs? >> Especially if patches are provided? Otherwise it looks more like >> hibernating. > > True; the big question is w

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Tue, 17 Nov 2009 16:50:52 -0200, Kalle Korhonen escreveu: Thanks Ciaran, voted. Thiago, would you mind doing the honors? (Since I know you read this anyway :) How do you know I'd read your message? :P It's been months since my last commit, unfortunately. I've just applied the patch, ra

Re: simulate form submission events without Submit component

2009-11-18 Thread Toby Hobson
I do something similar ... in fact I have created a mixin which I call AjaxDelegate ... it basically wires up elements so that a client side event on one component invokes a click event on a hidden submit button Toby 2009/11/18 Thiago H. de Paula Figueiredo > Em Wed, 18 Nov 2009 11:22:03 -0200,

Re: Best practice for database notifications?

2009-11-18 Thread P . Stavrinides
Hi Kalle Are you looking specifically for a Hibernate solution? If you use PostgreSQL, there are notifications such as Listen / Notify, which I expect would do the job. Kind regards, Peter - Original Message - From: "Kalle Korhonen" To: "Tapestry users" Sent: Tuesday, 17 November, 2

Re: simulate form submission events without Submit component

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 11:22:03 -0200, Ilya Obshadko escreveu: ... anybody? I would add a non-visible submit button (not the Submit component, an ordinary ) and then invoke submit.click(). That's what worked with AJAX submissions for me. -- Thiago H. de Paula Figueiredo Independent Java,

RE: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Blower, Andy
+1 (+40 if I count all T5 developers here ;-) Although I suggested a 5.1.1.x release in my previous post, quoted from below, I don't care what it's called as long as there's a non 5.2 bug-fix release. (preferably more than one release..) "I think you should write the book, but only if there's

Custom error-page for HTTP error 401 with basic authentication

2009-11-18 Thread Philipp Bornheimer
Hi folks, I'm trying to configure a custom error page for the HTTP error 401 (authentication failed). See appenix for my web.xml. Without the error-page-Tag everything works fine. This means that an authentication window pops up. The HTTP response containt the following line: WWW-Authenticat

Re: Grid sort images override

2009-11-18 Thread Joost Schouten (ml)
or you use css: table.t-data-grid thead tr th a + a { display:none; } table.t-data-grid thead tr th a.t-sort-column-descending { background-image:url(path/to/your/image); } cheers, Joost Carl Crowder wrote: You could make images with the same name inside the same folder structure inside

Re: Grid sort images override

2009-11-18 Thread Carl Crowder
You could make images with the same name inside the same folder structure inside your code. Your code will be on the classpath first (especially if using Maven) and therefore will override. There may be a less hacky way though! Blšták Peter wrote: Hi Is there any suggested way how to change

Grid sort images override

2009-11-18 Thread Blšták Peter
Hi Is there any suggested way how to change default images used by GridColumns to indicate sort column state. I would like to use different GIU design. In other words, I need to override usage of these images: org/apache/tapestry5/corelib/components/sortable.png org/apache/tapestry5/corelib/com

Re: simulate form submission events without Submit component

2009-11-18 Thread Ilya Obshadko
... anybody? On Tue, Nov 17, 2009 at 10:03 PM, Ilya Obshadko wrote: > I have a task that looks quite simple, but still have a problem > accomplishing it. > > Suppose you have a form with Select control, and onChange event on that > control should generate form submission event. > > I've created a

Devoxx 2009

2009-11-18 Thread cordenier christophe
Hi Is there any other Tapestry folk here at the devoxx ? Maybe we can meet at the end of the day. Cheers Christophe.

Status of TAP5-729

2009-11-18 Thread Andrey Larionov
I try to port some application from Spring to tapestry (i don't like one IoC container over another), but this issue is blocker for me. Can anybody describe state? - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org Fo

Re: Page pool monitoring

2009-11-18 Thread Ciaran Wood
I would also be interested in a nice way of doing this. The only way I have managed it was to copy/paste the PagePoolImpl and PagePoolCache classes and add calls to a monitoring service whenever pages get added/removed from the available and inUse LinkedLists in the PagePoolCache. Not particularly

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Andreas Andreou
yes, it makes sense to do that 'bug-fix' release once TAP5-714 is fixed On Wed, Nov 18, 2009 at 1:02 PM, Max Weißböck wrote: > > Am 18.11.2009 um 11:20 schrieb Ulrich Stärk: > >> Since we recently also fixed a major bug concerning application security, >> I'd say we should do a 5.1.0.6 release.

Page pool monitoring

2009-11-18 Thread Carl Crowder
Hello, Is there a way to monitor the size of the various page pool caches? Carl - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Max Weißböck
Am 18.11.2009 um 11:20 schrieb Ulrich Stärk: > Since we recently also fixed a major bug concerning application security, I'd > say we should do a 5.1.0.6 release. +1 Max - To unsubscribe, e-mail: users-unsubscr...@tapestry.a

Validation failing in IE6/7

2009-11-18 Thread Andrew Miller
Hi everyone, I'm having a problem with the Tapestry validation in IE6/7. I'll try to explain as best as I can - please feel free to ask for more details if required. I've created a lightbox component (using Control.Window - http://livepipe.net/control/window). The requirement is to have the ligh

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Thiago H. de Paula Figueiredo
Em Wed, 18 Nov 2009 08:20:46 -0200, Ulrich Stärk escreveu: Since we recently also fixed a major bug concerning application security, I'd say we should do a 5.1.0.6 release. +1 -- Thiago H. de Paula Figueiredo Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and i

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Ulrich Stärk
Since we recently also fixed a major bug concerning application security, I'd say we should do a 5.1.0.6 release. I wouldn't force my users to upgrade to a new version - aside from it being an alpha version - just in order to receive bug fixes. In the end it *might* mean having to modify a perfe

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Markus Joschko
Personally I am fine with a 5.2 alpha release as I don't have to test too much functionality. But I guess if tapestry wants to be taken seriously in the enterprise world it needs to provide bug fixing releases for existing stable releases as otherwise the testing departments are crying for complete

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Howard Lewis Ship
True; the big question is whether bugs should be fixed for 5.1 (i.e., leading up to a 5.1.0.6 release perhaps) or whether they can be bundled into a 5.2 alpha release. On Wed, Nov 18, 2009 at 1:52 AM, Markus Joschko wrote: > But doesn't stabilizing mean to fix at least the major bugs? > Especiall

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Markus Joschko
But doesn't stabilizing mean to fix at least the major bugs? Especially if patches are provided? Otherwise it looks more like hibernating. Markus On Wed, Nov 18, 2009 at 10:30 AM, Howard Lewis Ship wrote: > On Tue, Nov 17, 2009 at 11:56 AM, Kalle Korhonen > wrote: >> On Tue, Nov 17, 2009 at 1

Obtaining Messages reference in my test

2009-11-18 Thread Joost Schouten (ml)
Hi, In some cases I want to assert that the correct messages (eg ${message:my.prop.id}) have been printed. But I don't want hardcode the value of these messages in my tests. When I try to inject (through testify) or try to obtain from the TapestryTester.getRegistry(Messages.class) I get the a

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-18 Thread Howard Lewis Ship
On Tue, Nov 17, 2009 at 11:56 AM, Kalle Korhonen wrote: > On Tue, Nov 17, 2009 at 11:01 AM, David Rees wrote: >> On Tue, Nov 17, 2009 at 2:00 AM, Ciaran Wood wrote: >>> The issue you were thinking of is >>> https://issues.apache.org/jira/browse/TAP5-714 - there is a patch w/tests >>> attached to

Re: 'translate' is bound to null

2009-11-18 Thread Inge Solvoll
Got this working by creating a translator. I got confused because I already contributed a DateCoercer to TypeCoercions, I thought that would be enough. I guess I don't fully understand how this system works. I think I read a discussion somewhere about T5 containing too many ways of translating val