PDA

View Full Version : TextField not decode html entites....



eggp
23 Jan 2012, 10:29 AM
Hello...

my problem picture => http://test.eggproject.hu/gxt/textfieldentitesbugg.PNG

i use grid cell renderer... and form bindig...
grid cell renderer valus is good
form bindig value is bad :(((

i tested: ff9 and last chrome

this bug ? or browser error ? or something else ?

sorry i little speak english.... :(( (i use gtranslate)

If the code is to determine the exact error then please let me knowIf the code is to determine the exact error then please let me know

about json(gxt model)
{"ID":1,"user_email":"xxxx@xxxx.com","display_name":"XXX YYYY","user_cegnev":"","user_jogosultsag":"administrator","user_kedvezmeny":0,"user_city":0,"user_irsz":-1,"user_district":3,"user_street":241,"user_hazszam":"2813","user_emelet":"10","user_ajto":"588","user_kapucsengo":"58","user_comment":"óüöú\u0151\u0171áí","first_name":"Harangozo","last_name":"Gabor","user_telephone":"06111111","user_street2":""}

this model user_comment property wrong display textarea....

other test string =>
óüöúőűáí <script>alert("asdasd");</script>

By default, the browser converts it to you why it does not work?

thx help

harun
25 Jan 2012, 6:20 AM
Hi eggp;

I saw your black theme and it is very cool. Would you mind share theme files with us?

Best regards,

harun
25 Jan 2012, 6:48 AM
http://www.sencha.com/forum/showthread.php?47222-More-ExtGWT-themes-derived-from-ExtJS-ones

WesleyMoy
16 Feb 2012, 9:46 AM
It's very hard to see what you're trying to do in your image. You'll need to post a larger image or paste the text that you circled.

When a grid renders a string, it will be rendered as HTML. A text field will show whatever text is set to its value. If you want them to be the same, consider using the raw unescaped value in both, then write a column renderer for the grid that escapes any characters that should be escaped.