本文介绍了使用JSF 2找不到a4j:support标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅尝试集成此命令链接

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

在使用JSF2的应用程序中.如果我离开它,则会收到此错误

On an applicacion which is using JSF2. If I leave it, I get this error

我试图在网上找到东西,但我不知道.一些帮助会很棒.
预先感谢

I was trying to find something on the net, but I couldn't figure out. Some help would be great.
Thanks in advance

推荐答案

自RichFaces 4.x起,a4j:support已由a4j:ajax替换.

The a4j:support has been replaced by a4j:ajax since RichFaces 4.x.

您似乎正在阅读RichFaces 3.x文档,或者刚刚将RichFaces 3.x升级到了4.x.这是非常重要的一步,其中很多事情都发生了变化.阅读迁移指南(在这种情况下,它在 a4j组件),并阅读新的RF4 组件参考.

You seem to be reading RichFaces 3.x documentation or just have upgraded RichFaces 3.x to 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.

这篇关于使用JSF 2找不到a4j:support标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 22:00