简体   繁体   English

a4j:使用JSF 2找不到支持标记

[英]a4j:support tag not found using JSF 2

just trying to integrate this commandLink 只是尝试集成这个commandLink

<a4j:commandLink reRender="results-view" actionListener="#{myaction}" oncomplete="return false;" value="#{msg1.advanced_search}">
                            <a4j:support event="onclick">
                                <f:setPropertyActionListener value="./page.xhtml" target="#{changeViews['new-view'].value}" />
                            </a4j:support>
                        </a4j:commandLink>

On an applicacion which is using JSF2. 在使用JSF2的应用程序上。 If I leave it, I get this error 如果我离开它,我会收到此错误

Tag Library supports namespace: http://richfaces.org/a4j , but no tag was defined for name: support 标记库支持名称空间: http//richfaces.org/a4j ,但没有为name:support定义标记

I was trying to find something on the net, but I couldn't figure out. 我试图在网上找到一些东西,但我想不出来。 Some help would be great. 一些帮助会很棒。
Thanks in advance 提前致谢

The a4j:support has been replaced by a4j:ajax since RichFaces 4.x. 自RichFaces 4.x以来, a4j:support已被a4j:ajax取代。

You seem to be reading RichFaces 3.x documentation or just have upgraded RichFaces 3.x to 4.x. 您似乎正在阅读RichFaces 3.x文档,或者只是将RichFaces 3.x升级到4.x. This is a pretty major step where a lot of things are been changed. 这是一个非常重要的一步,很多事情都发生了变化。 Read the migration guide (in this particular case, it's described in a4j components ) and also read the new RF4 component reference . 阅读迁移指南 (在这种特殊情况下,它在a4j组件中进行了描述),并阅读了新的RF4 组件参考

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM