Tagged Questions
0
votes
1answer
14 views
how to force the page reload in primefaces?
I want to force the reload of the page in my page after the download of my file.
I tried this but it did not work
<script type="text/javascript">
function stop() {
...
0
votes
0answers
13 views
how to automatically call the print dialog on a JSP without displaying the PDF document
How can I automatically call the PRINT dialog on a JSP without displaying the PDF document?
Here is the scenario:
I have a JSP page that displays some tiny info about a document (i.e.: file name, a ...
-1
votes
0answers
45 views
Need help in my design html / javascript [on hold]
Good day guys.
I'm quite new to html, javascript and jsp.
I would like to ask something regarding html and javascript. Here is my code:
<%
out.println("Names of Mailers :");
%>
...
1
vote
1answer
17 views
Comparing two files apache commons
I need to check if any of the 4 uploaded files are same, this check might be on the JSP or Java-Servlet side.
I've been using
var FileName1 = document.getElementById('fileChooser1').value;
var ...
0
votes
1answer
12 views
is any way to abort AjaxBehaviorEvent listener or pass additional info to f:ajax onevent?
I have created listener in my controller, something like that..
public class FooController {
public void doSomething(AjaxBehaviorEvent evt) {
closeDialogFlag = true;
..
...
-1
votes
0answers
13 views
Create and display Running Graph
Currently I am using JFreeChart to generate graph image, and displaying it on my jspx.
But now I need to show running or moving graph depending on some data added or deleted from system.
Please ...
0
votes
0answers
4 views
Automate Printer Selection c# IDM API
I am using IDM Desktop api to download a large number of documents,in this there is a function available to print the document using
IDMObjects.Document FnDoc;
...
0
votes
1answer
33 views
I want to automatically increase table row after clicking button
Hi, my problem is increasing the table row automatically. Actually, when I click GET button the product type and product name values are getting from database. Here, after getting those values, I ...
3
votes
2answers
47 views
How can I use Java to restrict the session to a single browser tab
I don't want the user's HTTP session to be shared between browser tabs.
For example, if a user logged into the system in tab one, he can see all of his profile details. However, when the same URL is ...
-1
votes
0answers
34 views
Whats the best resource to learn programming online? Such as websites, pdf, e books? [on hold]
*strong text*Whats the best way to learn programming online? from basic to advanced, learners or e books...Thx
0
votes
2answers
17 views
pass a javascript variable to a servlet using ajax
I have a frameId varibale that I recovered from my javascript code and I want to pass on to my servlet, I use ajax for that but it did not work:
here is my javascript method:
function ...
0
votes
0answers
8 views
Javascript unable to validate using onKeyPress for form input fields
I am trying to validate form input for login username & password however, whilst testing this I try and miss username or password and click login I get a 404 error instead of getting a warning the ...
0
votes
0answers
25 views
Adding a method causes cross domain error
I have a servlet that is called to by a javascript ajax call. This servlet calls two methods:
xml.append(xmlCorrectPath(maze));
xml.append(xmlAttempt(maze));
If I comment the second one all is fine ...
1
vote
0answers
11 views
How to run JS Karma tests from Gradle
I am trying to add a Gradle task to my project to run Karma tests. The tests have been run manually from command line so far. I found a Gradle JS plugin but it doesn't seem to have Karma integration. ...
0
votes
1answer
37 views
How to update a JSF java string directly in a javascript function
I want to know how to update a String in my backing bean directly from a Javascript function.
My example tries to call the Javascript function (where the String img will get updated), and then I ...
0
votes
1answer
32 views
Make changes to records using radio buttons.
How can I change and update a list of records using radio buttons?
I have a list of student objects(studentList) which is displayed in the UI as follows:
So now I change the grades of Tom and Sally ...
0
votes
0answers
24 views
Create draft mail in user's mailbox in Java
I have an client/server application which is running on JBoss server in Linux and client being an web browser(internet explorer or Chrome) in Windows. While users submitting form the filled in inputs ...
0
votes
0answers
12 views
ElasticSearch histogram facet exception
When I execute this query on my events index:
{
"query": {
"query_string": {
"query": "*"
}
},
"facets": {
"histo1": {
"histogram": {
"key_field": ...
-1
votes
3answers
26 views
Json based webservice in java and client in javascript
I am new in web service development. Currently I am developing an application (in html5 using javascript and jquery) in which I wanted to send data to web service in Json format.
My question are: 1) ...
-1
votes
0answers
26 views
Display a message after successful execution of the action and then redirecting to the same page
In a jsp page, a list of all the employee names is shown in select tag. after submitting the form. the record related to the selected value should change and after successful execution, request should ...
0
votes
1answer
16 views
BrowserWindowOpener component - Vaadin
how can I get the same behaviour like BrwoserWindowOpener do ?
Exacly: open the external file in new browser window with disable for changing URL bar?
0
votes
1answer
9 views
How to make Rhino to run custom javascript setTimeout function, endless eval
I have gameboy script I found written in javascript I'm trying to get it to run in java.
(I'm not looking for any java gameboy emulators).
I have a javascript with these two files
function cout(e, ...
0
votes
0answers
23 views
Netty Socketio SSL
I cant seem to get the sslchatlauncher from netty socketio demo
I already did this to my server
config.setHostname("localhost");
config.setPort(9092);
...
0
votes
1answer
17 views
unfortunately app has stopped in android emulator after adding webview
I am trying to build a android application which takes input[array values] from java and passing to java script and html file. I have created with web view concept. But when i execute app is not ...
0
votes
0answers
24 views
Putting a touch motions into variable
I wanted to put the Android touch motions of touching down, dragging, and lifting up all into separate variables. My goal is to use them in JavaScript in place of the mouse movements ~ 'mousedown', ...
0
votes
1answer
19 views
Hot to model JSNI Functions with optional Parameters?
I want to write a GWT JSNI wrapper function for the following JavaScript function.
object.cache(config);
where config is an object with the following optional parameters
- x Number
- y Number
- ...
0
votes
1answer
20 views
passing conditional spring mvc parameters into javascript url function
I have a javascript calendar control in a spring mvc application. When the user clicks on a date in the calendar control, the user is redirected to a detail page for that date. The problem is that I ...
1
vote
2answers
55 views
what's the difference between bitwise shift with 2 arrows and 3 arrows? [duplicate]
I've seen >> and >>> before. What is the difference and when to use each?
0
votes
0answers
17 views
Stripes add dynamic element to form
In my project i have used stripes framework.
In that one form I need to add dynamic text box on click of add button .
i am successfully able to add text box in form referring below links.
the textbox ...
0
votes
1answer
26 views
Getting clipboard data using javascript?
I am using Html5 and JQuery.
Html
<canvas style="border:1px solid grey;" id="cc" width="1000" height="800">
Javascript:
var pasteCatcher;
if (!window.Clipboard){
...
-3
votes
1answer
19 views
to pick columns from excel sheet and put onto a specific web page into different columns [on hold]
I have a excel sheet and i want to pick columns from that sheet and put onto a specific web page into different columns.
I want code to automate this task.
-1
votes
2answers
33 views
How to link 3 combo boxes in java? [on hold]
I have 3 combo boxes in java. Now i want to link them. My 1st combo box is "Car Category" 2nd is "Car Type" 3rd is "Car Number". All these 3 are linked together. I am trying to change value of combo ...
0
votes
6answers
43 views
Show alert when form submitted
İ have a form. When user click submit button, i want to show alert and submit the form.
Here is my code sample.
<form action="DoMakeApplication" Method="post">
...
0
votes
1answer
30 views
Java servlets: How to detect (on Server Side) if JavaScript (on Client Side) has beeen tampered with?
This is a very general question, but please bear with me ...
I have recently put alot of effort in form validation javascript, before submitting forms to my server, then the idea hit me ... I have ...
0
votes
0answers
21 views
XMLHttpRequest and JAX-RS 404 403 errors, can't get a response from javascript
Java EE is hell. I'm trying to implement a RESt service that is going to be queried by clients from arbitrary domain, using javascipt XMLHttpRequest.
For the server side, my context root is "qwerty". ...
-2
votes
6answers
88 views
Good code commenting tips [on hold]
When I started to code my application I was not very carefully about commenting my code. Later I regret of course. This have happened a lot of times, and Im looking for some tips about how to do a ...
-1
votes
0answers
30 views
How to display Java method output in Javascript without using servlets? Is it possible?
I know how to code in Java, and I am familiar with Javascript. I have been able to embed Java code inside Javascript. But what I don't know is how to call inside Javascript, methods from external Java ...
-2
votes
1answer
20 views
How can I get dynamic content from a http web request through java
The output HTML code is not complete, because the javascript in it is not executed.
Do I need to run the javascript somehow?
I want to get the content of a live-bidding website through java.
-1
votes
0answers
42 views
Too many Drop Down option making website really slow
I've got a couple questions, Or more so asking for recommendations.
I'm working on a real estate website which has over 20,000 categories to select from when using the front end submission system. ...
0
votes
0answers
18 views
Phonegap and web view
I am new to Phonegap and android development, so far I've been doing some great stuff but now I am facing two major issues:
-How to upload images through the html . I don't want the image to be ...
0
votes
1answer
43 views
How to pass textbox values and what was the action to spring mvc controller?
I am working on a Spring MVC controller project.
First button is, INSERT. As soon as I click INSERT button, I am showing three text box just below the INSERT button. First textbox is datacenter, ...
0
votes
1answer
31 views
How to create subitems in json and java, and how get the value of the subitems in javascript?
With this code I could generate the structure below
int n=3;
String json []= new String [n];
try {
JSONArray js = new JSONArray();
...
-6
votes
0answers
28 views
Convert java code to javascript code [on hold]
i am working on a project dealing with graphs. i have done the java code. can you please convert it to javascript. thanks
import java.util.ArrayList;
import java.util.LinkedList;
import ...
0
votes
1answer
29 views
any way to manually set the “Script Name” when adding JavaScript?
I use iText to batch enable shared reviews in pdf files at the server level. Injecting the required javascript is accomplished using the PdfStamper's addJavascript() function. This does enable the ...
0
votes
3answers
27 views
Print out from Servlet
I want to print out a column from my MySQL database. I have a calendar system, where you can choose a "from" date "to" date. When you choose the time period, it should print out the COLUMN ...
0
votes
1answer
18 views
Representing minimum, maximum, mean and current value graphically in html
I have been trying to represent data graphically using d3 bullet charts but it was not appropriate. http://bl.ocks.org/mbostock/4061961
Are there any other alternatives to represent data graphically; ...
1
vote
0answers
41 views
How to make desktop application in HTML 5 as GUI tools with JAVA as back-end? [on hold]
Actually, I need to know the how do I replace my existing Swing code into HTML5?
I need to know to know what will be the structure of the application, how do I go about this task?
0
votes
1answer
23 views
date formatting from response
Calling a OData service and getting the ATOM XML response of a date column gives me date value as
<d:BUSINESS_DATE m:type="Edm.DateTime">2012-08-02T00:00:00.0000000</d:BUSINESS_DATE>
...
0
votes
1answer
30 views
Need help in android application designing [closed]
Actually I am starting just android tutorial videos and making a game on android so a lot of questions there in my mind but as I have my work to just only designing of game,Can I get some useful video ...
-1
votes
1answer
41 views
Launch an Application from a Browser
I would like to have a link or button on my web site that launches
vim (an editor) on a specific file (e.g., myfile.txt) on my local machine.
I want to launch C:\Vim\Vim74\gvim.exe on ...