Seam+Icefaces: Change of locale with localeSelector doesnt work
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
Seam+Icefaces: Change of locale with localeSelector doesnt work  XML
Forum Index -> JBoss Seam Integration
Author Message
littlewing

Joined: 16/11/2006 00:00:00
Messages: 5
Offline


Hello,
I have downloaded and installed successfully the seam icefaces integration sample on JbossAS. Unfortunately, When I d like to add the following code in order to change the locale nothings append (on screen).

Code:
 <h:form id="changeLocale">
 		<div><ice:selectOneMenu styleClass="selectTagMenu"
 			value="#{localeSelector.localeString}" partialSubmit="true">
 			<f:selectItems value="#{localeSelector.supportedLocales}" />
 		</ice:selectOneMenu></div>
 		<ice:outputText value="#{localeSelector.localeString}" />
 	</h:form>


I trapped the HTTP communication :
Code:
http://127.0.0.1:8080/seam-booking/block/receive-send-updates
 
 POST /seam-booking/block/receive-send-updates HTTP/1.1
 Host: 127.0.0.1:8080
 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.8.1) Gecko/20061010 Firefox/2.0
 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
 Accept-Language: fr-fr,en;q=0.5
 Accept-Encoding: gzip,deflate
 Accept-Charset: ISO-8859-15,utf-8;q=0.7,*;q=0.7
 Keep-Alive: 300
 Connection: keep-alive
 Content-Type: application/x-www-form-urlencoded; charset=UTF-8
 Referer: http://127.0.0.1:8080/seam-booking/home.seam
 Content-Length: 174
 Cookie: redirectViewNumber=1,; oracle.uix=0^^GMT+1:00; JSESSIONID=ACB4C2D978EE96398F815AFD5B6F2C44
 Pragma: no-cache
 Cache-Control: no-cache
 focus=&partial=true&changeLocale=&icefacesCssUpdates=&viewNumber=1&icefacesID=A8gu7vk2KkTB0f0Dr8kxAw&changeLocale%3A_id23=en_US&focus_hidden_field=&rand=0.34443614749203433
 
 
 HTTP/1.x 200 OK
 Server: Apache-Coyote/1.1
 X-Powered-By: Servlet 2.4; JBoss-4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)/Tomcat-5.5
 Content-Type: text/xml;charset=UTF-8
 Content-Length: 422
 Date: Thu, 07 Dec 2006 17:24:31 GMT
 ----------------------------------------------------------
 
 I suppose this is PersistenceServlet fault 
 



Could you help to solve this problem please ?
Regards,
Alexandre
bobbarkermtl

Joined: 13/12/2006 00:00:00
Messages: 1
Offline


Hi,

I do have the same issue. Is there a fix or a workaround available?

Thanks,
Patrick
philip.breau


Joined: 08/05/2006 00:00:00
Messages: 2691
Online


Hi,

I'm not sure if there's something new that Seam's adding to the issue here, but we have the same issue in non-Seam ICEfaces. The locale change doesn't take effect until a page reload. There's a workaround in directly using a HashMap here.

Thanks,
Philip

.
Sickness06

Joined: 06/02/2007 00:00:00
Messages: 1
Offline


Is there already a 'simple' solution for this problem?
 
Forum Index -> JBoss Seam Integration
Go to:   
Powered by JForum 2.1.7ice © JForum Team