aspose file tools
The moose likes JSF and the fly likes custom component and character encoding Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "custom component and character encoding" Watch "custom component and character encoding" New topic
Author

custom component and character encoding

Skopin Anton
Greenhorn

Joined: Apr 06, 2005
Posts: 2
Hello

I write my own component that represent a tree.
But I have a question.

If i write in jsp page a tag
<h utputText value="main page"/>
where text "main page" in other language (Russian)
JSF will output next html code

(in code i put a space char between all char`s)

I create my component, tag and renderer.

In renderer I create html code for tree

or

where WRITER is a context.getResponseWriter();

In html code that create a component is
not exactly what I want see (see above ).

i.e. that writer not decode russain symbols.

How correct this??

JSF 1.1 jboss 3.2.3 tomcat 4

p.s. sorry for bad english
Varun Khanna
Ranch Hand

Joined: May 30, 2002
Posts: 1400
Is this problem coming with your custom component.
Are the other regular JSF components displaying data properly?


- Varun
Skopin Anton
Greenhorn

Joined: Apr 06, 2005
Posts: 2
Hello Varun

Other standart component are displaying data propertly.
And other my custom component also ok.

In other my component i use next code:
(my buttons)

and russian text in this button is ok adn look like

[ April 07, 2005: Message edited by: Skopin Anton ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom component and character encoding
 
Similar Threads
struct in java
Custom JSF Tag & Facelets
Exception -- java.lang.StackOverflowError
Something i'm extremely confused on
Game Programming Problem! J2ME