JSF 1064 message

UI Components for JSF
Post Reply
seixas
Posts: 4
Joined: 20 Mar 2015, 12:39

24 Mar 2015, 05:38

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.

smithh032772
Posts: 6144
Joined: 10 Sep 2011, 21:10

24 Mar 2015, 18:04

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.
Howard

PrimeFaces 6.0, Extensions 6.0.0, Push (Atmosphere 2.4.0)
TomEE+ 1.7.4 (Tomcat 7.0.68), MyFaces Core 2.2.9, JDK8
JUEL 2.2.7 | OmniFaces | EclipseLink-JPA/Derby | Chrome

Java EE 6 Tutorial|NetBeans|Google|Stackoverflow|PrimeFaces|Apache

kukeltje
Expert Member
Posts: 9605
Joined: 17 Jun 2010, 13:34
Location: Netherlands

24 Mar 2015, 19:27

Sorry, but this is a plain wrong advice. Please substantiate...

MarkWinton
Posts: 50
Joined: 18 Oct 2013, 23:40

25 Mar 2015, 16:10

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.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 18 guests