The myfaces HtmlRendererUtils doesn't look like it takes into account any other
content types except text/html and application/xhtml+xml. JSF 1.2 RI on the other hand
correctly handles it. So you can move to Seam 2.0 and JBoss 4.2, or you can just upgrade
your existing project/JBoss to use JSF 1.2 RI, see the documentation. After that use the
following:
| <?xml version="1.0" encoding="ISO-8859-1" ?>
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
| <html
xmlns="http://www.w3.org/1999/xhtml"
|
xmlns:s="http://jboss.com/products/seam/taglib"
|
xmlns:ui="http://java.sun.com/jsf/facelets"
|
xmlns:f="http://java.sun.com/jsf/core"
|
xmlns:h="http://java.sun.com/jsf/html"
|
xmlns:rich="http://richfaces.ajax4jsf.org/rich">
|
| <ui:composition>
| <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>
| </ui:composition>
|
| </html>
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4077894#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...