Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

send primefaces command button position to server

 
Nesrin aboud
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 17989
47
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic