Or use <t:htmlTag value="body">

or programmaticaly:
t = new HtmlTag()
t.setValue("body");

And add all the children to that.

Travis

On 2/10/06, Volker Weber <[EMAIL PROTECTED]> wrote:
Hi Matthias,

i don't think there is such a option (but i don't know so mutch about
the tomahawk extensions).

I think you need to add them as verbatim (i.e UIOutput with
escape="false") to your component tree.

Regards,
  Volker

Matthias Kahlau wrote:
> Hi!
>
> Is there any configuration option available which can be used to modify the
> rendered output when the UI is programmatically build (without using JSP)?
>
> Without any modification, the basic HTML elements <html>, <head>, <title>,
> <body> are not rendered, only the components. Is use JTTidy, which requires
> that the HTML documents are complete, as someone told me. In any case, I
> have the requirement to render complete HTML documents.
>
>
> Regards,
>
> Matthias
>
>
>>-----Ursprüngliche Nachricht-----
>>Von: users-return-16587-mkahlau= [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED]]Im Auftrag
>>von Matthias Kahlau
>>Gesendet: Montag, 6. Februar 2006 15:38
>>An: MyFaces Discussion
>>Betreff: AW: AW: Programmatically created UI does not contain important
>>HTML elements
>>
>>
>>
>>>Currently i am also evaluating JTidyServlet, but currently i do not have
>>>that special case. Guess that if your html is prepared to be
>>>xml-conform, not having a <html> element is of no interest to JTidy. I
>>>am interested in your findings so please keep us updated. BTW What's
>>>your current JTidy config esp. the config parameters? - My current JTidy
>>>config is :
>>
>>
>>I do not use JTidy myself. It's used as part of UPortal, which is
>>the target
>>framework my application should run under. I've no further
>>information about
>>the configuration of JTidy. In a few days/weeks, I will have to try my
>>application running under UPortal in the institution I'm working
>>for, and my
>>application has to be prepared...
>>
>>
>>Regards,
>>
>>Matthias
>>
>>
>>>-----Ursprüngliche Nachricht-----
>>>Von: users-return-16564-mkahlau=[EMAIL PROTECTED]
>>>[mailto: [EMAIL PROTECTED]]Im Auftrag
>>>von lij
>>>Gesendet: Montag, 6. Februar 2006 13:09
>>>An: MyFaces Discussion
>>>Betreff: Re: AW: Programmatically created UI does not contain important
>>>HTML elements
>>>
>>>
>>>Currently i am also evaluating JTidyServlet, but currently i do not have
>>>that special case. Guess that if your html is prepared to be
>>>xml-conform, not having a <html> element is of no interest to JTidy. I
>>>am interested in your findings so please keep us updated. BTW What's
>>>your current JTidy config esp. the config parameters? - My current JTidy
>>>config is :
>>>
>>><filter>
>>>        <filter-name>JTidyFilter</filter-name>
>>>        <filter-class>
>>>            org.w3c.tidy.servlet.filter.JTidyFilter
>>>        </filter-class>
>>>        <init-param>
>>>            <param-name>tee</param-name>
>>>            <param-value>false</param-value>
>>>        </init-param>
>>>        <init-param>
>>>            <param-name>config</param-name>
>>>            <param-value>
>>>                tab-size=4;wrap:5000;output-xhtml:true;
>>>            </param-value>
>>>        </init-param>
>>>        <init-param>
>>>            <param-name>doubleValidation</param-name>
>>>            <param-value>false</param-value>
>>>        </init-param>
>>>        <init-param>
>>>            <param-name>validateOnly</param-name>
>>>            <param-value>false</param-value>
>>>        </init-param>
>>>        <init-param>
>>>            <param-name>doubleValidation</param-name>
>>>            <param-value>false</param-value>
>>>        </init-param>
>>>    </filter>
>>>
>>>Matthias Kahlau wrote:
>>>
>>>
>>>>>AFAIK most browsers do wrap content with HTML tags in case
>>
>>content does
>>
>>>>>not self set html...body. Guess you can inspect that by looking in the
>>>>>DOM inspector in Mozilla/Firefox after browsing to such "special"
>>>>>html-pages.
>>>>>
>>>>>
>>>>
>>>>In my special case, the rendered code has to go to the JTidy filter of
>>>>UPortal, which transforms the HTML code to XHTML (AFAIK). I
>>
>>don't know if
>>
>>>>JTidy is capable to transform incomplete HTML pages...
>>>>
>>>>
>>>>Regards,
>>>>
>>>>Matthias
>>>>
>>>>
>>>>
>>>>
>>>>>-----Ursprüngliche Nachricht-----
>>>>>Von: users-return-16542-mkahlau= [EMAIL PROTECTED]
>>>
>>>[mailto:[EMAIL PROTECTED]]Im Auftrag
>>>
>>>>von Jörg Liegler
>>>>Gesendet: Montag, 6. Februar 2006 01:05
>>>>An: 'MyFaces Discussion'
>>>>Betreff: AW: Programmatically created UI does not contain important HTML
>>>>elements
>>>>
>>>>
>>>>AFAIK most browsers do wrap content with HTML tags in case content does
>>>>not self set html...body. Guess you can inspect that by looking in the
>>>>DOM inspector in Mozilla/Firefox after browsing to such "special"
>>>>html-pages.
>>>>
>>>>Jörg
>>>>
>>>>-----Ursprüngliche Nachricht-----
>>>>Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>>>>Gesendet: Sonntag, 5. Februar 2006 16:48
>>>>An: Users MyFaces
>>>>Betreff: Programmatically created UI does not contain important HTML
>>>>elements
>>>>
>>>>Hi!
>>>>
>>>>
>>>>I examined the HTML source code of my programmatically build view and
>>>>noticed, that no HTML elements like <html> or <head> are rendered, but I
>>>>wonder because the page is rendered correctly in MS IE.
>>>>
>>>>Do I have to manually add the missing elements, e. g. with the
>>>>ResponseWriter? (I need valid HTML...)
>>>>
>>>>
>>>>Regards,
>>>>
>>>>Matthias
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>

--
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Reply via email to