I agree but when I try not to escape it I don't manage...

For memory, the code is the following :
public class LabelIssueDemoPage extends BasePage {
       public LabelIssueDemoPage(){
               super();
               FeedbackPanel feedback = new FeedbackPanel("feedback");
               feedback.setOutputMarkupId(true);
               feedback.setEscapeModelStrings(false);
               add(feedback);
               info( getLocalizer().getString("message.test2", this,
               "Testing... <br /> done !"));
       }
}

<wicket:extend>
       <wicket:message key="message.test1">You've been
disconnected.</wicket:message>
       <div wicket:id="feedback"> Feedback messages will be here </div>
       <table>
               <tr>
                       <td>Line 5</td>
               </tr>
       </table>
</wicket:extend>

Best regards
ZedroS

On 4/19/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote:
> wicket:message messages come from property files, you control completely.
>
> messages in feedbackpanel can include user-entered text, so it is the safest
> to escape by default.
>
> -igor
>
>
>
>  On 4/19/07, ZedroS Schwart <[EMAIL PROTECTED]> wrote:
> >
> > Hi igor
> >
> > I've advanced on this issue. I'm putting my message to be escaped in a
> > feedbackpanel, which apparently escapes html by default.
> >
> > When searching for a solution, I found this :
> >
> http://www.nabble.com/-Wicket-user--how-to-unescape-markup-of-the-feedbackpanel%27s-model-tf3198807.html#a8881144
> >
> > However, when trying to use feedback.setEscapeModelStrings(false);
> > it's still doesn't work. Does I do something wrong ?
> >
> > My full code is (wicket 1.3 latest snapshot) :
> > public class LabelIssueDemoPage extends BasePage {
> >         public LabelIssueDemoPage(){
> >                 super();
> >                 FeedbackPanel feedback = new FeedbackPanel("feedback");
> >                 feedback.setOutputMarkupId(true);
> >                 feedback.setEscapeModelStrings(false);
> >                 add(feedback);
> >                 info( getLocalizer().getString("message.test2", this,
> >                 "Testing... <br /> done !"));
> >         }
> > }
> >
> > <wicket:extend>
> >         <wicket:message key="message.test1">You've been
> disconnected.</wicket:message>
> >         <div wicket:id="feedback"> Feedback messages will be here </div>
> >         <table>
> >                 <tr>
> >                         <td>Line 5</td>
> >                 </tr>
> >         </table>
> > </wicket:extend>
> >
> > BTW, I'm quite surprised that the current default behavior for
> > <wicket:message> is to render html properly and not for messages
> > inside a panel.
> >
> > Thanks in advance
> > ZedroS
> >
> >
> -------------------------------------------------------------------------
> > This SF.net email is sponsored by DB2 Express
> > Download DB2 Express C - the FREE version of DB2 express and take
> > control of your XML. No limits. Just data. Click to get it now.
> > http://sourceforge.net/powerbar/db2/
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to