标记库支持名称空间:https://ajax4jsf.dev.java.net/ajax,但是没有为名称定义标记:support [英] Tag Library supports namespace: https://ajax4jsf.dev.java.net/ajax, but no tag was defined for name: support

查看:45
本文介绍了标记库支持名称空间:https://ajax4jsf.dev.java.net/ajax,但是没有为名称定义标记:support的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将< a4j:support> 标记添加到JSF 2.0时,出现以下错误

When I tried to add <a4j:support> tag to JSF 2.0, I got the following error

标签库支持名称空间: https://ajax4jsf.dev.java.net/ajax ,但未为名称定义任何标签:support

Tag Library supports namespace: https://ajax4jsf.dev.java.net/ajax, but no tag was defined for name: support

这是怎么引起的,我该如何解决?

How is this caused and how can I solve it?

推荐答案

名称空间URI https://ajax4jsf.dev.java.net/ajax 可识别为 Ajax4jsf 1.x(存在于史前时代)很早,在2006年Ajax4jsf被RichFaces 3.x收购之前.1.x是一个古老的标记库,在JSP 2.0引入内置ajax功能之前,它就针对JSP上的JSF 1.1.

The namespace URI https://ajax4jsf.dev.java.net/ajax is recognizable as the one from Ajax4jsf 1.x which existed in the prehistory, long before Ajax4jsf was acquired by RichFaces 3.x at 2006. Ajax4jsf 1.x is an ancient tag library which was targeted at JSF 1.1 on JSP, long before JSF 2.0 was introduced with builtin ajax functionality.

更甚者,目前在JSF 2.0中,不推荐使用JSP,而Facelets则取代了JSP(Facelets(许多入门者普遍将其缩写为"XHTML")).针对JSP的标签库(如Ajax4jsf 1.x)与Facelets不兼容.基本上,您需要一个与JSF 2.0兼容的标记库.如果您正在寻找Ajax4jsf功能,那么您应该在寻找RichFaces4.x.请注意,自RichFaces 4.x重命名为< a4j:ajax> 以来,< a4j:support> 已符合JSF 2.0标准<f:ajax> .

Even more, currently with JSF 2.0, JSP is deprecated and succeeded by Facelets (which a lot of starters overgeneralize as "XHTML"). JSP targeted tag libraries like Ajax4jsf 1.x are not compatible with Facelets. You basically need a JSF 2.0 compatible tag library instead. If you're looking for Ajax4jsf functionality, then you should be looking for RichFaces 4.x. Note that <a4j:support> has since RichFaces 4.x been renamed to <a4j:ajax> to be in line with JSF 2.0 standard <f:ajax>.

但是,如上所述,JSF 2.0已经以< f:ajax> 的形式提供了内置的ajax功能.鉴于您正在尝试在JSF 2.0上使用Ajax4jsf 1.x,您可能正在阅读一本毫无希望的过时的JSF书籍/教程/资源.我强烈建议搁置一旁,并寻找较新的版本,如果要使用针对JSF 2.0的版本,最好不早于2010年.您可以在我们的JSF Wiki页面底部的某处找到一些精明的教程.

However, as said, JSF 2.0 thus already offers builtin ajax functionality in flavor of <f:ajax>. Given that you're attempting to use Ajax4jsf 1.x on JSF 2.0, you were perhaps reading a hopelessly outdated JSF book/tutorial/resource. I strongly recommend to put that aside and look for a more recent one, preferably not older than 2010 if you want a JSF 2.0 targeted one. You can find several sane tutorials linked somewhere in the bottom of our JSF wiki page.

祝你好运.

这篇关于标记库支持名称空间:https://ajax4jsf.dev.java.net/ajax,但是没有为名称定义标记:support的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆