English 中文(简体)
2. 专用xml文档的新线特性,使之达到超文本
原标题:Newline character in ui.xml file that makes it to the HTML
  • 时间:2011-10-18 20:41:52
  •  标签:
  • gwt
  • uibinder

I ve got a ui.xml file with the following in:

<g:TextArea>
    1. Line one

    2. Line two 
</g:TextArea>

当然,在最后的“超文本”中,这一编号为1。 第1行 第2行,一行。

我怎样才能使最后的超文本包含预期的新线特性?

最佳回答

不要把案文放在标签上,否则,你可以把它放在标签的“文字”特性中:

<g:TextArea text="Line 1&#10;Line 2"/>

<代码>&#10;。 这对我来说是trick的,但显然,这并不是说在主人内部披露案文。

问题回答

暂无回答




相关问题
Refresh the UI in gwt

I have created some custom composite widget, which listens to an events (in my case loginEvent). Once the event is caught the state of the widget changes so as the way it should look (in my case I ...

How to create a development/debug and production setup

I recently deployed inadvertently a debug version of our game typrX (typing races at www.typrx.com - try it it s fun). It was quickly corrected but I know it may happen again. After digging on ...

GWT error at runtime: ....style_0 is null

My code works fine in IE 8, but on firefox 3.5, the javascript fails to load. I used firebug to figure out why, and the error I get is (GWT detailed mode) My suspicion is that some style is not ...

GWT s hosted mode not working

I ve been stumped for a while trying to figure out why my GWT demo app isn t working in hosted mode so I went back and downloaded the Google Web Toolkit again, unzipped it and simply went to the ...

How to disable Google Visualizations Tool Tips?

Does anyone know how to disable the tool-tip boxes that popup when a Google Visualizations chart is clicked (Selected)? Following the sample code at Getting Started with Visualizations, the "...

GWT 2 CssResource how to

I have a GWT 1.7 application and I want to upgrade it to GWT 2 Milestone 2. The application uses 2 big external CSS files. In GWT 1.7 I had a public folder and put both the CSS files in the folder and ...

热门标签