yes, I missed it.

another thing is, that the rendered xhtml is not w3c conform. this may be the reason why I noticed a missfunction of the paging and sorting controls of the <tr:table> (see [Trinidad] sorting table, table range navigation...)

if I let it render html 4.01 the table controls behave as expected
if I let it render xhtml the table controls shows no reaction on a click

the w3c-html validator found the following errors:

required attribute "type" not specified" for the <script> tags

and

value of attribute "method" cannot be "POST"; must be one of "get", "post"' for the <form> tag



Am 26.07.2007 um 01:05 schrieb Adam Winer:

In Facelets, use contentType on f:view.
In JSP, use the contentType directive.

-- Adam


On 7/25/07, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:
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


Reply via email to