Thank you, thank you. I missed that setEscapeModelStrings(), it works now like a charm now. My boss will be happy :)

Kent Tong wrote:
 <wicket <at> rozkovec.info> writes:

Those parts are important:

<!--[if IE 7]><!--></a><!--<![endif]-->
<!--[if lte IE 6]></td></tr></table></a><![endif]-->

the markup which is seen by the browser is not illegal, browser see
correct tags <a>...</a> in the ouput, one of the </a> tags is always
commented for the browser, which one depends on the browser type, only
wicket can see both closing tags and fires an error.

Try:

public class RawLabel extends Label {
        public RawLabel(String id, IModel model) {
                super(id, model);
                setEscapeModelStrings(false);
        }
}

public class RawOutput extends WebPage {
  public RawOutput() {
    RawLabel outerConditionalStart = new RawLabel("outerConditionalStart",
        new Model("<!--[if lte IE 6]><table><tr><td><![endif]-->"));
    RawLabel outerConditionalEnd = new RawLabel("outerConditionalEnd",
        new Model(
            "<!--[if lte IE 6]></td></tr></table></a><![endif]-->"));
    add(outerConditionalStart);
    add(outerConditionalEnd);
    ...
  }
}




-------------------------------------------------------------------------
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