permaculture playing cards*
The moose likes JSF and the fly likes send primefaces command button position to server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "send primefaces command button position to server " Watch "send primefaces command button position to server " New topic
Author

send primefaces command button position to server

Nesrin aboud
Ranch Hand

Joined: Feb 08, 2010
Posts: 48
I have a CommandButton in a screen , with actionListener,
the actionListener opens popup screen shows a menu some text

I need to send the position of the button to the actionListener on clicking the button to make the popuscreen open in a position consistent with the button

any idea ?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

The button's location and size are properties of its DOM element. You should be able to code a JavaScript "onsubmit" function that stores those values into hidden form fields so that they'll get posted to backing bean properties and available when the submit action method is invoked.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: send primefaces command button position to server
 
Similar Threads
Manually sending events?
Memory Leaks and Removing ActionListeners
Positioning of JButton
RadioButtons and if statements and more....
about centering of the frame and using the new frame