I'm using lucene in my web app.
Now i want to highlight specific terms from my search result and i'm using the datatable with jsf for showing the results.
Now for the higlighting part i'm making a simpleHtmlFormatter:
And in css i give it a background-color yellow.
but in my webpage i get this result:
So the problem is he prints the span instead of taking it as html...
jsp page:
Can anyone help?
kind regards,
Thomas
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35247
7
posted
0
Isn't that exactly what the code should output?
How are you applying the CSS - are you sure the stylesheet is found, and that the proper spans are correctly selected by the rule for "highlight"?