xml - Java Server Faces xhtml extension - overlapping with html files -


in project use jsf. mapping, xhtml extension used.

but in project have xhtml files, not jsf. plain html xml syntax.

when request these files, faces servlet intercepts naturally.

so tried change extension of these files xml , later html. in both cases, there problems raised..

in xml case: browsers don't behave content normal html in cases.

in html case: browsers comment out xml tag, , not run xml stylesheets.

we can not change xhtml extension mapping jsf.

what can suggest?

thanks.

rename plain html files .html , use if necessary html5 doctype instead of xhtml doctype. using xhtml "plain vanilla" (read: without server side interaction) has no utter value in client side. if sole reason being able use , validate xml syntax, use html5 doctype.

see also:


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -