Rudi,

As long as it still meets the spec, we can change the behavior.

Not only does HTML 4.01 compatibility need to be maintained, but the
description given here also needs to be met:

http://java.sun.com/javaee/javaserverfaces/1.1/docs/renderkitdocs/

If you do the research and open jira issues with patches, there should
be no reason why we cannot apply compatible changes.

Note that for Tomahawk components and MyFaces-specific html, we can be
more flexible at what we accept.

On 4/17/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
Hi Mike,

I don't know if removing the name attribute from the form-element is
HTML 4.01 compatible but i think so. This wold be my first proposal.

The second is to wrap every hidden field rendered by the jsf-impl with
a div-Element.

Is this possible. Should be opened Jira-Issues for this to proposals?

best regards,
Rudi

On 4/16/07, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
> From the JSF 1.1 spec:
> =============================
> 8.5 Standard HTML RenderKit
> Implementation
> To ensure application portability, all JSF implementations are
> required to include
> support for a RenderKit, and the associated Renderers, that meet the
> requirements defined in this section, to generate textual markup that
> is compatible
> with HTML 4.01.
> =============================
>
> However, if there are changes we can make to MyFaces Core that will
> improve xhtml support while still meeting the above requirement, we
> can make them.
>
>
> On 4/16/07, Rudi Steiner <[EMAIL PROTECTED]> wrote:
> > Hi all,
> >
> > making some investigations on XHTML-comfomance fo myFaces (without
> > Tomahawk) I found out, that the output of the basic components, like
> > <h:form/>, <h:commandButton/> and so on render valid XHTML but just
> > transitional (<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> > Transitional//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>).
> >
> > The problem is, that our customer requires XHTML-Strict (<!DOCTYPE
> > html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>).
> >
> > Running the XHTML-output of a standard form against the validator of
> > the W3C. I get some errormessages.
> >
> > The first one ist, that there is no name-attribute in the defined DTD
> > for the form-element, but the <h:form/>-tag renders it:
> >
> > <form id="_idJsp2" name="_idJsp2" method="post" action=
> >
> > The second error is, that the hidden fields inserted by the
> > JSF-implementation into the form are not enclosed in a div-Element. If
> > I but my input-Elements inside the form in a <t:div/>, this elements
> > are enclosed in a <div> and don't produce any errors, but the hidden
> > fields inserted by myfaces are rendered after the closing </div>-Tag.
> >
> > Has anyone an idea? Isn't it required by the JSF-Spec to render
> > XHTML-Strict to be a standard conform implementation?
> >
> >
> > Best regards,
> > Rudi
> >
>

Reply via email to