aspose file tools*
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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: 15632
    
  15

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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: send primefaces command button position to server
 
Similar Threads
about centering of the frame and using the new frame
Memory Leaks and Removing ActionListeners
Positioning of JButton
RadioButtons and if statements and more....
Manually sending events?