comparison 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
comparison
equal deleted inserted replaced
606:69c0a6ecad57 607:3acc631efdf0
1 package de.intevation.flys.client.shared.model; 1 package de.intevation.flys.client.shared.model;
2 2
3 import java.util.Date; 3 import java.util.Date;
4
5 import com.google.gwt.safehtml.shared.SafeHtml;
6 import com.google.gwt.safehtml.shared.SafeHtmlBuilder;
7 import com.google.gwt.safehtml.shared.SafeHtmlUtils;
4 8
5 import com.smartgwt.client.widgets.grid.ListGridRecord; 9 import com.smartgwt.client.widgets.grid.ListGridRecord;
6 10
7 11
8 /** 12 /**
59 * Returns the name of the collection. 63 * Returns the name of the collection.
60 * 64 *
61 * @return the name of the collection. 65 * @return the name of the collection.
62 */ 66 */
63 public void setName(String name) { 67 public void setName(String name) {
64 setAttribute("name", name); 68 SafeHtmlBuilder b = new SafeHtmlBuilder();
69 b.appendEscaped(name);
70
71 SafeHtml html = b.toSafeHtml();
72
73 setAttribute("name", html.asString());
65 } 74 }
66 75
67 76
68 /** 77 /**
69 * Returns the name of the collection or the uuid if no name is specified. 78 * Returns the name of the collection or the uuid if no name is specified.

http://dive4elements.wald.intevation.org