1 Reply Latest reply on Nov 25, 2014 5:55 PM by yingjieg

    How to implement Tile Action with Jive SDK JAVA on Jersey ?

    yingjieg

      Hi all

       

      I follow the doc Getting Started > Using Tile Actions with the Jive Node SDK to build my own tile action, but failed, some problems need help:

       

       

      1. In Node SDK, use {{{host}}} to import js and css resource,

         <link rel="stylesheet" type="text/css" href="{{{host}}}/stylesheets/bootstrap-30.min.css">
         <link rel="stylesheet" type="text/css" href="{{{host}}}/stylesheets/style.css">
         <script src="{{{host}}}/javascripts/jquery-1.8.3.js"></script>
         <script src="{{{host}}}/javascripts/coreapi-context-resolver-v3.js"></script>
         <script src="{{{host}}}/javascripts/oauth2client.js"></script>
         <script src="{{{host}}}/javascripts/basicOauthFlow.js"></script>
      


      in my action.jsp, I use "serviceURL" provided in environment.jsp to import js and css, but I can't find coreapi-context-resolver-v3.js , oauth2client.js and basicOauthFlow.js in jive-sdk-java-jersey

      <link rel="stylesheet" type="text/css"
        href="<%=serviceURL%>/stylesheets/bootstrap-30.min.css">
      <link rel="stylesheet" type="text/css"
        href="<%=serviceURL%>/stylesheets/style.css">
      <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>
      <!--
      <script src="<%=serviceURL%>/javascripts/coreapi-context-resolver-v3.js"></script>
      <script src="<%=serviceURL%>/javascripts/oauth2client.js"></script>
      <script src="<%=serviceURL%>/javascripts/basicOauthFlow.js"></script>
       -->
      




      2. After click the action link in List Tile, the browser open a new web page not an embedded experience. I am not sure whether it's caused by first problem ?.

      Capture.PNG


      My definition.json file

       

        {

                  "sampleData": {

                       "title":"Example Jive SDK (Java) Jersey - List Tile",

                       "contents":[

                           {

                               "text":"Create issue",

                                 "linkDescription": "Create new item",

                            "action": {

                                      "text": "Open the action window",

                                      "url": "http://localhost:8090/tiles/jersey-example-list/action.jsp"

                                      }

                           }

                       ],

                       "config" : {

                           "listStyle":"contentList"

                       }

                   },

                   "displayName": "Example Jive SDK (Java) Jersey - List Tile",

                   "name": "jersey-example-list",

                   "description": "An example List Tile that pushes updates for 1 minute after configuration is saved.",

                   "style": "LIST",

                   "icons": {

                       "16": "http://localhost:8090/images/extension-16.png",

                       "48": "http://localhost:8090/images/extension-48.png",

                       "128": "http://localhost:8090/images/extension-128.png"

                   },

                   "action": "http://localhost:8090/tiles/jersey-example-list/action.jsp",

                   "id": "82401e2e-e4b5-4600-bb6a-2e7a10a22367",

                   "definitionDirName": "jersey-example-list",

                   "published": "2014-11-25T10:39:51.384+0800",

                   "updated": "2014-11-25T10:39:51.384+0800",

                   "config": "http://localhost:8090/tiles/jersey-example-list/configure.jsp",

                   "unregister": "http://localhost:8090/example/tile/unregister",

                   "register": "http://localhost:8090/example/tile/register"

               },