a4j:support tag not found using JSF 2

旧城冷巷雨未停 提交于 2019-12-19 02:06:31

问题


just trying to integrate this 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. If I leave it, I get this error

Tag Library supports namespace: http://richfaces.org/a4j, but no tag was defined for 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


回答1:


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

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.



来源:https://stackoverflow.com/questions/5402697/a4jsupport-tag-not-found-using-jsf-2

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!