[英]<p:lineChart> Tag Library supports namespace: http://primefaces.org/ui, but no tag was defined for name: lineChart
i want to create a linechart using primefaces 5.1. 我想使用primefaces 5.1创建一个线图。 but i got error message " Tag Library supports namespace: http://primefaces.org/ui , but no tag was defined for name: lineChart " when loading my xhtml page. 但是我收到错误消息“ 标记库支持名称空间: http ://primefaces.org/ui,但是在加载我的xhtml页面时未为名称定义任何标记:lineChart 。 this is my code 这是我的代码
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<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:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<h:form>
<p>LineChart is created By Manaf.</p>
<p:lineChart id="linear" value="#{chartBean.linearModel}" legendPosition="e" title="Linear Chart" minY="0" maxY="10" style="height:300px;"/>
<p:lineChart id="category" value="#{chartBean.categoryModel}" legendPosition="e"title="Category Chart" minY="0" maxY="200" tyle="height:300px;margin-top:20px"/>
</h:form>
</h:body>
</html>
... what is the actual problem, iam a beginner in primefaces and jsf... ...实际问题是什么,我是primefaces和jsf的初学者...
当前语法(5.1)是...
<p:chart type="line" model="#{chartView.lineModel1}" style="height:300px;"/>
Check if you use latest version currently it 5.1. 检查当前是否使用最新版本5.1。 Visit PrimeFaces or check Maven dependency: 访问PrimeFaces或检查Maven依赖项:
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.1</version>
</dependency>
According to the documentation of primefaces 6.2: 根据primefaces 6.2的文档:
https://www.primefaces.org/docs/guide/primefaces_user_guide_6_2.pdf https://www.primefaces.org/docs/guide/primefaces_user_guide_6_2.pdf
<p:chart type="line" model="#{bean.model}" />
These are the different types that exist, and also each one can be customized or combined several 这些是存在的不同类型,并且每个都可以定制或组合几种
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.