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
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: 16250
    
  21

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