Tagged Questions
0
votes
0answers
14 views
ScrollPanel with slim scrollbar?
I want to extend the GWT ScrollPanel to modify the scrollbar for this panel.
I would do it like:
public class MyScrollPanel extends ScrollPanel {
public MyScrollPanel() {
super(); ...
0
votes
0answers
11 views
Standalone Java manifest file without a JAR or giving .class file permission attributes?
I manage an application server that has a custom browser-checker on it that basically looks on your PC to see what version of the JRE you're running.
With the newest version of Java, Version 7 Update ...
0
votes
1answer
14 views
Opening a web browser and controlling it as a Virtual User
I am trying to open a browser and then simulate a user in Java. Previously I would have accomplished this with simple Applescript, with something like this
tell application "Safari"
activate
open ...
0
votes
2answers
29 views
Asynchronous processing with a single thread
Even after reading http://krondo.com/?p=1209 or Does an asynchronous call always create/call a new thread? I am still confused about how to provide asynchronous calls on an inherently single-threaded ...
0
votes
0answers
14 views
access event by Facebook API
I'm trying to get information about event, to which I am invited.
I created access token in Open Graph page with all available permission and I use it.
I can fetch one event, but I can't see another, ...
0
votes
1answer
30 views
Java Action receiving ā\r\nā for each new line in textarea field But Javascript gets only '\n'
I want to automatically cut a string from a textarea up to 255 characters. . So that my Action gets only 255 characters.
But the problem is Javascript considers line break as one character while Java ...
-6
votes
3answers
98 views
A Plugin for Eclipse that helps maintain best practices in source code? [on hold]
I want to know whether there is a good or any one using plug-in for eclipse (Kepler) which detect, support and give suggestions to show unused variables, empty catch blocks, unnecessary object ...
0
votes
1answer
29 views
Dynamic Content Parsing
I am working with content parsing I executed the sample program for this i have taken a sample link
please visit the below link
...
-1
votes
2answers
32 views
Calling a Javascript function from java class
Hi I have a javascript function like:
function abc(x,y,x)
{
do something;
while(condition)
{
do something;
}
}
I need to call this method from java class. Is it ...
1
vote
0answers
22 views
Hide Date from datepickerPlugin.java
Am working on jQueryMobile and PhoneGap android Application.
For shows the Date i used datepickerPlugin.java.
My Requirement is ; in the case of payment Expiry Date ; I need to show only MM and YYYY ...
0
votes
1answer
43 views
Using Meteor Framework in Monitoring Application
I evaluate using Meteor Framework in Monitoring Application.
Use case. Java Application running in the cluster generates data. Web Application visualizes this data (charts, etc.)
Currently it is ...
0
votes
0answers
20 views
readHexInteger from java to nodejs
Got this code in java :
public static int readHexInteger(ChannelBuffer buf, int length) {
int result = 0;
for (int i = 0; i < length / 2; i++) {
int b = buf.readUnsignedByte();
...
-1
votes
0answers
26 views
Uploading large data on parse.com
I want to upload some huge data on parse then use it for my mobile application. How can I easily upload that large data on parse.com ? any suggestion (that data will be use in android application, ...
0
votes
0answers
26 views
Crypto JS AES-128 cipher - equivalent Javascript code
I have the following Java code for creating an AES-128 cipher, where key and iv are both based on the same passphrase.
Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5Padding");
byte[] keyBytes = ...
0
votes
0answers
27 views
calling a javascript function form java servlet then manipulating the result html [on hold]
I need to get the showPage(2) of this page:
...
0
votes
1answer
18 views
X509CertificateHolder constructor not accepting the X509CertificateStructure as argument
I am quite new to java programming and I still strugling with some things. I am trying to implement a bouncycastle certUtils with some customizations. however the X509CertificateHolder constructor is ...
0
votes
0answers
80 views
Namespace, package, Interface/Implementation naming convention
I am searching for best practices about naming conventions for classes and namespaces. Searching during several days, but can not get convention, that completely fits me. Never mind the language - I ...
0
votes
0answers
38 views
Can i insert external js file in jsp using out.write method
Is it correct in jsp if i insert js file using out.write method
e.g.
// generate graph
out.write("<canvas id='canvas' height='450' width='600'></canvas>");
...
-5
votes
0answers
36 views
Unable to find online and ofline Status [on hold]
I got a task to create a chat app in a social Media. Which is the best way to find the users online and offline status. The app is for the http://doozyfive.com/ please any one help me.
I tried it ...
2
votes
4answers
64 views
what's the better call a function with all needed code inside, or a function with an other function inside with the needed code? [on hold]
I don't know how to formulate the question more accurately(because i'm not so good in English) but let me explain with some example (I work mostly on php ,javascript and java):
which style is better ...
0
votes
1answer
26 views
How to count XML tags of a document created with a servlet
I've created a servlet that use a class to convert the ResultSet of a mysql query in XML and return that XML to the browser. I can parse it correctly navigating with Javascript in the XML DOM but i ...
0
votes
1answer
31 views
populate select box based on the another select box
There are two select boxes ,both of them are populating from database.second select box should be populate based on the value selected from the first select box.first select box is already populated ...
0
votes
0answers
19 views
Sending and receiving Binary message with websocket
I am trying to receive a Binary websocket message in a Java server from a javascript client.
I have a webpage viewed in a chrome browser which connect to a WebScoket java server with the following ...
0
votes
1answer
31 views
Pressing a button inside a WebView Not Working
Hi im trying to get my program to hit a submit button after entering some strings into a few text fields, but i cant get it to work.
Im using the following code:
...
0
votes
1answer
18 views
Issue with injecting JS code into WebView
I'm working with android's WebView and I have this piece of code that turns the background orange.
@Override
public void onPageFinished(WebView view, String url) {
...
0
votes
1answer
23 views
Fill text fields in WebView online form without id's
Im trying to make a program to fill out an online login using local string variables.
Here is what i have so far:
web = (WebView) findViewById(R.id.webview);
WebSettings webSettings = ...
0
votes
0answers
27 views
ValueChangeEvent not received my Composite Radio Button Group?
When I use two radio buttons with the same name then they are in a group. If one gets selected the other one gets unselected.
I want to build my own Radio Button Widget which is represented by the ...
0
votes
1answer
16 views
JavaScript not calling method in Android using addJavascriptInterface
I have searched high and low and found so many examples of this, but unable to get it to work, my setup currently is:
Notifier.java
public class Notifier{
Context mContext;
...
0
votes
1answer
26 views
building a document preview webpage
Hi i'm wanting to create a webpage in which i can pass a url to a document and it previews it. the idea behind this is so i can create a responsive web view for android so i can preview documents from ...
1
vote
1answer
53 views
Create java object from javascript within apigee api proxy: Class is not a function, it is object
from javascript within an Apigee API proxy the following works as expected:
var javaString = new java.lang.String("FooBar");
throw "javaString: "+javaString;
but this doesn't:
var date = new ...
0
votes
1answer
32 views
How to retrieve an arraylist from Managed Beans in JSF
I am quite new to JSF and just started reading through some tutorials about it. I have created a JSP page and Managed Beans class and got the application run successfully. Based on my simple ...
0
votes
0answers
26 views
Passing parameters from Javascript to Android (Java)
So I'm trying to send an email through the Android's email client. However, when I attempt to send the E-mail to the client, it says the email is null. I find that strange since I'm passing the ...
1
vote
2answers
49 views
insert non-overlapping range in 2 column table
I have a database table with 2 columns.
+-------+-------+
|min |max |
+-------+-------+
|0 |99,999 |
+-------+-------+
|100000 |499999 |
+-------+-------+
|1000000|9999999|
...
-1
votes
1answer
30 views
How to properly type javascript codes in NetBeans 7.4?
I am using netbeans 7.4 which supports HTML & PHP only. I have a javascript tutorial and I need to practice those codes in an IDE. (I am absolutely new to javascript). I created a new project ...
0
votes
0answers
16 views
sencha cmd overview - problems with generated code
At work we've recently taken over a project written in a different company. Its in java and javascript with frameworks galore and one of them is sencha.
We're having trouble getting the app to build ...
3
votes
4answers
57 views
Add onclick function in pie chart
I need to add a graph in my project and I tried one free graph (link is given below)
I need to add an onclick handler to that pie chart. I think need to add the onclick function inside
...
0
votes
2answers
70 views
how to check null value in html textbox?
I have a JSP page where i am fetching value from html textbox.
I want to insert that value into MySQL database.
I want if textbox in empty,null,zero and undefined then insert 0 in database otherwise ...
0
votes
1answer
30 views
How to reduce the margin size for piechart in achartengine?
I am using a-chartengine for drawing pie chart. I am not able reduce the size of the pie chart margins. I want to reduce the margin layout which is default,But the size of pie chart should not get ...
0
votes
1answer
33 views
SuggestBox with KeyUp Handler-Arrow keys not working
I have a SuggestBox with KeyUpHandler attached to it to call the service to fetch suggestions. Now, the problem is, when I type the text and suggestions are displayed, if I press down arrow key, the ...
0
votes
0answers
21 views
Summing the individual elements of a column in a dojo grid
Got a jsp going with a dojogrid displaying, where a couple of the columns in the grid hold money values. I'm hoping to display the total sum of those money values under the aforementioned grid. Can I ...
0
votes
1answer
23 views
jsf. How to post backbean object from jsf form to javascript
I am using Primefaces/JSF in combination with pure javascript tools in order to implement an image viewer & annotator. Image viewer is built upon the OpenLayers framework.
When the user annotates ...
2
votes
2answers
24 views
How to use action return value in javascript(oncomplete)?
I have a commandButton and I want to call a javascript function when it is completed. the problem is I have to use the return of the action method in the oncomplete function. I assumed that I can use ...
0
votes
1answer
42 views
passing the value of an array to a method in javascript
I have to create an HTML table in which I will have images to display. further I want to pass this path to the next servlet page. for this I have created a separate method in javascript. Now the ...
0
votes
0answers
25 views
Find same DOM-element with JSoup and JS?
Is there some unique, inherent attribute of a DOM element that makes it possible to select the same element with both JSoup and Javascript?
I currently both render a page with webEngine and extract ...
1
vote
1answer
36 views
action is not fire for second time in struts 2
when I submit the button first time , it will hit the action(its work fine). but when I submit the button for second time it will not hit the action and display long stack race error message.
here ...
0
votes
1answer
16 views
How to use CoffeScript as DSL in a Java project?
We use JavaScript a kind of DSL in our project and running it using Java Scripting API. CoffeScript looks much better that JS so we want to it. T
Since there is no implementation of CoffeScript for ...
0
votes
1answer
32 views
JsArray not able to return length after receiving data from html5 storage
i have to save JavaScript-Arrays which contains JavaScriptObjects into html5 storage.
The number of these JavaScriptObjects diversify in the arrays.
When iam reading out the saved JavaScripts-array ...
0
votes
2answers
59 views
Android - phonegap error: Error parsing XML: unbound prefix
I restarted eclipse and the error changed to "error: Error parsing XML: unbound prefix" on the same line
I am trying to use this plugin in my androed phonegap application. It is a local notification ...
48
votes
3answers
132k views
if…else within JSP or JSTL
I have a kind of open-ended question..
I want to have a HTML code based on condition (desktop/ipad)..say Condition 1/Condition 2
I want to have separate HTML snippets for each of these conditions...
...
8
votes
3answers
18k views