0
votes
0answers
23 views
how to retrieve tree data from dict variable in controller
I have a dynatree and I am sending the tree data to the controller, in the controller I am getting the data in the form of string but it is obtained from java script
var currentTree = ...
0
votes
1answer
19 views
how to pass dictionary object from ajax to controller class in play framework
I have dynatree in my view page, I want to save the current state of the tree on every drag and drop operation, The problem is I am unable to pass that dict object to the controller. The code of ajax ...
0
votes
2answers
34 views
what class convert to java script in GWT?
i create a sample project with GWT. in my project there are some classes and packages. my question is that what class or package finally convert to java script? server? client? or both? and what is ...
0
votes
1answer
12 views
Aptana plugin for eclipse javascript - error identification and autocompletion
I installed the Aptana plugin 3.2.0 for the Eclipse IDE For javascript, but the features it promises are not apparent. Even the simplest syntax error (random strings inside the code) doesn't trigger ...
-1
votes
1answer
50 views
how to calculate response time of a website in java [closed]
I am trying to build a website monitoring system.I need to calculate the time taken by a website to response or total load time.
0
votes
1answer
16 views
How to hide LinkItem title in smart gwt
I'm new to smart gwt and I'm a bit puzzled by a title that is appearing next to a LinkItem. Here is a screen shot of that
As u can see, "Download Template" is the one that is giving me a head ...
0
votes
0answers
82 views
Using javascript inside a Java program
I am trying to invoke a javascript script inside my java program in order to change the selection of a drop down box. I am attempting to pass my html-scrape Document object gotten from jsoup.connect ...
0
votes
0answers
30 views
Javascript freezes while java is loading
My application runs a small javascript which animates a progress bar while loading an applet into a browser. I observe the following. The javascript runs for a few seconds. It then freezes. ...
-5
votes
2answers
39 views
Passing JS array value to a backing bean using <f:setPropertyActionListener />
can any1 tell me how to pass an Array in JavaScript (basically some table rows selected by user) to a backing bean array using f:setPropertyActionListener or any other method?
0
votes
1answer
28 views
Calling a Javascript function from an applet
All I want to do is call a javascript function from a Applet and pass multiple variables, I'm able to do this with just one variable, but I want to do it with multiple.
calling Javascript function ...
0
votes
3answers
48 views
Calling a javascript function out of java
Im trying to call a javascript function out of my Vaadin Portlet.
lets say I have an HTML file witch is located in my project ;
homepage.html
<html>
...
<script ...
2
votes
3answers
30 views
Proper regular expression for server error message
I am making a ajax call and I am getting error from the server.
Now the problem is I am getting the below message
HTTP Status 756 - Error while processing the request.
...
1
vote
2answers
34 views
Detect target language in Haxe
I'd like to detect the target language in Haxe so that I can change a function's behavior depending on which language Haxe has been compiled to.
Example in Haxe-like pseudocode:
class Test() {
...
0
votes
1answer
21 views
JSF - Calling bean method when clicking <a> element
So I have an anchor element, and it's href attribute is set dynamically from the bean. I am using an anchor since it is interacting with fancybox javascript. What I need to have happen is to call a ...
0
votes
1answer
21 views
Beanshell - using arraylist
I am using beanshell and i want to use arraylist
My code -
import java.util.*;
List test= new ArrayList();
test.add("Last Name");
But I am getting following exception
Caused by: ...
-5
votes
0answers
36 views
How to connect to database using applet and html [closed]
I try to connect to database using applet and html.. but there is error
How do I connect to database using applet and html ..
-1
votes
0answers
63 views
convert java variable to javascript [closed]
Possible Duplicate:
Java to JavaScript communication
I'm trying to pass the value of a java variable to another javascript file.
Here the java code:
public void ...
0
votes
2answers
51 views
setting javascript variable value in JSP:UseBean using Set property
i am new to JAVA i dont know wheather its possible or not but i will really appriciate if some one tell me how to populate the variable of JSP:bean with already existing JAVASCRIPT variables present ...
0
votes
1answer
40 views
Passing select row of HTML table to next JSP page
I created a HTML data table in a page say DATABROWSER.JSP through Java script (including all its row and there on click function in JS). I want to pass the selected(highlighted) row value to another ...
1
vote
1answer
34 views
Vaadin : Call a custom JavaScript function
Is it possible to call a Java Script function out of Vaadin Portlet ? E.g I have a Portlet and a JavaScript file witch contains the function : alert(message). Id like to call the function and send the ...
0
votes
0answers
18 views
SmartGWT draw DrawLine on Mouse Move
I'm trying to draw a DrawLine on a DrawPane after clicking on it and want it to move with the mouse until I click it again(similar to any other drawing program).
pane = new DrawPane();
...
0
votes
1answer
37 views
Integrating Javascript Frameworks with Java Web Frameworks
I have what I think might be a strange question to ask.
Recently I was playing with some java web frameworks (jsf with primefaces) and I noticed that it's quite good at handling form data or when you ...
0
votes
0answers
24 views
ExtJs Combobox displayField encoding
I have a java web application. I have an entity class which (after transformation of course) i would like to use in a combobox with ExtJs. My problem is as follows:
There can be entries having html ...
1
vote
2answers
31 views
Opening a file on click of a link on a jsp page
I have a link(say open file) on a JSP page. On clicking that link, I need to open a file. The location of the file is present in a table on the Database. Since "onclick" event is a Javascript event, I ...
0
votes
0answers
19 views
jasper exception when handling submit buttons in jsp
hi when i try to read the submit button's status in the below code, i am getting
**org.apache.jasper.JasperException: java.lang.NullPointerException** why?
My jsp code (ab.jsp.)
<form ...
3
votes
1answer
38 views
Is it possible to simulate Javascript-style prototypes in Java?
I'd like to know whether it's possible to simulate Javascript prototypes in Java. Is it possible to associate a list of variables with a function in Java? I want to create something similar to ...
0
votes
4answers
58 views
Post JSON Data From Javascript To Java
I'm in need of some desperate help. I've been at this for 4 hours, and I'm getting pretty worn out. :/ Here's my situation:
I have a Javascript application that is making a POST request (using jQuery ...
0
votes
1answer
50 views
establishing communication between Java desktop app and Java browser applet via sockets
I'm new to network I/O programming, and I've run into a snag-- basically what I want to do is have a desktop app talk to the google maps javascript API. In order to facilitate this, I have built a ...
0
votes
2answers
51 views
Online document editor - Where and what do I start with?
I plan to build a product that would let users do what Google Docs is doing today (although, not as good as Microsoft would do it) - edit word docs. The reason I can't use Google Docs is coz I need to ...
-3
votes
1answer
79 views
How to create a simple encryption algorithm in java? [closed]
Guys can anyone guide me on how to create an algorithm for encryption/decryption in Java? I need to make a client - server chat on which text needs to be encrypted by generating a key. On the ...
0
votes
0answers
10 views
Flexigrid filtering
I am working on a "advanced" filtering option for a list using Flexigrid. We have filters already done by checkboxes. but when I click a button for advanced search after putting in my fields and ...
0
votes
0answers
14 views
sun.org.mozilla.javascript.internal.NativeJavaObject cannot be cast to java.lang.String
I'm using java 6 javax.script feature but I have an issue :
Before I call the ScriptEngine.eval() method I put some attributes to the ScriptContext:
scriptContext.setAttribute("Utils", utils, ...
0
votes
1answer
34 views
Connecting Server-Side Java to Front-End Javascript for iOS App
I am writing a web app for iOS using Sencha Touch 2.0 and am using Javascript primarily on the front end however I plan on using Sencha to "package" the app into what is nearly a native app.
I need ...
1
vote
0answers
32 views
Browser/jQuery Proxy Error
We have a web app that has a built-in search feature that our users can perform complex searches. Here's our software stack:
Server-side is Spring MVC using Struts/JSPs for view
Client-side JS ...
0
votes
2answers
35 views
Smart gwt tutorials and guidance
I'm new to smart gwt and I need some help. Please help with some good smart gwt tutorials and also with some good books that i can buy to learn this. I made some search and literally found nothing ...
0
votes
0answers
27 views
Using diferent <form:input> tags in the same place on JSP page
In my JSP page (Spring MVC application) I have one list box (<form:select ...>) with values from some Enum.
What I try to achieve is to change an another input depend on choise from above ...
2
votes
2answers
23 views
Website development and testing in Eclipse and Tomcat: javascript is cached
I'm developing a web application with jsp pages in Eclipse 3.7.2 and testing it with Tomcat v6.0.
I've almost the perfect environment as all changes to my jsp or java code are immediately available ...
0
votes
4answers
109 views
calling java method in javascript
I am trying to call a java method in a javascript. java class resides in server side.
The Sample Java Code is:
public class deleteconfig
{
static boolean check = true;
public static void ...
1
vote
1answer
20 views
Uploading an image to picasa using a DataURL String
I am using HTML5 to create a 'camera' application that is totally web based. (without phonegap)
I now have a DataURL that I obtained as follows
canvas.getContext("2d").drawImage(video, 0, 0, 640, ...
0
votes
0answers
22 views
onkeyup event to util tag for date validation
I am not able to add onkeyup or onclick javascript events to this util below jstl tag. Exactly i am not sure this is correct way to do this.
need sugessions to add onkeyup event to do the date ...
-1
votes
1answer
69 views
How to zoom a jpeg image programmatically? [closed]
I would like to be able to zoom in and out a JPEG image in my project.
I would like to zoom the image when we click on some part on it. How can I achieve this?
In simple words, how can I zoom a ...
1
vote
1answer
62 views
Creating Static Singleton Patterns in Java
I'm creating a utility class which will be used (among other things) to create a new org.mozilla.javascript.Context object bound to the current thread. I have a single, global JavaScript scope which ...
0
votes
1answer
54 views
Signed Applet With Javascript Function Call: Initialization Error on IcedTea plugin
I'm trying to call a Javascript function from inside a Java Signed Applet that I developed. This goes pretty well when I use a browser with Sun Java plugin. I tested on Windows 7 and Ubuntu 10.04 with ...
1
vote
1answer
20 views
How to simulate DOM for Rhino / Java 6 script engine
When using Rhino / Java 6's script engine:
ScriptEngine engine = manager.getEngineByName("JavaScript");
My problem is when I evaluate some scripts (normally written for the browser environment) the ...
2
votes
2answers
76 views
Java/JavaScript dates: Is this true?
So lets say a user is running my web app from his browser on a different time zone than the application server. I serialize a date on the client-side by using JavaScript's date.getTime() method. I ...
0
votes
0answers
38 views
call a java function from js in phonegap
I am in mobile app and I have the following problem:
I have MiniPrinterFunction.java file inside com.StarMicronics.StarIOSDK which contains GetStatus(), PrintText() and PrintBitmap() functions.
I ...
0
votes
0answers
20 views
Why doesn't CKeditor save correctly after deleting text?
I am using the CKeditor to input text and save it. However, when I press the backspace key more times than necessary (suppose text contains 4 letters and I press backspace 6 or 7 times) and save it, ...
0
votes
1answer
27 views
What's the best method to traverse the Swing DOM?
In a browser if I'm using javascript it's fairly straight forward to traverse the DOM. Unpacking it from the top down is just a series of calls, and finding individual elements is easy because of id# ...
0
votes
2answers
39 views
XMLHttpRequest java javascript
I try to communicate between javascript and java. My script javascript send a message to java and java send a response.
javascript part:
var xmlhttp = new XMLHttpRequest();
...
1
vote
1answer
36 views
How to pass javascript array to java applet method?
I have applet that contains method:
public void send(byte[] arr) {
... //some code
}
But when I call this method from JS I get the error:
java.lang.IllegalArgumentException: No method found ...