<?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: Minimal form required to search tag:taggable? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79663#M53042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I presume from what you say your &amp;lt;form&amp;gt; tag has been added directly to the page yourself?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, this is not going to work properly, you need to use the JSF form tag to properly invoke the JSF lifecycle i.e. your page needs to have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;h:form id="tag-search-form"&amp;gt;&lt;BR /&gt;….&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, you need to be using JSP pages to include the JSF forms, it is not going to work from static HTML pages.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Sep 2006 08:17:29 GMT</pubDate>
    <dc:creator>gavinc</dc:creator>
    <dc:date>2006-09-14T08:17:29Z</dc:date>
    <item>
      <title>Minimal form required to search tag:taggable?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79660#M53039</link>
      <description>HiI've got my server configured to use the TaggingSample, and I can search the tag:taggable aspect via advanced search, having added:&amp;lt;config evaluator="string-compare" condition="Advanced Search"&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;advanced-search&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;custom-properties&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;meta-data aspect="tag:taggab</description>
      <pubDate>Mon, 11 Sep 2006 11:19:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79660#M53039</guid>
      <dc:creator>jharrop</dc:creator>
      <dc:date>2006-09-11T11:19:19Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal form required to search tag:taggable?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79661#M53040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The easiest way would be to add your search field to one of the pages that is included in every page in the app i.e. shelf.jsp or titlebar.jsp, this will avoid the need to change more or less every page in the app!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, neither of these pages are overridable at the moment so you would have to change the originals and remember to re-apply your changes when you upgrade.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2006 07:41:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79661#M53040</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-09-12T07:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal form required to search tag:taggable?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79662#M53041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Gavin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To try to get this working, I've created a simple page named search-tags.html (based on advanced-search.jsp) with form action:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;form id="advsearch" name="advsearch" method="post" action="&lt;/SPAN&gt;&lt;A href="http://localhost:8080/alfresco/faces/jsp/dialog/advanced-search.jsp" rel="nofollow noopener noreferrer"&gt;http://localhost:8080/alfresco/faces/jsp/dialog/advanced-search.jsp&lt;/A&gt;&lt;SPAN&gt;" accept-charset="UTF-8" enctype="application/x-www-form-urlencoded"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the form only works if the last page I opened in the browser was advanced-search.jsp.&amp;nbsp; In this case, it will display search results as expect, and in the logs I see:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:24,593 DEBUG [web.app.AlfrescoNavigationHandler] handleNavigation (fromAction=#{AdvancedSearchBean.search}, outcom&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;e=browse)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:24,593 DEBUG [web.app.AlfrescoNavigationHandler] Current view id: /jsp/dialog/advanced-search.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:24,593 DEBUG [web.app.AlfrescoNavigationHandler] No dispatch context found&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:24,593 DEBUG [web.app.AlfrescoNavigationHandler] Passing outcome 'browse' to original navigation handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:24,593 DEBUG [application.jsp.JspViewHandlerImpl] Created view /jsp/browse/browse.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:24,593 DEBUG [web.app.AlfrescoNavigationHandler] view stack: []&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:24,593 DEBUG [application.jsp.JspViewHandlerImpl] Dispatching to /jsp/browse/browse.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:24,703 DEBUG [web.bean.SearchContext] Query:&amp;nbsp; +@\{extension.tags\}tags:testtag1* AND (( TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.alfresco" rel="nofollow noopener noreferrer"&gt;http://www.alfresco&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;.org/model/content/1.0}content"&amp;nbsp; OR&amp;nbsp; TYPE:"{&lt;/SPAN&gt;&lt;A href="http://www.alfresco.org/model/content/1.0}folder" rel="nofollow noopener noreferrer"&gt;http://www.alfresco.org/model/content/1.0}folder&lt;/A&gt;&lt;SPAN&gt;" ))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:23:25,562 DEBUG [web.bean.BrowseBean] Search results returned: 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If however the last page I looked at (before opening my search-tags.html form) was some other page, then when I submit the form, I see advanced-search.jsp, and the logs merely show:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;20:30:37,015 DEBUG [application.jsp.JspViewHandlerImpl] Created view /jsp/dialog/advanced-search.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;20:30:37,015 DEBUG [application.jsp.JspViewHandlerImpl] Dispatching to /jsp/dialog/advanced-search.jsp&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hints?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2006 10:35:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79662#M53041</guid>
      <dc:creator>jharrop</dc:creator>
      <dc:date>2006-09-13T10:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal form required to search tag:taggable?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79663#M53042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I presume from what you say your &amp;lt;form&amp;gt; tag has been added directly to the page yourself?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, this is not going to work properly, you need to use the JSF form tag to properly invoke the JSF lifecycle i.e. your page needs to have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;h:form id="tag-search-form"&amp;gt;&lt;BR /&gt;….&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Furthermore, you need to be using JSP pages to include the JSF forms, it is not going to work from static HTML pages.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Sep 2006 08:17:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79663#M53042</guid>
      <dc:creator>gavinc</dc:creator>
      <dc:date>2006-09-14T08:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal form required to search tag:taggable?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79664#M53043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok thanks, must confess I've not used JSF before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the JSF form tag as you suggested, in shelf.jsp.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The form displayed as expected, but then I submitted it …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;.. and since submitting it, all I have been able to get is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;javax.faces.FacesException: Could not get property size of component browse:tag-search-form:txtTitle&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;org.apache.jasper.JasperException: Could not get property size of component browse:tag-search-form:txtTitle&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;javax.faces.FacesException: Could not get property size of component browse:tag-search-form:txtTitle&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;java.lang.reflect.InvocationTargetException&lt;BR /&gt;&lt;BR /&gt;caused by:&lt;BR /&gt;javax.faces.el.PropertyNotFoundException: Bean: org.alfresco.web.bean.generator.TextFieldGenerator, property: size&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;That is, any attempt to view say browse.jsp will display the error page with the above message.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any thoughts?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2006 11:17:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79664#M53043</guid>
      <dc:creator>jharrop</dc:creator>
      <dc:date>2006-09-18T11:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Minimal form required to search tag:taggable?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79665#M53044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump .. thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 12:46:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/minimal-form-required-to-search-tag-taggable/m-p/79665#M53044</guid>
      <dc:creator>jharrop</dc:creator>
      <dc:date>2006-09-26T12:46:07Z</dc:date>
    </item>
  </channel>
</rss>

