<?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: Passing Arguments for Components in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/passing-arguments-for-components/m-p/231361#M184491</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK so to update my post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One tip from Share is to minimise page reloads from the server - which means using javascript on the client to interact with the user. In particular use of the yahoo gui. So for instance when browsing the document tree in share, the url might be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://server:8080/share/page/site/siteName/documentlibrary#path=%252FdocumentFolder&amp;amp;page=1" rel="nofollow noopener noreferrer"&gt;http://server:8080/share/page/site/siteName/documentlibrary#path=%252FdocumentFolder&amp;amp;page=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That way javascript on the client can 'reload' the component, without a page reload.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another tip from browsing share sources is to use the Preference Service - see wiki pages. This can be used to hold user preferences both within and across sessions - for example whether the document library opens in simple view or not. This would be the solution to my example of a clock widget having different display options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also discovered some references to session data - eg&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;request.getSession().setAttribute(SESSION_CURRENT_THEME_ID, themeId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the AbstractRequestContext -to set a theme.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that something one can use in a surf application to pass session variables without using the url, where one doesn't need the cross-session persistence of using the preference service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 16 Aug 2009 19:11:19 GMT</pubDate>
    <dc:creator>jcobb</dc:creator>
    <dc:date>2009-08-16T19:11:19Z</dc:date>
    <item>
      <title>Passing Arguments for Components</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-arguments-for-components/m-p/231360#M184490</link>
      <description>Not strictly share development - I'm working on a surf application. I'm pretty new to the idea of components / dashlets / widgets etc.Let's say I have a component that's a clock, and it can display time either digital or analogue. I can use post or get arguments to change the display. I also have an</description>
      <pubDate>Sat, 15 Aug 2009 19:08:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-arguments-for-components/m-p/231360#M184490</guid>
      <dc:creator>jcobb</dc:creator>
      <dc:date>2009-08-15T19:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Arguments for Components</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-arguments-for-components/m-p/231361#M184491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK so to update my post:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One tip from Share is to minimise page reloads from the server - which means using javascript on the client to interact with the user. In particular use of the yahoo gui. So for instance when browsing the document tree in share, the url might be&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://server:8080/share/page/site/siteName/documentlibrary#path=%252FdocumentFolder&amp;amp;page=1" rel="nofollow noopener noreferrer"&gt;http://server:8080/share/page/site/siteName/documentlibrary#path=%252FdocumentFolder&amp;amp;page=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That way javascript on the client can 'reload' the component, without a page reload.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another tip from browsing share sources is to use the Preference Service - see wiki pages. This can be used to hold user preferences both within and across sessions - for example whether the document library opens in simple view or not. This would be the solution to my example of a clock widget having different display options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also discovered some references to session data - eg&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;request.getSession().setAttribute(SESSION_CURRENT_THEME_ID, themeId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in the AbstractRequestContext -to set a theme.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that something one can use in a surf application to pass session variables without using the url, where one doesn't need the cross-session persistence of using the preference service?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;James&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2009 19:11:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-arguments-for-components/m-p/231361#M184491</guid>
      <dc:creator>jcobb</dc:creator>
      <dc:date>2009-08-16T19:11:19Z</dc:date>
    </item>
  </channel>
</rss>

