<?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: Using JSTL functions in custom EL for Tab Activation in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/using-jstl-functions-in-custom-el-for-tab-activation/m-p/314593#M1594</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Functions are not supported in this context, see &lt;A href="https://jira.nuxeo.com/browse/NXP-13680" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP-13680&lt;/A&gt;. As a workaround, for your example, the following should work ok (not tested):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;'#{currentDocument.dc.title.startsWith(“Prod”)}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As an alternative, or if your logics are too complex, you can define a Seam component in a custom bundle and call the corresponding methods, as Seam components are available in this context.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2017 15:21:40 GMT</pubDate>
    <dc:creator>Anahide_Tchertc</dc:creator>
    <dc:date>2017-03-27T15:21:40Z</dc:date>
    <item>
      <title>Using JSTL functions in custom EL for Tab Activation</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-jstl-functions-in-custom-el-for-tab-activation/m-p/314592#M1593</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to set my tab activation so that it appears only for product having a specific field starting by a specific string.&lt;/P&gt;
&lt;P&gt;For example, I would like the tab to appear only when the dc:title starts with "Prod", here is what I tried:&lt;/P&gt;
&lt;P&gt;'#{fn:startsWith(currentDocument.dc.title, "Prod"}&lt;/P&gt;
&lt;P&gt;when I try it, i get on my server logs: "function fn:startsWith not found"&lt;/P&gt;
&lt;P&gt;Would have any idea of how I could achieve this ?&lt;/P&gt;
&lt;P&gt;Thanks for your answers&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:15:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-jstl-functions-in-custom-el-for-tab-activation/m-p/314592#M1593</guid>
      <dc:creator>Mathilde_Viveri</dc:creator>
      <dc:date>2017-03-27T15:15:20Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSTL functions in custom EL for Tab Activation</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-jstl-functions-in-custom-el-for-tab-activation/m-p/314593#M1594</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Functions are not supported in this context, see &lt;A href="https://jira.nuxeo.com/browse/NXP-13680" target="test_blank"&gt;https://jira.nuxeo.com/browse/NXP-13680&lt;/A&gt;. As a workaround, for your example, the following should work ok (not tested):&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;'#{currentDocument.dc.title.startsWith(“Prod”)}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As an alternative, or if your logics are too complex, you can define a Seam component in a custom bundle and call the corresponding methods, as Seam components are available in this context.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:21:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-jstl-functions-in-custom-el-for-tab-activation/m-p/314593#M1594</guid>
      <dc:creator>Anahide_Tchertc</dc:creator>
      <dc:date>2017-03-27T15:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Using JSTL functions in custom EL for Tab Activation</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/using-jstl-functions-in-custom-el-for-tab-activation/m-p/314594#M1595</link>
      <description>&lt;P&gt;Well I thought I already tried this syntax... I re-tried, and it's working with '#{currentDocument.dc.title.startsWith("Prod")}&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2017 15:33:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/using-jstl-functions-in-custom-el-for-tab-activation/m-p/314594#M1595</guid>
      <dc:creator>Mathilde_Viveri</dc:creator>
      <dc:date>2017-03-27T15:33:15Z</dc:date>
    </item>
  </channel>
</rss>

