I haven't had any issue with the tomahawk components and AJAX/xhtml.
I'm not so sure of the sandbox. I only had problems with my own code
when I didn't add the CDATA blocks. Somehow the comment technique is
working just fine with the tomahawk code.

Here is a snippet from my HTML source as a result of t:popup:

<script type="text/javascript"><!--
var zfpForm_3AmessagesPopupCompPopup=new
orgApacheMyfacesPopup('zfpForm:messagesPopupComp',-5,-5);
//--></script>

FYI, all my pages have this at the top:
<!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";>

Any my XHTML pages (facelets) look like:
<!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";
 xmlns:t="http://myfaces.apache.org/tomahawk";
 xmlns:ui="http://java.sun.com/jsf/facelets";
 xmlns:h="http://java.sun.com/jsf/html";
 xmlns:f="http://java.sun.com/jsf/core";
 xmlns:aa="http://ajaxanywhere.sourceforge.net/";
 xmlns:fn="http://java.sun.com/jsp/jstl/functions";>


Neither AjaxAnywhere or Firefox/IE have an issue with this. My page is
declared as XHTML and it also loaded through XML & AjaxAnywhere so
both view it as valid XML.

I'm afraid I don't know anything about SVG to know if there are
further restrictions

On 8/25/06, "R. Müller" <[EMAIL PROTECTED]> wrote:
Thank you for your reply Andrew. But how to add the CDATA tags for
myfaces-generated inline javascript ? Is there any option to do this ?
Would facelet do it for me ?

regards

ronald


Andrew Robinson wrote:
> I have all my pages delivered as XHTML using facelets. As for
> JavaScript, you need to put CDATA tags around the content and it works
> fine. If you can't add the CDATA tags, then your pages are not XHTML
> compliant.
>
> On 8/24/06, "R. Müller" <[EMAIL PROTECTED]> wrote:
>> For some (probably many) reason, it would be nice to serve
>> XHTML-compliant pages e.g. i'm just testing Firefox's native
>> SVG-support, which only works with XHTML, espacially inline-svg.
>>
>> There was a discussion in this list serveral month ago :
>>
>> <cite from="2/15/06" ontopic="Myfaces not XHTML Transitional
>> compliant?" >
>> Well,
>>
>> JSF spec tell impls to provide a HTML 4.0.1 compliant RenderKit,
>> that's what MyFaces does. So currently there is no XHTML support,
>> AFIAK.
>>
>> -Matthias
>> </cite>
>>
>> Is there anything done in between. Are there any workarounds ?
>>
>> In my case i forced the xhtml-interpretation with the
>> namespace-attribute.
>>
>> <html xmlns="http://www.w3.org/1999/xhtml";>
>>
>> But than, all my javascript fails, probably because its rendered within
>>   comment-block <!-- javascript ---> and not in <![CDATA[ -block.
>>
>> regards
>>
>> ronald
>>
>>
>
--

Reply via email to