Wicket & Google Drive

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Wicket & Google Drive

mihksoft
Is there any solution to integrate Wicket with Google Drive API (not Google Docs) ?
Reply | Threaded
Open this post in threaded view
|

Re: Wicket & Google Drive

mihksoft
I made a sample of wicket application and I tried to load in a iframe tag the url for getting authorization from google.

The link is something like:

https://accounts.google.com/o/oauth2/auth?client_id=1077294712055-gr26hd94ch44bm0m4h59nghb1pgqgff0.apps.googleusercontent.com&redirect_uri=http://localhost:8080/gd&response_type=code&scope=https://www.googleapis.com/auth/userinfo.profile&state=google

and nothing appear in the iframe tag.
If I copy/paste the url in browser the request for google access is displaied.

If I replace the url with: https://wicket.apache.org/ then the iframe load the wicket site.
I use wicket 1.4.21.

Java code:
public HomePage(final PageParameters parameters){
   final InlineFrame iFrame = new InlineFrame("googleFrame", this);
   iFrame.add(new SimpleAttributeModifier("src", _url));
   iFrame.setOutputMarkupId(true);
   add(iFrame);
}

HTML code:
<iframe wicket:id="googleFrame" width="100%" height="300px"></iframe>

Had anyone this problem?
Or have anyone any solution for this?

BR's
Mihai