I am developing Office 365 outlook add in for one of our product that is developed on Java and Vaadin 6 framework. Our Java application has a very complex interface. We are tying to create similar interface in outlook web addin.
Actually what we are trying to achieve is that, we want to use the same Java Vaadin UI inside the outlook web add-in. We do not want to create UI using javascript as the UI of our main Java application it too complex and it keeps changing in different scenarios.
As per documentation, iframe is not allowed inside the add in. So can any one suggest me a way to achieve this? Thanks in advance !
Follow the instruction to create add-in: https://msdn.microsoft.com/en-us/library/cc668191.aspx
Then put your iframe inside the add-in page, and it works fine.
Related
I have a web app that displays a list of ID's (among other things) to the user. The back end is Java EE, and the front end is built with GWT.
When the user clicks one of the ID's a callback is executed that queries additional parameters from an API using the ID. When the API returns the parameters, I want to open another web app, passing one of the parameters to it so it opens displaying information relating to that parameter. How would this normally be done?
Can I use something like LinkElement for this?
Edit: I got this working using GWT's Window.open("my.url.com");
But I'm wondering if there's a better way?
You need to use GWT's Window class to handle this.
Is it possible to develop an application using java swing and jquery hand-in-hand? I want to make an application which is a kind of form . I am planning to develop GUI in swing . But, I m also looking forward to use jQuery in that.So is it possible?
I was wondering how I could embed a browser like view in a Java client application, at the same time that I can interact with it by means of JavaScript.
The problem that triggered this question is the following:
The interface of my application consists of a (Google) map and some svg stuff.
This is easy to do in a browser.
However, I also need access to some special Java libraries that can process some information from the map (e.g., certain coordinates in the map) and that answers values that should influence the browser view (e.g., a path should be drawn over the map).
My first idea was to implement the Java side behaviour as a REST web service, so from JavaScript I will invoke this webservice sending relevant information about the map and using the answer to update the map. Nevertheless, for my current needs (this is only a prototype) using webservices is a bit too much of infrastructure.
Is there a way I could just:
embed a browser like view in my Java application.
Interact from the Java side with this view by means of JavaScript functions implemented in the web page displayed in the browser view (such as these functions will influence the rendering of the page in the browser like view) ?.
I found other questions related to how to embed a browser in a swing application (e.g., Embedding web browser window in Java) and JDIC seems to be able to do this. Although some people report it is difficult to make it work in OSX (the OS I use) and do not mention if it is possible to interact with the browser by means of JavaScript.
It seems to me that in Android it is possible to make JavaScript calls from the Java (Android) side, so probably this is also possible in plain Java.
Thanks for any pointer !
With Java FX 2 you can. You get a webkit webview there. Can interact with it back and forth with java<->javascript.
For an example embedding google maps see: http://java-buddy.blogspot.se/2012/03/embed-google-maps-in-javafx-webview.html
You can embed java fx in swing with JFXPanel if you don't want to go with 100% JavaFX yet.
If you can use swt, take a look at SWT Browser widget
For javascript you can use
http://www.mozilla.org/rhino/
HI guys,
I am new to java. i want to develop one swing application and struts application and i need to integrate both
when user click on download button .exe should download and install on client pc.after
installation exe file should communicate with struts application.
Thanks in advance
Aswan
First you want to study this so that you can download your Swing App: http://java.sun.com/javase/6/docs/technotes/guides/javaws/developersguide/contents.html
Then you want to use HttpURLConnection to do GET and POST requests to your Struts application on the Server.
Your best bet is to just do the Swing piece and use HttpURLConnection to access a Servlet via a POST. You might want to look into the Command pattern to allow you to send different requests through one Servlet.
On another note: If you can live with the app living within a web page GWT is also a good use case for this, it also can integrate well with existing web pages and Struts.
I want to display a silverlight web page inside my java desktop application.
Does anyone know of a plugin or browser control that I can use to do this?
Embed an appropriate browser window into the Java app and it can load the SL - there will not be any interaction / communication between the two without some hacky code. Multiple browsers support SL but you are better off using the an IE based one at present, the chrome support is not official as I remember.
How about an iFrame? In the nutshell... Alternatively you can make a request to .Net app from within your java server code using something like HttpClient and then serve markup that way - would be relatively easy thing to do (relatively since if there authentication involved things can get complicated fast. And if you want (willing) to get "sophisticated" and you are using portlet technology there is WSRP
For the desktop app I would go with HttpClient suggestion: get the content, parse it then do with it what you please unless that Silverlite app is also running as webservice then you have some additional options by utilizing components that can consume services
Eclipse's SWT provides out of the box web browser component based on IE and/or Mozilla engine. For swing application you can use one of ActiveX bridges, such as J-Integra or JDIC or EZ JCOM.
Use JDIC WebBrowser component