I have a page Create.xhtml that contains
<p:calendar .... />
In another page List.xhtml, that NOT CONTAINS ANY <p:calendar/>,
with a Primefaces Ajax command (so WITHOUT ANY page recall/refresh) i call a
<ui:include src="Create.xhtml"/>
(Using the update param in the <p:ajax /> tag).
The included page is displayed, but the <p:calendar/> doesn't work because, the page <head> tag didn't load the Primefaces calendar library.
The only way to make <p:calendar/> work properly is to reload/refresh the entire page, but i need to do ajax request and update only the include, due to performance issues.
Is there any way to do it? Like refresh/update only the head tag?
EDIT:
Create.xhtml content is in <ui:component> tag, and List.xhtml content is in a <ui:composition> tag (uses a template), both pages DON'T HAVE any <html> , <head>/<h:head> or <body>/<h:body> tag. All these tags are in the template, used by List.xhtml
(You can answer also here http://stackoverflow.com/questions/7298 ... -of-a-page)
SECOND EDIT:
SOLUTION FOUNDED! See the Stackoverflow.com link above.
update <head> content of a page
-
- Information
-
Who is online
Users browsing this forum: No registered users and 39 guests