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
Error <pm:view>
-
- Information
-
Who is online
Users browsing this forum: No registered users and 23 guests