I'm preparing some variables in JavaScript (in my specific case, I'd like to get GPS location):  function getVars() {     // ...     var x = locationInfo.lng;      var y = locationInfo.lat; }   I'd like to send them to my managed bean v...
I've a PrimeFaces web application. When I manually add jQuery and plugins like below,  <script type="text/javascript" src="js/jquery-1.7.1.min.js"></script> <script type="text/javascript" src="js/oneby...
Sometimes, I need to render a JavaScript variable using EL in a JSF page.  E.g.  <script>var foo = '#{bean.foo}';</script>   or  <h:xxx ... onclick="foo('#{bean.foo}')" />   This fails with a JS syntax erro...
I would like to use in my project highcharts and jsf both. I have a managedbean, which has a list and it is initializing by a facade (it do a query in my database). If I'd like to pass the value of the list to highcharts, how can do this? if anyo...
While analyzing the performance of a JSF 2.1 + PrimeFaces 4.0 webapp with Google PageSpeed, it recommends among others to defer parsing of JavaScript files. On a test page with a <p:layout> and a form with <p:watermark> and <p:fileUplo...
Here is something so simple  <p:commandLink value="Tom" onclick="document.getElementById('tom').focus()"/><br/> <input id="tom"/>   When u click on the Tom, the textbox get focus. Great, now try this...
I have several WebSockets endpoints such as,  wss://localhost:8181/ContextPath/Push   All of such endpoint URLs are hard-coded in separate, external JavaScript files (.js). These JavaScript files are included in respective XHTML files as and when req...
I try to pass value from jquery to jsf and Backing Bean. And in the process, I do not want to use f:ajax from jsf-Tag.   javaScript or jQuery  <script>    var myvalue = null;    $('.classname').live('click',function(){       myv...
I am unable to achieve a (primefaces)dialog box with attribute modal=true. It works correctly with modal=false, but when I try to set modal=true, even the dialog box overlay becomes inactive.  How can I make it work properly ?...
I'm extending a part of a PrimeFaces application with some JavaScript interactivity. It all starts with CommandButton which gets some data from the bean and calls then JavaScript. Currently, it looks something like this:  <p:commandButton acti...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.