i'm having a strange problem, if my page index.xhml is:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
//.. import css and javascript
</head>
<body>
// .. my page content
</body>
</html>
Everthing is okay, but, if i change to <head> to <h:head> and <body> to </h:body> my page it seems not apply the style very well, as far i can tell it seems my javascript file is not been applied in the page.
Why this happen ? I already try change to <h:outputScript library="javascript" name="file.js" /> but it doesn't work either.
Any idea ? Why this is happening ?