• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

custom component and character encoding

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 1400
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is this problem coming with your custom component.
Are the other regular JSF components displaying data properly?
 
Skopin Anton
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic