{"id":263,"date":"2011-09-12T13:33:10","date_gmt":"2011-09-12T12:33:10","guid":{"rendered":"http:\/\/iamwcew\/blog\/?p=263"},"modified":"2011-09-12T13:33:10","modified_gmt":"2011-09-12T12:33:10","slug":"using-ext-js-library-with-webcenter-portal","status":"publish","type":"post","link":"https:\/\/gpmfactory.com\/index.php\/2011\/09\/12\/using-ext-js-library-with-webcenter-portal\/","title":{"rendered":"Using Ext JS library with Webcenter Portal"},"content":{"rendered":"<p><a href=\"http:\/\/www.sencha.com\"><span style=\"font-family: Arial; font-size: 9pt; background-color: white;\"><strong>Ext JS<\/strong><\/span><\/a><span style=\"font-family: Arial; font-size: 9pt;\"><span style=\"color: black; background-color: white;\"> is a\u00a0<\/span><span style=\"color: #0645ad; background-color: white;\">JavaScript<\/span><span style=\"color: black; background-color: white;\">\u00a0library for building interactive\u00a0<\/span><span style=\"color: #0645ad; background-color: white;\">web applications<a href=\"http:\/\/en.wikipedia.org\/wiki\/Ext_JS\"><sup>[1]<\/sup><\/a><\/span><span style=\"color: black; background-color: white;\">\u00a0using techniques such as<\/span><span style=\"color: #0645ad; background-color: white;\">Ajax<\/span><span style=\"color: black; background-color: white;\">,\u00a0<\/span><span style=\"color: #0645ad; background-color: white;\">DHTML<\/span><span style=\"color: black; background-color: white;\">\u00a0and\u00a0<\/span><span style=\"color: #0645ad; background-color: white;\">DOM<\/span><span style=\"color: black; background-color: white;\">\u00a0scripting.<\/span><\/span><\/p>\n<p><span style=\"color: black; font-family: Arial; font-size: 9pt; background-color: white;\">It&rsquo;s quite simple to integrate a Javascript code with webcenter.<br \/>\nFor instance, let&rsquo;s consider this use case: get an XML document form a given URL, then display it at a fragment in an existing Webcenter Portal page in order to browse the content:.<br \/>\n<\/span><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/iamwcew\/blog\/wp-content\/uploads\/2011\/09\/091211_1233_UsingExtJSl1.png\" alt=\"\" \/><span style=\"color: black; font-family: Arial; font-size: 9pt; background-color: white;\"><br \/>\n<\/span><\/p>\n<p><a href=\"http:\/\/www.sencha.com\/products\/extjs\/download\/ext-js-4.0.2a\/213\"><span style=\"font-family: Arial; font-size: 9pt; background-color: white;\">Download EXT JS library<\/span><\/a><span style=\"color: black; font-family: Arial; font-size: 9pt; background-color: white;\">. (GPL3 Licence)<br \/>\nCopy needed file on the WebCenter Site (on a public HTTP Virtual directory)<br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-family: Arial; font-size: 9pt; background-color: white;\">We take an existing example called xml-grid, then we adapt it (js file, in particular).<br \/>\nIn webcenter, we add a HTML markup task flow, and we fill with this HTML code:<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\">&lt;html&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\">&lt;head&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\">&lt;meta http-equiv=\u00a0\u00bbContent-Type\u00a0\u00bb content=\u00a0\u00bbtext\/html; charset=iso-8859-1&Prime;&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\">&lt;title&gt;XML Grid Example&lt;\/title&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"> &lt;link rel=\u00a0\u00bbstylesheet\u00a0\u00bb type=\u00a0\u00bbtext\/css\u00a0\u00bb href=\u00a0\u00bb\/cs\/ThemeForge\/extjs\/resources\/css\/ext-all.css\u00a0\u00bb \/&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"> &lt;link rel=\u00a0\u00bbstylesheet\u00a0\u00bb type=\u00a0\u00bbtext\/css\u00a0\u00bb href=\u00a0\u00bb\/cs\/ThemeForge\/extjs\/shared\/example.css\u00a0\u00bb \/&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"> &lt;script type=\u00a0\u00bbtext\/javascript\u00a0\u00bb src=\u00a0\u00bb\/cs\/ThemeForge\/extjs\/bootstrap.js\u00a0\u00bb&gt;&lt;\/script&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"> &lt;!&#8211; page specific &#8211;&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"> &lt;script type=\u00a0\u00bbtext\/javascript\u00a0\u00bb src=\u00a0\u00bb\/cs\/ThemeForge\/extjs\/pmo-grid.js\u00a0\u00bb&gt;&lt;\/script&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\">&lt;\/head&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\">&lt;body&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"> &lt;h1&gt;XML Grid Example&lt;\/h1&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"> &lt;div id=\u00a0\u00bbexample-grid\u00a0\u00bb&gt;&lt;\/div&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\">&lt;\/body&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\">&lt;\/html&gt;<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><img decoding=\"async\" src=\"http:\/\/iamwcew\/blog\/wp-content\/uploads\/2011\/09\/091211_1233_UsingExtJSl2.png\" alt=\"\" \/><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"><br \/>\n<\/span><\/p>\n<p><span style=\"color: black; font-size: 9pt; background-color: white;\">Data sample:<br \/>\n<\/span><\/p>\n<p style=\"margin-left: 36pt;\"><img decoding=\"async\" src=\"http:\/\/iamwcew\/blog\/wp-content\/uploads\/2011\/09\/091211_1233_UsingExtJSl3.png\" alt=\"\" \/><span style=\"color: black; font-family: Courier New; font-size: 9pt; background-color: white;\"><br \/>\n<\/span><\/p>\n<p>The sample below is a more sophisticated sample of grid:<\/p>\n<p><a href=\"http:\/\/iamwcew.fr.oracle.com\/blog\/wp-content\/uploads\/2011\/09\/snap00443.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-medium wp-image-441\" title=\"ext-js Lice search xml grid\" src=\"http:\/\/iamwcew.fr.oracle.com\/blog\/wp-content\/uploads\/2011\/09\/snap00443-300x158.jpg\" alt=\"\" width=\"400\" height=\"200\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Others usages:<br \/>\nIt can be useful to use <strong>BI Publisher<\/strong> in order to build a XML document which will be consumed with this technique.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ext JS is a\u00a0JavaScript\u00a0library for building interactive\u00a0web applications[1]\u00a0using techniques such asAjax,\u00a0DHTML\u00a0and\u00a0DOM\u00a0scripting. It&rsquo;s quite simple to integrate a Javascript code with webcenter. For instance, let&rsquo;s&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[47,64,108],"ppma_author":[150],"class_list":["post-263","post","type-post","status-publish","format-standard","hentry","category-demo-2","category-dev","tag-demo","tag-javascript","tag-webcenter"],"authors":[{"term_id":150,"user_id":1,"is_guest":0,"slug":"admin8700","display_name":"Patrick","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/209d5ed69b74d288390621ab4c1d3773?s=96&d=mm&r=g","0":null,"1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":""}],"_links":{"self":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":0,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"wp:attachment":[{"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/tags?post=263"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/gpmfactory.com\/index.php\/wp-json\/wp\/v2\/ppma_author?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}