>Hi Mario
>
>I did not experience problems but I also did not get what I am looking
>for. 
>
>Specifically, I would like the following basic outline in a web page:
>
><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
>"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
><html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
><head>
></head>
><body id='some id'>
></body>
></html>
>
>Based on limited experience, I believe the t:document tags will produce:
>
><html>
><head>
></head>
><body>
></body>
></html>
>
>Am I accurate with this?
>
It looks like the renderer looks at the content type to determine the type of 
markup.
Look at the isXMLDocument method in the HtmlRenderer.

http://svn.apache.org/viewvc/incubator/adffaces/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/renderkit/core/xhtml/HtmlRenderer.java?view=markup


protected boolean isXMLDocument(
    FacesContext context
    )
  {
    String contentType = null;
   contentType = context.getResponseWriter().getContentType();
    return "text/xml".equals(contentType) ||
           "application/xhtml+xml".equals(contentType) ||
           "application/xml".equals(contentType);
  }

If you are using jsp you might try:
<jsp:directive.page contentType="text/xml;charset=utf-8"/>



>Thanks,
>
>Brad

Gary
--- Begin Message ---
Hi Mario

I did not experience problems but I also did not get what I am looking
for. 

Specifically, I would like the following basic outline in a web page:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
<head>
</head>
<body id='some id'>
</body>
</html>

Based on limited experience, I believe the t:document tags will produce:

<html>
<head>
</head>
<body>
</body>
</html>

Am I accurate with this?

Thanks,

Brad


On Mon, 2006-12-18 at 20:48 +0100, Mario Ivankovits wrote:

> Did you experience any problems?
> 
> 
> Ciao,
> Mario
> 

Attachment: signature.asc
Description: This is a digitally signed message part


--- End Message ---

Reply via email to