简体   繁体   English

<p:lineChart>标记库支持名称空间:http://primefaces.org/ui,但未为名称定义任何标记:lineChart

[英]<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 这是我的代码

sample.xhtml sample.xhtml

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

相关问题 找不到命名空间 xmlns:p=&quot;http://primefaces.org/ui&quot; 的库 - No library found for namespace xmlns:p=“http://primefaces.org/ui” <h:outputtext>标签库支持命名空间:http://java.sun.com/jsf/html,但没有为名称定义标签:outputtext - <h:outputtext> Tag Library supports namespace: http://java.sun.com/jsf/html, but no tag was defined for name: outputtext <my:foo>标记库支持命名空间:http://java.sun.com/jsf/composite/mycomponents,但没有为name定义标记:foo - <my:foo> Tag Library supports namespace: http://java.sun.com/jsf/composite/mycomponents, but no tag was defined for name: foo 找不到JSF 2.1.13自定义组件:标签库支持命名空间: <namsepace> 但没有为名称定义标签: <compositecomponent> - JSF 2.1.13 custom component not found: Tag Library supports namespace: <namsepace> but no tag was defined for name: <compositecomponent> 如何在Netbeans中从maven安装PrimeFaces?我得到警告,taglibrary http://primefaces.org/ui不存在 - How to install PrimeFaces from maven in Netbeans? I get warning that taglibrary http://primefaces.org/ui does not exist Primefaces线图的麻烦 - troubles with primefaces linechart 在primefaces中自定义lineChart - customize lineChart in primefaces NETBEANS 7.4:“未为名称定义任何标记:注册” +“未为命名空间http://java.sun.com/jsf/composite/my_composite_component找到库” - NETBEANS 7.4: “no tag was defined for name: register” + “No library found for namespace http://java.sun.com/jsf/composite/my_composite_component” Primefaces p:投票标签 - Primefaces p:poll tag Java JSF PrimeFaces LineChart标签 - Java JSF PrimeFaces LineChart Labels
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM