Hi cInAction,

The reason why the line breaks you've added work in hosted mode is because
actual  bytecode is running in hosted mode, meaning the "\r" you added get
correctly interpreted by the JVM and create line breaks. In web mode, this
is rendered as JavaScript and HTML, and as you know, "\r" is not interpreted
as a carriage return or line break in HTML. You should instead either modify
the CSS around your dialog box to wrap text as you see fit for your app or
split up your messages across labels that can be styled appropriately.

Hope that helps,
-Sumit Chandel

On Fri, Dec 19, 2008 at 1:42 PM, cInAction <[email protected]> wrote:

>
> Olá!!!
> sou iniciante em gwt e eu estava tentando criar uma dialogbox, somando
> Strings com mensagens de erro. Mas eu queria que cada mensagem fosse
> dada em linhas separadas. Entao, no final das strings eu inseri '\r';
> em hostmode funciona, porém no browser não. há outra forma de fazer
> isso ou é um erro do GWT?
>
> -----------------------------------------------------------------------------------------------------------------------------------------
> Hello!!
> I am novice in gwt and I was trying to create a dialogbox, adding
> strings with error messages. But I wanted each message was given on
> separate lines. Then at the end of the string I enter '\ r'; in
> hostmode works, but not in the browser. There is another way to do
> this or is it a mistake of gwt?
>
>
> -----------------------------------------------------------------------------------------------------------------------------------------
> Traduzido com "google tradutor"
>
> Translated by "google translator"
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to