File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes menupopup ActionEvent problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "menupopup ActionEvent problem" Watch "menupopup ActionEvent problem" New topic
Author

menupopup ActionEvent problem

sam sami
Greenhorn

Joined: Dec 22, 2010
Posts: 18
I am using Icefaces , using that i have designed tree. i want output like when i right click on tree node i'll get the menupopup and when i click on menu i have to get the value on which i press mouse right click at backing bean side, for that i have written a code but when i click on menu the event not get fired.

i want to fire event so i can add, remove node at run time. my current code is as follows -





please help me to find solution.
sam sami
Greenhorn

Joined: Dec 22, 2010
Posts: 18
finally i solved that problem (not fully). Now i am facing new problem.

first time when i click on menu of menupopup i am getting null value of target (value on which i have right-clicked), but then after for every request i am getting the expected result (getting target value)

can anyone tell me what i am missing.
Mattias Andersson
Greenhorn

Joined: Nov 17, 2010
Posts: 20
How did you solve it?

Please share. I'm stuck too


It's better to be approximately right than exactly wrong.
Guy deLyonesse
Ranch Hand

Joined: Apr 12, 2011
Posts: 200

sam sami wrote:finally i solved that problem (not fully). Now i am facing new problem.

first time when i click on menu of menupopup i am getting null value of target (value on which i have right-clicked), but then after for every request i am getting the expected result (getting target value)

can anyone tell me what i am missing.


It's hard to know what to look for without knowing what your code looks like now that you've solved the original problem.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: menupopup ActionEvent problem