开发者

Richfaces tree context menu

I'm trying to add context menu to one of my components which is actually rich:tree.

<rich:tree switchType="ajax" ... >

            <rich:contextMenu event="oncontextmenu" attached="true" submitMode="ajax" id="treeMenu">
                <rich:menuItem>
                    <h:commandLink action="action.deleteResource" value="Delete" />
                </rich:menuItem>
                <rich:menuItem>
                    <h:commandLink action="action.editResource" value="Edit" />
                </rich:menuItem>
            </rich:contextMenu>
        </rich:tree>
开发者_JAVA百科

However I can't see it when I hit right mouse button.

Thanks in advance.


Resolved.... just put

<rich:contextMenu> 

inside of

<rich:treeNode>  
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜