Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/shared/model/CollectionRecord.java @ 607:3acc631efdf0
Escape project's names in the project list.
flys-client/trunk@2214 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Thu, 23 Jun 2011 10:07:52 +0000 |
parents | 53ad6dd2cb2b |
children | 80626c4a5bbf |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/shared/model/CollectionRecord.java Thu Jun 23 09:29:46 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/shared/model/CollectionRecord.java Thu Jun 23 10:07:52 2011 +0000 @@ -2,6 +2,10 @@ import java.util.Date; +import com.google.gwt.safehtml.shared.SafeHtml; +import com.google.gwt.safehtml.shared.SafeHtmlBuilder; +import com.google.gwt.safehtml.shared.SafeHtmlUtils; + import com.smartgwt.client.widgets.grid.ListGridRecord; @@ -61,7 +65,12 @@ * @return the name of the collection. */ public void setName(String name) { - setAttribute("name", name); + SafeHtmlBuilder b = new SafeHtmlBuilder(); + b.appendEscaped(name); + + SafeHtml html = b.toSafeHtml(); + + setAttribute("name", html.asString()); }