Hi..
If you are Realy using the  class/Widget com.google.gwt.user.client.
ui.TextArea,
wen u are giving text into that textarea object automatically it ll come in
two more lines based on the width and height of the TextArea..
Example try this code

package package.client;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.TextArea;

public class MyTextArea implements EntryPoint {

public void onModuleLoad() {
RootPanel rootPanel = RootPanel.get();
 TextArea txtrIfYouAre = new TextArea();
txtrIfYouAre.setText("If you are Realy using the  class/Widget
com.google.gwt.user.client.ui.TextArea,\r\nwen u are giving text into that
textarea object automatically it ll come in two more lines based on the
width and height of the TextArea..");
rootPanel.add(txtrIfYouAre, 38, 85);
txtrIfYouAre.setSize("209px", "97px");
}
}
On Wed, Jul 20, 2011 at 3:05 AM, Michael Vogt <[email protected]>wrote:

> Hello.
>
> > I am capturing user input (multi line)  in
> > "com.google.gwt.user.client.ui.TextArea" - storing datastore.
> > and show the same in another TextArea of another component.
> >
> > Issue, when I play it back it is completely loosing line breaks, and
> > showing as single line and beyond TextArea boundaries.
> >
> I'm not quite sure I fully understand the problem. But one thing to
> watch out for is, that linebreaks from textareas are stored as \n and
> or \r. To keep the linebreaks when displaying the text in a div, for
> example, remember that you have to replace them with <br/>.
>
> Hope this helps,
> Michael
>
> --
> 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.
>
>


-- 
----
<3 :) <3
yours.. Nandha...

-- 
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