https://facelets.dev.java.net/source/browse/facelets/src/java/com/sun/facelets/tag/jsf/core/ViewHandler.java?rev=1.4&view=markup
public ViewHandler(TagConfig config) {
super(config);
...
this.encoding = this.getAttribute("encoding");
...
}
...
if (this.contentType != null) {
String v = this.contentType.getValue(ctx);
ctx.getFacesContext().getExternalContext().getRequestMap().put("facelets.ContentType",
v);
}
On 7/25/07, Burghard Britzke <[EMAIL PROTECTED]> wrote:
but it is true:
<f:view
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tr="http://myfaces.apache.org/trinidad">
<tr:document>
</tr:document>
</f:view>
renders as
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" ...
and
<f:view contentType="text/xml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:tr="http://myfaces.apache.org/trinidad">
<tr:document>
</tr:document>
</f:view>
renders as
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
Am 25.07.2007 um 10:00 schrieb Burghard Britzke:
<f.view> does not have an attribute contentType. for the RI. does it have
such an attribute in MyFaces?
Am 23.07.2007 um 23:23 schrieb noah:
I can confirm that it does.
<f:view contentType="text/html"> seems to be a necessity if you want
Dojo to work.
On 7/23/07, Adam Winer <[EMAIL PROTECTED]> wrote:
In Facelets, setting contentType on f:view should do
the trick, but I don't know for sure.
> >>
...
> >> On 7/23/07, Burghard Britzke <[EMAIL PROTECTED]> wrote:
> >> > hi,
> >> > sometimes the <tr:document> decides to render xhtml and sometimes
> >> > html4.01. how to control it?
--
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org