im using jsf 1.2
i have included
primefaces-1.0.0.jar on the .war directory of the .ear file
this is the jsf code:
Code: Select all
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:p="http://primefaces.prime.com.tr/ui"
template="layout/template.xhtml">
// this "ui:define name= "head" " tag is something im testing since in the getting started page it says to put this on the <head> tag if you are using //jsf 1.2
<ui:define name="head">
<p:resources />
</ui:define>
<ui:define name="body">
<h3>Simple Panel</h3>
<p:panel header="About Barca" footer="Visca el Barca!">
<h:outputText value="People behind PrimeFaces are hardcore F.C. Barcelona fans and many examples in the demo applications reflect this. Despite of this fact
PrimeFaces library is open source and free to use, that means Real Madrid fans are also welcomed to use the library :)" />
</p:panel>
</ui:define>
</ui:composition>
so i took out the
Code: Select all
<ui:define name="head">
<p:resources />
</ui:define>
and instead i put
the
Code: Select all
<head>
<p:resources/>
</head>
the "javax.faces.FacesException" appeared on the next primefaces component the one that i was trying to make it work
this is the code:
Code: Select all
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:p="http://primefaces.prime.com.tr/ui"
template="layout/template.xhtml">
<ui:define name="body">
<head>
<p:resources />
</head>
<ui:define name="body">
<h3>Simple Panel</h3>
<p:panel header="About Barca" footer="Visca el Barca!">
<h:outputText value="People behind PrimeFaces are hardcore F.C. Barcelona fans and many examples in the demo applications reflect this. Despite of this fact
PrimeFaces library is open source and free to use, that means Real Madrid fans are also welcomed to use the library :)" />
</p:panel>
</ui:define>
</ui:composition>
and since i didnt got any exception with the <p:resources> because it was out of the <ui:define name="body"><ui:define> i did the same with the
ERROR [compiler] Error Loading Library: vfszip:/opt/jboss-5.1.0.GA/server/default/deploy/testPrime.ear/testPrime.war/WEB-INF/lib/primefaces-1.0.0.jar/META-INF/primefaces-p.taglib.xml
java.io.IOException: Error parsing [vfszip:/opt/jboss-5.1.0.GA/server/default/deploy/testPrime.ear/testPrime.war/WEB-INF/lib/primefaces-1.0.0.jar/META-INF/primefaces-p.taglib.xml]:
at com.sun.facelets.compiler.TagLibraryConfig.create(TagLibraryConfig.java:410)
at com.sun.facelets.compiler.TagLibraryConfig.loadImplicit(TagLibraryConfig.java:431)
at com.sun.facelets.compiler.Compiler.initialize(Compiler.java:87)
at com.sun.facelets.compiler.Compiler.compile(Compiler.java:104)
at com.sun.facelets.impl.DefaultFaceletFactory.createFacelet(DefaultFaceletFactory.java:218)
at com.sun.facelets.impl.DefaultFaceletFactory.getFacelet(DefaultFaceletFactory.java:149)
the page loaded, but i didnt saw the component showing<h3>Simple Panel</h3>
<p:panel header="About Barca" footer="Visca el Barca!">
<h:outputText value="People behind PrimeFaces are hardcore F.C. Barcelona fans and many examples in the demo applications reflect this. Despite of this fact
PrimeFaces library is open source and free to use, that means Real Madrid fans are also welcomed to use the library " />
</p:panel>
but i did got the same exception on the jboss server, just that this time it wasnt showing on the browser
any Help?