Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8458313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:02:33+00:00 2026-06-10T13:02:33+00:00

I am trying to embed Google-Plus into my GWT Application. I would like it

  • 0

I am trying to embed Google-Plus into my GWT Application. I would like it to be embedded into a HorizontalPanel. I did read +1button developers google. I didn’t find any post about this particular problem in stackoverflow. My problem might be that I don’t understand how to include the js into a GUI component. I would appreciate an Example of how to add the Google+ code into a Panel.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T13:02:35+00:00Added an answer on June 10, 2026 at 1:02 pm

    Here is how to do it:

    Documentation:

     <!-- Place this tag in your head or just before your close body tag -->
     <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
     <!-- Place this tag where you want the +1 button to render -->
     <g:plusone></g:plusone>
    

    in GWT:

    private void drawPlusOne() {
        String s = "<g:plusone href=\"http://urltoplusone.com\"></g:plusone>";
        HTML h = new HTML(s);
        somePanel.add(h);
    
        // You can insert a script tag this way or via your .gwt.xml
        Document doc = Document.get();
        ScriptElement script = doc.createScriptElement();
        script.setSrc("https://apis.google.com/js/plusone.js");
        script.setType("text/javascript");
        script.setLang("javascript");
        doc.getBody().appendChild(script);
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to embed an existing, public Google Map into a website. Specifically
I am trying to embed Google Search inside my application. How can I make
I'm trying to embed Windows-Sidebar-Widgets into my own .Net Application (WPF and C#), but
I'm trying to embed groovy into a large Java application. The Java application should
I'm trying to embed Google's directions into an iphone app There doesn't seem to
I am trying to embed an opensocial gadget into a email. But I don't
I'm trying to embed Python into a MATLAB mex function on OS X. I've
I am trying to find a way to embed a share/+1 link for Google+
So I'm trying to embed the google analytics login page onto a page. Works
I am trying to show a google map using the following code: <embed height=400

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.