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 kalle.o.korho...@gmail.com wrote: On Mon, Nov 16, 2009 at 11:14 PM, David

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 t:ProgressiveDisplay

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

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 andy.pa...@gmail.com 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

Re: Dynamic Locale changing

2009-11-17 Thread Thiago H. de Paula Figueiredo
Em Tue, 17 Nov 2009 13:46:12 -0200, Everton Agner everton_ag...@yahoo.com.br 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

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

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 =

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 maya.j...@gmail.com Para: Tapestry users users@tapestry.apache.org Enviadas: Terça-feira, 17 de Novembro de 2009 16:10:20 Assunto: Re: Dynamic Locale changing Sorry

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 andy.pa...@gmail.com 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

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 ciar...@gamesys.co.uk wrote: The issue you were thinking of is https://issues.apache.org/jira/browse/TAP5-714 - there is a patch w/tests

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 ciar...@gamesys.co.uk 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

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

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 dree...@gmail.com wrote: On Tue, Nov 17, 2009 at 2:00 AM, Ciaran Wood ciar...@gamesys.co.uk 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

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

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 kalle.o.korho...@gmail.com wrote: On Tue, Nov 17, 2009 at 11:01 AM, David Rees dree...@gmail.com wrote: On Tue, Nov 17, 2009 at 2:00 AM, Ciaran Wood ciar...@gamesys.co.uk wrote: The issue you were thinking of is

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