Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Ext GWT Premium Member
    Join Date
    Jan 2009
    Location
    Colorado Springs, CO
    Posts
    381
    Vote Rating
    5
    DavidHoffer is on a distinguished road

      0  

    Question TextButton won't display HTML text

    TextButton won't display HTML text


    I'm trying to get a TextButton to display HTML text but it keeps rendering that in plain text, how do I fix this?

  2. #2
    Sencha User
    Join Date
    Jan 2012
    Posts
    21
    Vote Rating
    0
    robferguson is on a distinguished road

      0  

    Default


    Hi,

    Are you using setText() or setHTML() ?

    Cheers
    Rob

  3. #3
    Ext GWT Premium Member
    Join Date
    Jan 2009
    Location
    Colorado Springs, CO
    Posts
    381
    Vote Rating
    5
    DavidHoffer is on a distinguished road

      0  

    Default


    Rob,

    I'm calling setHTML() however it does the same thing as setText().

    -Dave

  4. #4
    Sencha User
    Join Date
    Jan 2012
    Posts
    21
    Vote Rating
    0
    robferguson is on a distinguished road

      0  

    Default


    Hi,

    Interesting, the implementations are different:

    Code:
      @Override
      public void setText(String text) {
        cell.setText(text);
        redraw();
        // redrawTask.delay(1);
      }
    
      @Override
      public void setHTML(SafeHtml html) {
        setHTML(html.asString());
      }
    
      @Override
      public void setHTML(String html) {
        cell.setHTML(html);
        redrawTask.delay(1);
      }
    Cheers
    Rob

  5. #5
    Sencha - GXT Dev Team
    Join Date
    Feb 2009
    Location
    Minnesota
    Posts
    2,734
    Vote Rating
    90
    Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light Colin Alworth is a glorious beacon of light

      0  

    Default


    The implementations are different, but the apparent effect is the same - thanks for reporting this.

Thread Participants: 2