<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: custom widget in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74601#M23850</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I did, and I am trying to use the url of the webscript instead of the one used in the tutorial, and the webscript works good, here is the code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class GetAll extends DeclarativeWebScript {&lt;BR /&gt; &lt;BR /&gt; protected Map&amp;lt;String, Object&amp;gt; executeImpl(WebScriptRequest req,&lt;BR /&gt; Status status, Cache cache) {&lt;BR /&gt; &lt;BR /&gt; Map&amp;lt;String, Object&amp;gt; model = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;model.put("firstname", &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;firstname&lt;/SPAN&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;model.put("&lt;/SPAN&gt;&lt;SPAN&gt;lastname&lt;/SPAN&gt;&lt;SPAN&gt;",&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"lastname&lt;/SPAN&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt; model.put("username", &lt;SPAN&gt;"username"&lt;/SPAN&gt;);&lt;BR /&gt; &lt;BR /&gt; return model;&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftl file :&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;"test" : [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "username" : "${username}",&lt;BR /&gt;&lt;SPAN&gt;"firstname" : "${firstname}",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"lastname" : "${lastname}",&lt;/SPAN&gt;&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;desc file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt; &amp;lt;shortname&amp;gt;Some shortname&amp;lt;/shortname&amp;gt;&lt;BR /&gt; &amp;lt;description&amp;gt;some desc&amp;lt;/description&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;/test/file.html&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;/test/file.json&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;BR /&gt; &amp;lt;format default="json"&amp;gt;&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;BR /&gt;&lt;BR /&gt;and I changed the name and description used in the tuto by username and firstname.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Apr 2019 06:45:53 GMT</pubDate>
    <dc:creator>riadhazzouz</dc:creator>
    <dc:date>2019-04-16T06:45:53Z</dc:date>
    <item>
      <title>custom widget</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74599#M23848</link>
      <description>I followed this tutorial (https://ohej.github.io/alfresco-tutorials/tutorial/aikau/tutorial.html#bringing-it-all-together) to create the custom ajaxWidget. everything went good using this url in the js file :&amp;nbsp;var url = Alfresco.constants.PROXY_URI + "slingshot/doclib/treenode/node/alfresco/company/h</description>
      <pubDate>Mon, 15 Apr 2019 17:17:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74599#M23848</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-15T17:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: custom widget</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74600#M23849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that, you have created custom webscript, can you please add the code for same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 05:48:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74600#M23849</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2019-04-16T05:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: custom widget</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74601#M23850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I did, and I am trying to use the url of the webscript instead of the one used in the tutorial, and the webscript works good, here is the code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class GetAll extends DeclarativeWebScript {&lt;BR /&gt; &lt;BR /&gt; protected Map&amp;lt;String, Object&amp;gt; executeImpl(WebScriptRequest req,&lt;BR /&gt; Status status, Cache cache) {&lt;BR /&gt; &lt;BR /&gt; Map&amp;lt;String, Object&amp;gt; model = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;model.put("firstname", &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;firstname&lt;/SPAN&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;);&lt;BR /&gt;&lt;SPAN&gt;model.put("&lt;/SPAN&gt;&lt;SPAN&gt;lastname&lt;/SPAN&gt;&lt;SPAN&gt;",&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;"lastname&lt;/SPAN&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;SPAN&gt;);&lt;/SPAN&gt;&lt;BR /&gt; model.put("username", &lt;SPAN&gt;"username"&lt;/SPAN&gt;);&lt;BR /&gt; &lt;BR /&gt; return model;&lt;BR /&gt; &lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ftl file :&amp;nbsp;&lt;BR /&gt;{&lt;BR /&gt;"test" : [&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "username" : "${username}",&lt;BR /&gt;&lt;SPAN&gt;"firstname" : "${firstname}",&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"lastname" : "${lastname}",&lt;/SPAN&gt;&lt;BR /&gt; }&lt;BR /&gt; ]&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;desc file :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt; &amp;lt;shortname&amp;gt;Some shortname&amp;lt;/shortname&amp;gt;&lt;BR /&gt; &amp;lt;description&amp;gt;some desc&amp;lt;/description&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;/test/file.html&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;url&amp;gt;/test/file.json&amp;lt;/url&amp;gt;&lt;BR /&gt; &amp;lt;authentication&amp;gt;user&amp;lt;/authentication&amp;gt;&lt;BR /&gt; &amp;lt;format default="json"&amp;gt;&amp;lt;/format&amp;gt;&lt;BR /&gt;&amp;lt;/webscript&amp;gt;&lt;BR /&gt;&lt;BR /&gt;and I changed the name and description used in the tuto by username and firstname.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 06:45:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74601#M23850</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-16T06:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: custom widget</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74602#M23851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that you missed back end bean , which is used for creating webscript.Its for linking controller to ftl.You can look in to below link for more details on repository webscript.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.krutikjayswal.com/2016/10/alfresco-webscript-spring-webscript.html" rel="nofollow noopener noreferrer"&gt;http://www.krutikjayswal.com/2016/10/alfresco-webscript-spring-webscript.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 07:05:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74602#M23851</guid>
      <dc:creator>krutik_jayswal</dc:creator>
      <dc:date>2019-04-16T07:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: custom widget</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74603#M23852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No I didn't miss the bean, the webscript is working correctly, and i get the results when I navigate to alfresco/s/test/file.json .&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 07:15:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74603#M23852</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-16T07:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: custom widget</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74604#M23853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved the problem .&lt;BR /&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2019 08:26:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-widget/m-p/74604#M23853</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-04-16T08:26:27Z</dc:date>
    </item>
  </channel>
</rss>

