Hey all,
I might post this twice... sorry if so.
I do have a problem with the mime/type content/type when I change the
markup extension (.html) to (.xhtml). In my Page class I overwrite
the method
page.java:
public String getMarkupType()
{
return "xhtml";
}
and my xhtml markup code looks like this:
page.xhtml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<span wicket:id = "navomaticBorder">
Its all about Aloe!
</span>
</html>
If I am connection via Firefox, Firefox gets the ContentType text/
xhtml in the server response, so that Firefox 2.0 offers to download
the file with the filename "app" instead of rendering the xhtml
content. The "app" file looks like this:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<span>
<p>
<table>
<tr>
<td>
<span>
<table width = "0%" border = "0" cellspacing = "0"
cellpadding = "1" bgcolor = "black">
<tr>
<td width = "100%" valign = "top">
<table width = "100%" border = "0" cellspacing =
"0" cellpadding = "4" bgcolor = "white">
<tr>
<td width = "100%">
<b>Navigation Links</b>
<p>
<a href="/quickstart/app?
wicket:bookmarkablePage=:wicket.quickstart.WetterPage">Wetter</a><br/>
<a href="/quickstart/app?
wicket:bookmarkablePage=:wicket.quickstart.NewsPage">News</a><br/>
<span><em>About</em></span>
</p>
</td>
</tr>
</table>
</td>
</tr>
</table>
</span>
</td>
<td>
<span>
<table width = "0%" border = "0" cellspacing = "0"
cellpadding = "1" bgcolor = "black">
<tr>
<td width = "100%" valign = "top">
<table width = "100%" border = "0" cellspacing =
"0" cellpadding = "4" bgcolor = "white">
<tr>
<td width = "100%">
Its all about Aloe!
</td>
</tr>
</table>
</td>
</tr>
</table>
</span>
</td>
</tr>
</table>
</p>
</span>
</html>
That means, wicket rendered it correct, but Firefox doesn't
understand this. It seems that I have to change the Content-Type to
"application/xhtml" in the server response to do it correct. Questions:
- Why does is not work out of the box?
- How do change the MimeType / ContentType in the Server Response
from wicket?
Thank you very much!
Martin.
Wicket 1.2.5
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user