Page 1 of 1

JSF 1064 message

Posted: 24 Mar 2015, 05:38
by seixas
I need some help with primefaces mobile. Despite following all instruction in Primefaces user guide, I'm still getting the warning message JSF 1064, saying that the resource theme.css was not provided or found. Does anyone here use the primefaces-mobile? Is there on the web any maven, eclipse or netbeans project that I could analyze the configuration files? I would truly appreciate some help.

My code:
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile">

<f:view renderKitId="PRIMEFACES_MOBILE" />

<h:head>
</h:head>

<h:body>
<pm:page swatch="a">
<pm:header title="Basic Page"></pm:header>

<pm:content>
<h:form id="form">
<p:growl id="msgs" showDetail="true" />

<h2>Advanced</h2>
<p:dataTable id="cars" var="car" value="#{dtMobileView.cars3}" selectionMode="multiple" selection="#{dtSelectionView.selectedCars}" rowKey="#{car.id}"
paginator="true" rows="10" tableStyleClass="ui-table-columntoggle">

<p:column headerText="Id" sortBy="#{car.id}">
<h:outputText value="#{car.id}" />
</p:column>

<p:column headerText="Year" sortBy="#{car.year}">
<h:outputText value="#{car.year}" />
</p:column>

<p:column headerText="Brand" sortBy="#{car.brand}">
<h:outputText value="#{car.brand}" />
</p:column>

<p:column headerText="Color" sortBy="#{car.color}">
<h:outputText value="#{car.color}" />
</p:column>
</p:dataTable>
</h:form>
</pm:content>
</pm:page>
</h:body>
</html>

The error message (in portuguese).
Advertência: JSF1064: Não foi possível encontrar ou fornecer o recurso, undefined/undefined.js, pela biblioteca, primefaces.
Advertência: JSF1064: Não foi possível encontrar ou fornecer o recurso, undefined/undefined.css, pela biblioteca, primefaces.

Re: JSF 1064 message

Posted: 24 Mar 2015, 18:04
by smithh032772
remove the following from your XHTML,

Code: Select all

<p:dataTable id="cars" var="car" value="#{dtMobileView.cars3}" selectionMode="multiple" selection="#{dtSelectionView.selectedCars}" rowKey="#{car.id}"
paginator="true" rows="10" tableStyleClass="ui-table-columntoggle">
and use some other PrimeFaces Mobile component like p:dataList or your own XHTML, html and jquery mobile CSS to render a 'table'. Search google for jquery mobile, and study their showcase/demo/components, and develop a table using jquery mobile (not primefaces mobile, unless you want to use p:datalist). that's my recommendation.

Re: JSF 1064 message

Posted: 24 Mar 2015, 19:27
by kukeltje
Sorry, but this is a plain wrong advice. Please substantiate...

Re: JSF 1064 message

Posted: 25 Mar 2015, 16:10
by MarkWinton
Did you try Googling the obvious? Searching for "Primefaces mobile JSF1064" gives something to try at http://stackoverflow.com/questions/2788 ... fined-js-c

The issue's also been raised on these forums before, again searching for "JSF1064" should allow you to find your answer.