[jboss-user] [JBoss Seam] - Re: specify content type for XHMTL

nemya do-not-reply at jboss.com
Fri Aug 24 12:29:04 EDT 2007


I've already tryied that but it didn't work. I tried:
<html xmlns="http://www.w3.org/1999/xhtml"
  | 	xmlns:f="http://java.sun.com/jsf/core">
  | <head>
  | <title>Page XHTML</title>
  | <meta http-equiv="Content-Type" content="application/vnd.ms-excel; charset=iso-8859-1" /> </head>
  | <body>
  | <f:view contentType="application/vnd.ms-excel">
  |   <table>
  |     <tr>
  |       <td>1</td>
  |       <td>2</td>
  |       <td>3</td>
  |     </tr>
  |     <tr>
  |       <td>4</td>
  |       <td>5</td>
  |       <td>6</td>
  |     </tr>
  |   </table>
  |   </f:view>
  | </body>
  | </html>

And I got this error message:

java.lang.IllegalArgumentException: ContentTypeList does not contain a supported content type: application/vnd.ms-excel
  | 	at org.apache.myfaces.renderkit.html.HtmlRendererUtils.selectContentType(HtmlRendererUtils.java:964)
  | ...

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077869#4077869

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4077869



More information about the jboss-user mailing list