string-binding problem

Christian Sell <[email protected]> Tue, 14 Jan 2003 19:05:25 +0100
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <[email protected]>
Hello,

On one of my pages, I am using an Insert component with a string-binding 
parameter. On the same page, I have a form with a Select component which 
allows setting the Locale. After setting the locale, the same page is 
redisplayed.

Now it turns out that when the locale is set, the Insert element does 
not change its appearance according to the new locale. Only after 
visiting another page and returning to the previous one, the new 
localized string is shown.

I went to the source code and discovered that string-bindings are only 
evaluated once when the component is first created - in method 
ParameterManager.setup(IRequestCycle cycle). It seems that when the same 
page is redisplayed after changing the locale, this does not happen.

I consider this a bug. My suggestion is that StringBinding.isInvariant() 
should return false, and not true as is currently the case.

objections? Or is there a workaround?

Christian



-------------------------------------------------------
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en