Error <pm:view>

UI Components for JSF
Post Reply
gino10
Posts: 2
Joined: 22 Jun 2014, 14:51

22 Jun 2014, 14:55

my code is

<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile"
contentType="text/html">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="refresh" content="#{session.maxInactiveInterval};url=loginViaMobile.jsf" />
<link rel="icon" type="image/png" href="favicon.ico"/>
</h:head>

<pm:page title="PrimeFaces Mobile Weather">

<!-- Main View -->
<pm:view id="main">
<pm:header title="Weather">
<f:facet name="right">
<p:button value="Settings" icon="gear" href="#settings" />
</f:facet>
</pm:header>

<pm:content>
<h:form id="mainForm">
<h:outputText value="Select City:" />


<p:separator />

<p:outputPanel layout="block" style="text-align:center">

</p:outputPanel>
</h:form>
</pm:content>
</pm:view>

<!-- Settings View -->
<pm:view id="settings">
<pm:header title="Weather">
<f:facet name="left"><p:button value="Back" icon="back" href="#main?reverse=true"/></f:facet>
</pm:header>

<pm:content>
<h:form id="settingsForm">

<h:outputText value="Select Unit:" />

<p:separator />


</h:form>
</pm:content>
</pm:view>

</pm:page>

</f:view>

but gererate error:

javax.faces.view.facelets.TagException: /page/mobile/indexMobile.xhtml @16,32 <pm:view> Tag Library supports namespace: http://primefaces.org/mobile, but no tag was defined for name: view



because this erro? in my WebContent/Lib have:

primefaces-5.0.jar
primeface-mobile-0.9.3.jar

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

27 Jun 2014, 16:55

PF mobile is included in PF5, so Mobile 0.9.3 is not needed anymore (as is documented in the blog, docs, migration notes etc)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 23 guests