Re: Number Formatting in TextField (T5)

2009-11-17 Thread Thiago H. de Paula Figueiredo
Em Tue, 17 Nov 2009 20:12:22 -0200, Benny Law escreveu: Is there a simpler way to do this, i.e. specify formatting for TextField? If custom Translators is the way to go, has anyone built something for numbers that reflects the current locale? Implement your own translator, as it probably

Number Formatting in TextField (T5)

2009-11-17 Thread Benny Law
I am having some difficulty finding documentation and examples on how to control the formatting of numbers in TextField components. I have a page where I use two TextFields to display the latitude and longitude of a GPS location in decimal degrees. The default formatting provided by Tapestry only d

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread David Rees
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

Localization

2009-11-17 Thread Everton Agner
There is any way to call a i18n page without using a localized url? Sample: 1. User selected some language and that was stored in his session. 2. When he calls a new url, without the language prefix, the result page will use the selected language (stored in session), instead of the defau

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread Kalle Korhonen
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 the issue so a committer can probably fix this one! > > Thanks

simulate form submission events without Submit component

2009-11-17 Thread Ilya Obshadko
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 simple mixin for that. public class SubmitOnChange { @Environmental pr

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread David Rees
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 the issue so a committer can probably fix this one! Thanks, voted. BTW, it affects all versions of IE that I tested. I

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread Kalle Korhonen
Thanks Ciaran, voted. Thiago, would you mind doing the honors? (Since I know you read this anyway :) Kalle 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 the issue

Re: ProgressiveDisplay component - context retrieval

2009-11-17 Thread Andy Pahne
Thiago H. de Paula Figueiredo schrieb: Em Tue, 17 Nov 2009 11:32:40 -0200, Andy Pahne escreveu: Now I want to know: how can I access the ProgressiveDisplay's context inside my custom RetrieveAvailabilityAndPrice component. I don't know how to do that. Create a parameter in RetrieveAvailabi

Res: Dynamic Locale changing

2009-11-17 Thread Everton Agner
Thanks Juan and Thiago! It's exactly what I need for the Symbol retrieving :) De: Juan E. Maya Para: Tapestry users Enviadas: Terça-feira, 17 de Novembro de 2009 16:10:20 Assunto: Re: Dynamic Locale changing Sorry to interrupt :) U can inject the supported

Re: Dynamic Locale changing

2009-11-17 Thread Juan E. Maya
Sorry to interrupt :) U can inject the supported languages by injecting the symbol in your layout. Something like: @Inject @Symbol(SymbolConstants.SUPPORTED_LOCALES) private String supportedLanguages; Remember the languages are comma separated so just split them. String[] languages = this.supp

Res: Dynamic Locale changing

2009-11-17 Thread Everton Agner
Thanks for the response! "Welcome to the Tapestry world! :)" My pleasure! The Framework is great! ;) Here's what I'm trying to do... In the Top of my page there will be a sequence of flags (the countries related to the supported languages of the app). Except for the Flag of the current country

Re: Dynamic Locale changing

2009-11-17 Thread Thiago H. de Paula Figueiredo
Em Tue, 17 Nov 2009 13:46:12 -0200, Everton Agner escreveu: To begin with... I am learning Tapestry from 1 month ago. Welcome to the Tapestry world! :) @Inject @Property @Path("context:/layout/images/brazil.png") private Asset flagBrazil; You're doing it in a way more complex that it ne

Re: ProgressiveDisplay component - context retrieval

2009-11-17 Thread Thiago H. de Paula Figueiredo
Em Tue, 17 Nov 2009 11:32:40 -0200, Andy Pahne escreveu: Now I want to know: how can I access the ProgressiveDisplay's context inside my custom RetrieveAvailabilityAndPrice component. I don't know how to do that. Create a parameter in RetrieveAvailabilityAndPrice to do that. -- Thiago H

Dynamic Locale changing

2009-11-17 Thread Everton Agner
To begin with... I am learning Tapestry from 1 month ago. I am having problems with the Locale changing support in my application. To see the thing working, I hardcoded the language changing in the application (pt-BR and en support). Here's the code: Page Template Code (only the necessary for

ProgressiveDisplay component - context retrieval

2009-11-17 Thread Andy Pahne
I have defined a ProgressiveDisplay component like in the snippet below. Now I want to know: how can I access the ProgressiveDisplay's context inside my custom RetrieveAvailabilityAndPrice component. I don't know how to do that. Thank you, Andy

Re: T 5.1 vs 5.0 JSON encoding - breaks IE8

2009-11-17 Thread Ciaran Wood
The issue you were thinking of is https://issues.apache.org/jira/browse/TAP5-714 - there is a patch w/tests attached to the issue so a committer can probably fix this one! Ciaran On 17/11/2009 7:20am, "Kalle Korhonen" wrote: > On Mon, Nov 16, 2009 at 11:14 PM, David Rees wrote: >> Yep, alread