I just did a rebuild of the trunk and a lot af css and js files are gone now, but I see primefaces.js and primefaces.css , should I include these to let my portlets work?
Tom
Multiple portlets on Liferay page not working
Thanks to everybody,
I solved this problem by following these steps.
1) created a directory in webapps, "primefaces". Copied all files under primefaces.jar/META-INF/resources/primefaces to that directory.
2) added these lines to your template.xhtml
3) included template.xhtml from other xhtml files :)
I tested it for PrimeFaces(3.0)+PortletFacesBridge(2.0.1)+Liferay(6.0.6)
Note: To display images that are referenced from css files, you must alter image references in css files
I solved this problem by following these steps.
1) created a directory in webapps, "primefaces". Copied all files under primefaces.jar/META-INF/resources/primefaces to that directory.
2) added these lines to your template.xhtml
Code: Select all
<h:head>
<script type="text/javascript" src="#{request.contextPath}/primefaces/primefaces.js"></script>
<script type="text/javascript" src="#{request.contextPath}/primefaces/jquery/jquery.js"></script>
<script type="text/javascript" src="#{request.contextPath}/primefaces/editor/editor.js"></script>
<script type="text/javascript" src="#{request.contextPath}/primefaces/charts/charts.js"></script>
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/primefaces/primefaces.css"></link>
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/primefaces/editor/editor.css"></link>
<link type="text/css" rel="stylesheet" href="#{request.contextPath}/primefaces/charts/charts.css"></link>
<!-- add other js and cs references as above -->
</h:head>
I tested it for PrimeFaces(3.0)+PortletFacesBridge(2.0.1)+Liferay(6.0.6)
Note: To display images that are referenced from css files, you must alter image references in css files
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Not a PF specific issue, it is a mismatch of JSF and portlets, portletfaces bridge forum is better place to ask.
-
- Information
-
Who is online
Users browsing this forum: No registered users and 39 guests