You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Jesse Alexander (KBSA 21)" <al...@credit-suisse.com> on 2005/03/10 11:01:04 UTC

Problem: ResponseWriter.writeAttribute esacpes the text...

I have to write an applicaiton that uses the title-attribute of an image 
to show the user the detailed error-message for an input-field in his 
own language (-> i18n issues...).
Unfortunately:
- the writeAttribute-method escapes the string sent as the 
  value-argument and therfor it is inpossible to write correct title-tags.
- the RepsonseWriter is one of the rare classes that can be replaced with
  a specialized version using the faces-config (unlike VariableResolver,...)

Does somebody know a possible solution for this problem? (or a hint...)

regards
Alexander


Re: Problem: ResponseWriter.writeAttribute esacpes the text...

Posted by Heath Borders <he...@gmail.com>.
I think you can use the writeURIAttribute method, and that won't
escape your text. I'm not sure if that's specifically the use it was
intended for, but it works.


On Thu, 10 Mar 2005 11:01:04 +0100, Jesse Alexander (KBSA 21)
<al...@credit-suisse.com> wrote:
> I have to write an applicaiton that uses the title-attribute of an image
> to show the user the detailed error-message for an input-field in his
> own language (-> i18n issues...).
> Unfortunately:
> - the writeAttribute-method escapes the string sent as the
>  value-argument and therfor it is inpossible to write correct title-tags.
> - the RepsonseWriter is one of the rare classes that can be replaced with
>  a specialized version using the faces-config (unlike VariableResolver,...)
> 
> Does somebody know a possible solution for this problem? (or a hint...)
> 
> regards
> Alexander
> 
> 


-- 
-Heath Borders-Wing
hborders@mail.win.org