that is a bit wrong, a cleaner way is to:

 public Component newHeader(MarkupContainer parent, String id)
                       {
                               return super.newHeader(parent,
id).setEscapeModelStrings(false);
                       }

-igor



On Mon, Apr 21, 2008 at 5:41 AM, Rikard Lindström
<[EMAIL PROTECTED]> wrote:
>
>
>  wenm wrote:
>  >
>  >
>  > Columns does not have escapemodelstrings method. I tried
>  > PropertyRenderableColumn.setEscapeContent(false), it works! But the
>  > problem is PropertyTreeColumn does not support any escape setting method,
>  > and that's the column I would like to disable the escape.
>  >
>  >
>
>  I was able to override the newHeader method, and set the escape onto the
>  Label, which seems to work fine. This was the only way I was able to put a
>  <br> that was rendered as I wanted into the column.
>
>  PropertyRenderableColumn month = new PropertyRenderableColumn(new
>  ColumnLocation(Alignment.MIDDLE, 1, Unit.PROPORTIONAL), header,
>  "userObject.oneMonth") {
>
>                         public Component newHeader(MarkupContainer parent, 
> String id)
>                         {
>                                 Label l = new Label(id, header);
>                                 l.setEscapeModelStrings(false);
>                                 return l;
>                         }
>                 };
>  --
>  View this message in context: 
> http://www.nabble.com/TreeTable-escape-HTML-does-not-work-tp16047309p16807603.html
>
>
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>  ---------------------------------------------------------------------
>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>  For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to