HTML cell contents are incorrectly rendered in the filter

Issue #23 resolved
altmany created an issue

``` What steps will reproduce the problem? 1. Create a JTable with some HTML cell contents. For example: "<html><b>bold text" 2. Notice that the cell displays the cell contents correctly (i.e., as a bold text in this example). This is because JTables accept HTML strings, just as in other Swing components. 3. Apply a filter with auto choices to this table

What is the expected output? What do you see instead? The filter displays the data as "\<html><b>bold text" instead of rendering it as an HTML-formatted label. This makes the filter ugly and unusable for any table column that contains HTML contents.

What version of the product are you using? On what operating system? 4.2.0 on JVM 1.6.0u17, WinXP

Please provide any additional information below. Notice that if I use CustomChoices instead of the AutoChoices, then the HTML string

  • does* render as expected (i.e., with all the relevant HTML formatting).


Original issue reported on by `altmany` on 2011-12-12 15:55:46

Comments (2)

  1. coderazzi coderazzi repo owner

    ``` Hi,

    Yep, I see the problem; the reason why the filter displays it as '\<html>....' is because when it is evaluated, without the initial backslash it would interpretate it as the minus operator.

    In addition, the default filter works as a regular expression matcher, so it is totally oblivious to html content -would work in most of the cases, anyway.

    I will check how to better implement it,


    Lu. ```

    Original issue reported on by `coderazzi` on 2011-12-17 09:12:26

  2. coderazzi coderazzi repo owner

    ``` Fixed on release 4.3.0 ```

    Original issue reported on by `coderazzi` on 2012-01-16 22:44:46

  3. Log in to comment