have you tried adding a second xmlns element deeper in the document, maybe around where the Zone is defined. Somewhere the partial render will have it available?

The Namespace support is still not the best; though getting better bit by bit. You should file this as a Jira bug even if you find a temporary work around.


Cordenier Christophe wrote:
Hello,

I have a simple action link that update a zone with a Block.
I have implemented the Layout pattern and my Layout template starts with

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; 
xmlns:t="http://tapestry.apache.org/schema/tapestry_5_0_0.xsd";>
...
</html>

If the block returned by the method associated with my actionlink contains HTML 
Markup like a simple div, I have this error :

[ERROR] RequestExceptionHandler Processing of request failed with uncaught 
exception: Namespace prefix for URI 'http://www.w3.org/1999/xhtml' is not 
defined.
java.lang.RuntimeException: Namespace prefix for URI 
'http://www.w3.org/1999/xhtml' is not defined.
...


Can a block contains HTML Markup ? I have take a look at the ZoneDemo sample 
given with the Tapestry sources, and block contains only text.

The errors seems to be due to the partial request handling, when a HTML element is transformed 
"toMarkup", it looks for the parent to know the mapping for the 
"http://www.w3.org/1999/xhtml"; namespace and fails because parent is "null" due to 
partial rendering.

I'm working with Tapestry 5.0.11.

Thanks in advance,
Christophe.

________________________________

Ce message et les pi?ces jointes sont confidentiels et r?serv?s ? l'usage 
exclusif de ses destinataires. Il peut ?galement ?tre prot?g? par le secret 
professionnel. Si vous recevez ce message par erreur, merci d'en avertir 
imm?diatement l'exp?diteur et de le d?truire. L'int?grit? du message ne pouvant 
?tre assur?e sur Internet, la responsabilit? du groupe Atos Origin ne pourra 
?tre recherch?e quant au contenu de ce message. Bien que les meilleurs efforts 
soient faits pour maintenir cette transmission exempte de tout virus, 
l'exp?diteur ne donne aucune garantie ? cet ?gard et sa responsabilit? ne 
saurait ?tre recherch?e pour tout dommage r?sultant d'un virus transmis.

This e-mail and the documents attached are confidential and intended solely for 
the addressee; it may also be privileged. If you receive this e-mail in error, 
please notify the sender immediately and destroy it. As its integrity cannot be 
secured on the Internet, the Atos Origin group liability cannot be triggered 
for the message content. Although the sender endeavours to maintain a computer 
virus-free network, the sender does not warrant that this transmission is 
virus-free and will not be liable for any damages resulting from any virus 
transmitted.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to