0
votes
0answers
6 views
Primefaces Drag and Drop from DataGrid
I'm using Primefaces Drag and Drop to drag from a DataGrid to another component. The problem is that when you drag an item from a datagrid, the item is not visible as soon as it leaves the cell.
...
0
votes
1answer
34 views
Convert list of java object in javascript arraylist
I have a question: I have a java object that's a List and I want pass it to javascript for populate the source of a jquery autocomplete.
From jsp I pass the object present in the session by this tag
...
1
vote
1answer
16 views
Do I need to cleanup Rhino ScriptableObject instances?
I am using Rhino in a project, which requires that I create a number of ScriptableObjects, which are used for a short time, and then discarded. Will doing this create a memory leak?
The code is ...
-1
votes
1answer
39 views
handle unterminated string constant in javascript
When my sql server SP returning string with new line character and in my jsp I pass it to script function and display it in alert box it throws :
function sample(notes){
alert(notes);
}
Error:
...
-2
votes
0answers
35 views
Save a file in client side - in struts
I am generating an xml file from the action class using the following method:
public String saveTemplate() {
try {
previewTemplate();
TransformerFactory ...
0
votes
0answers
25 views
How to pass list values to the jqplot to get the stacked bar chart
I am trying draw a stacked bar chart but bar itsels is not shown. Dont know why?.
let me explain what I am doing. I have stored values in 3 columns of the database then using list(collections) i am ...
0
votes
0answers
5 views
$nearSphere query gives result java but how to calculate distance of each result?
I am using $nearSphere query in mongoDB. I wanted the distance along with the list sorted by distance it gives.
I want to use this distance in javascript where I show results. I have used several ...
0
votes
1answer
37 views
Store 10 UTF8 characters in database without failing the text character counter
there is text box of length size 10 characters and we are printing the text character counter also which display the no of character left in the text box.
if we are using ascii or UTF8 charctaers ...
0
votes
1answer
30 views
add item to a local json file using javascript object / java code
I have a locally stored json file as c:\path\jsontext.json.
I have a jsp page and .js file,
In my .js file I have a javascript object, the data of this javascript object is in json format and i would ...
0
votes
0answers
14 views
Capturing double click event on a defined layer using OpenLayers.js
A friend of mine is trying to capture the Double Click event using open layers plugin for a certain defined layer on the image.
I would appreciate any insight you can give me.
Thank you.
1
vote
1answer
33 views
GWT JSNI - Call java method of specific object
Consider the following widget. I add two of them to my page. The first one gets the name "widget1", the second one the name "widget2". It just should give out its own name, but called from javascript. ...
0
votes
2answers
52 views
Multi part javascript function
The problem I am trying to solve is having a javascript function that will perform some functions in sequence.
Step 1) Web client/javascript does some functions locally to the browser.
Step 2) The ...
0
votes
0answers
9 views
Unable to implement GWT-RPC from mobile application
I'm bit new on GWT-RPC implementation. According to my new requirement, there will be a mobile application(will be developed using phonegap), which will access the server-side servlets through GWT-RPC ...
0
votes
1answer
28 views
Facebook authentication and redirect ur
I have a scenrario where a user click to view a secure page, so hits the sigin page.
I have a Facebook authentication script on the sign in page as follows
<script type="text/javascript">
...
0
votes
0answers
20 views
Accessing User Created Cookie
I am trying to create a cookie programmatically and i am successful in creating one; when i checked in view cookies plugin in firefox.
The code used for creating cookie is :
document.cookie = "Test= ...