[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Thin Client: Problems with special characters  XML
Forum Index -> Development
Author Message
kretzler

Power User

Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline

Hello,

I have problem with characters like ä, ö, ü, ... This characters are transformed into ä, ö, ü.

The same effect I saw in the enterprise client demo workplace. In the 'Field' area type for 'First Name' ä, ö, ü and click the button 'Check'.


Any ideas?

Thanks,
Ralph
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Yes, thanks... it's a bit strange. The normal JSF processing is passing back normal values in the wrong encoding. Now we explicitly tell the request that is coming into the server processing, that it is UTF-8 and it works...

Available with next update.

Thanks! Björn

Björn Müller, CaptainCasa GmbH
kretzler

Power User

Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline

Hello,

thanks for your fast response and help.

I installed the update and tested the application but there is a strange problem now.

I am getting a NumberFormatException if a try to save a page with some fields. It doesnt matter if there are special signs on this page or not.
Code:
 2009:03:03 10:42:40:538 | 12     | SEVERE   | 
 .......... Stacktrace Info ..........
 java.lang.NumberFormatException: For input string: "'LASTNAME'"
 	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
 	at java.lang.Integer.parseInt(Integer.java:447)
 	at java.lang.Integer.valueOf(Integer.java:553)
 	at org.eclnt.jsfserver.util.StackedValueBinding.setValue(StackedValueBinding.java:208)
 	at org.eclnt.jsfserver.util.StackedValueBinding.setValue(StackedValueBinding.java:173)
 	at org.eclnt.jsfserver.elements.BaseComponent$ValueBindingExec.execute(BaseComponent.java:58)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:611)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at org.eclnt.jsfserver.elements.BaseComponent.processUpdates(BaseComponent.java:615)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at javax.faces.component.UIForm.processUpdates(UIForm.java:196)
 	at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
 	at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:363)
 	at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:81)
 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.eclnt.jsfserver.util.ThreadingFilter.doFilter(ThreadingFilter.java:173)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.eclnt.jsfserver.util.CompressionFilter.doFilter(CompressionFilter.java:33)
 	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
 	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
 	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
 	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
 	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
 	at java.lang.Thread.run(Thread.java:595)
 


Then I set a breakpoint at Integer.class Method valueOf(String s). The value of the argument is 'fields['LASTNAME']' and the argument itself 'LASTNAME' as above.

I am using a hashmap to fill the fields. The code worked fine before the update.
Code:
             bct = new HTFIELDComponentTag();
             bct.setText("#{wp." + m_contentReplacePrefix + ".genedit.fields['" + field.getDBFieldName() + "'].fieldValue}");
             bct.setMaxlength(field.getFieldLength());
             bct.setStyle("#{wp." + m_contentReplacePrefix + ".genedit.styles['" + field.getDBFieldName() + "']}");
             bct.setStyleClass(STYLE_ALL_FIELD);
 



Any ideas or do you need more information?


Thanks a lot,
Ralph
[WWW]
CaptainCasa

Power User
[Avatar]

Joined: 21/11/2007 12:23:06
Messages: 5510
Offline

Are you sure that the update has properly come through? This was an error which was fixed last week.
Sorry, if I double-check...

Björn

Björn Müller, CaptainCasa GmbH
kretzler

Power User

Joined: 21/11/2007 13:00:57
Messages: 73
Location: Karlsruhe
Offline

When starting tomcat within the console I see this line ... 2009:03:04 10:39:57:009 | 10 | SEVERE | CaptainCasa Enterprise Client Version: 2_5_20090302_1

Is there something else I can check?

Ralph
[WWW]
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team