I did a short test (mojarra).
Unlike as described in the TagDecorator doc, but luckily it works as a
standard xml namespace binding.
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:jsf="
http://java.sun.com/jsf" >
<head jsf:id="head">
--> ok
<html xmlns="
http://www.w3.org/1999/xhtml"
xmlns:xxx="
http://java.sun.com/jsf" >
<head xxx:id="head">
--> ok
<html xmlns="
http://www.w3.org/1999/xhtml">
<head jsf:id="head">
--> prefix "jsf" could not be bound
Thus, everything works fine. Only doc has to be updated.
Lessons learned: Don't validate spec only. Check implementation too. It
may differs. ;-)
Herzliche Grüße - Best Regards,
Michael Müller
Am 03.03.2013 20:29, schrieb Leonardo Uribe:
> Hi
>
> Frank, could you try if TagDecorator still works even if you change
> jsf prefix with something else? For example, on the top of the page
> set http://java.sun.com/jsf namespace to a prefix like xsf and check
> if that one still works.
>
> regards,
>
> Leonardo Uribe
>
> 2013/3/3 Frank Caputo <frank_at_frankcaputo.de>:
>> Hi,
>>
>> Am 03.03.2013 um 20:07 schrieb Frank Caputo <frank_at_frankcaputo.de>:
>>
>> MM> Or does it mean "treat prefix jsf always as ofhttp://java.sun.com/jsf
>> even though it is not declared"?
>>
>> yes, the latter.
>>
>>
>> Is this done by the facelets compiler? The default tag decorator doesn't
>> have this magic.
>>
>>
>> I've tested it, and there is no such magic in Mojarra. Parsing the facelet
>> fails, if the XML parser encounters a non declared namespace (which seems
>> quite obvious).
>>
>> Ciao Frank