Showing posts with label jquery. Show all posts
Showing posts with label jquery. Show all posts

Monday, July 15, 2013

Note: Change the position of a Dialog in Primefaces from javascript

If you are working with primefaces you will figure out that this framework implemented with JQuery library, this a good behaviour for jsf pages, if you try to do something with javascript, you have to keep in mind reading primefaces css to understand how get that component you need.

1. First Step should be declare the libraries in head part of JSF:
2. Second step is to declare a position.js in your WEB-INF folder and write a function like this:
3. Finally declare the above function in your button
And that is it, you can take the control of any primefaces component rendered in the JSF page, using JQuery. 

Best Regards,