Problem with JSF RI Sandbox ContextMenu Component...

I tried the code on the official site :

https://javaserverfaces.dev.java.net/sandbox/components/contextMenu.html

<h:outputText id="text" value="This should have a context menu!">

<risb:contextMenu width="225px">

<risb:menuItem value="Test!" url="http://www.yahoo.com"/>

<risb:menuItem>

<h:outputLink value="https://javaserverfaces.dev.java.net/">

<h:outputText value="JSF RI Homepage"/>

</h:outputLink>

</risb:menuItem>

<risb:menuItem>

<h:commandLink action="home" value="Home"/>

</risb:menuItem>

</risb:contextMenu>

</h:outputText>

The problem is that the contextMenu is permanently displayed just Above the outPutText...

I use a web application with facelets. I just added the jars :

shale-remoting-1.0.4.jar

jsf-ri-sandbox-0.9.jar

Maybe i have to change other things in my project anyone can help?

[962 byte] By [hainejoya] at [2007-11-27 10:29:55]
# 1

Hey, hainejoy. By permanently displayed, do you mean the menu shows as soon as the page is rendered? It's working for me in the demo app in both Firefox 2 and IE 7:

http://www.jsftemplating.org/JsfRiSandboxDemo-facelets/contextMenu.jsf

What browser are you using? Are you seeing any JavaScript errors when the page loads?

jasondleea at 2007-7-28 18:00:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

I'm using Firefox 2.0.0.4 and most of my application use ICEFACES with facelets...

Yes the menu is shown as soon as the page is rendered just above the text associated with the menu...

This way:

* Test!

* JSF RI Homepage

* Home

This should have a context menu! Right click me!

And no javascript error...

What do i have to add to my faces-config.xml or server.xml to use this component?

hainejoya at 2007-7-28 18:00:14 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...