Ok, I have a HTML column which should parse any textcell that contain html 
tag into HTML value:

public class HTMLColumn extends Column<List<String>, String>{
    public HTMLColumn(){
          super(new ClickableTextCell(){
            public void render(Context context, 
                   SafeHtml value, 
                   SafeHtmlBuilder sb)
            {
                //String text="";
                if(value!=null){
                    //text=value.asString();
                    sb.appendHtmlConstant("<div>");
                    sb.appendHtmlConstant("<b>"+value.asString()+"</b>");
                    sb.appendHtmlConstant("</div>");
                }

            }   
       });
    }
}

ok, when testing with the text contain car<br>bike, i can see the whole 
text got bold so sb.appendHtmlConstant seem to be ok, but it did not make 
the bike to be in new line. It rendered the text like this: bold car<br>bike
.

That mean <br> was not parsed.

Is this the css problem or something happened?

http://stackoverflow.com/questions/24080177/why-br-tag-was-not-parsed-inside-custom-htmlcolumn-in-gwt

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to