<?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 Explicitly go to a given view in an action seam doesn't work in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/explicitly-go-to-a-given-view-in-an-action-seam-doesn-t-work/m-p/315716#M2717</link>
    <description>&lt;P&gt;this question is related to my previous question &lt;A href="http://answers.nuxeo.com/questions/4209/bind-a-content-view-definition-to-a-particular-action-seam"&gt;http://answers.nuxeo.com/questions/4209/bind-a-content-view-definition-to-a-particular-action-seam&lt;/A&gt; but since it's a slightly different situation I'll post another one:&lt;/P&gt;
&lt;P&gt;I've created a fresh Action Seam using the wizard in Nuxeo Ide and I noticed in the source comments this lines inside the &lt;CODE&gt;doGet&lt;/CODE&gt; method:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// If you want to explicitly go to a given view
    // just return the outcome string associated to the view
    //
    // return "someView";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so I replaced the default &lt;CODE&gt;return null&lt;/CODE&gt; with &lt;CODE&gt;return "my_cool_view"&lt;/CODE&gt; inside the method&lt;/P&gt;
&lt;P&gt;then I created a contribution to a Content View defined like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="com.example.FilterView"&amp;gt;
&amp;lt;extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
	point="contentViews"&amp;gt;
	&amp;lt;contentView name="my_cool_view"&amp;gt;
		&amp;lt;coreQueryPageProvider&amp;gt;
			&amp;lt;property name="coreSession"&amp;gt;#{documentManager}&amp;lt;/property&amp;gt;
			&amp;lt;pattern&amp;gt;
				SELECT * FROM Document WHERE
				dc:title = 'test'
			&amp;lt;/pattern&amp;gt;
			&amp;lt;parameter&amp;gt;#{currentDocument.id}&amp;lt;/parameter&amp;gt;
			&amp;lt;sort column="dc:title" ascending="true" /&amp;gt;
			&amp;lt;pageSize&amp;gt;20&amp;lt;/pageSize&amp;gt;
		&amp;lt;/coreQueryPageProvider&amp;gt;
		&amp;lt;cacheKey&amp;gt;#{currentDocument.id}&amp;lt;/cacheKey&amp;gt;
		&amp;lt;cacheSize&amp;gt;10&amp;lt;/cacheSize&amp;gt;
		&amp;lt;refresh&amp;gt;
			&amp;lt;event&amp;gt;documentChanged&amp;lt;/event&amp;gt;
			&amp;lt;event&amp;gt;documentChildrenChanged&amp;lt;/event&amp;gt;
		&amp;lt;/refresh&amp;gt;
		&amp;lt;resultLayouts&amp;gt;
			&amp;lt;layout name="document_listing_ajax" title="document_listing"
				translateTitle="true" iconPath="/icons/document_listing_icon.png"
				showCSVExport="true" showPDFExport="true" showSyndicationLinks="true" /&amp;gt;
			&amp;lt;layout name="document_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns"
				translateTitle="true" iconPath="/icons/document_listing_compact_2_columns_icon.png" /&amp;gt;
			&amp;lt;layout name="document_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns"
				translateTitle="true" iconPath="/icons/document_listing_icon_2_columns_icon.png" /&amp;gt;
		&amp;lt;/resultLayouts&amp;gt;
		&amp;lt;selectionList&amp;gt;CURRENT_SELECTION&amp;lt;/selectionList&amp;gt;
		&amp;lt;actions category="CURRENT_SELECTION_LIST" /&amp;gt;
	&amp;lt;/contentView&amp;gt;
&amp;lt;/extension&amp;gt;&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but when I click the button of the action seam this doesn't show the other view.&lt;/P&gt;
&lt;P&gt;What have I done wrong?&lt;/P&gt;</description>
    <pubDate>Mon, 12 Nov 2012 18:57:13 GMT</pubDate>
    <dc:creator>roccapl_</dc:creator>
    <dc:date>2012-11-12T18:57:13Z</dc:date>
    <item>
      <title>Explicitly go to a given view in an action seam doesn't work</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/explicitly-go-to-a-given-view-in-an-action-seam-doesn-t-work/m-p/315716#M2717</link>
      <description>&lt;P&gt;this question is related to my previous question &lt;A href="http://answers.nuxeo.com/questions/4209/bind-a-content-view-definition-to-a-particular-action-seam"&gt;http://answers.nuxeo.com/questions/4209/bind-a-content-view-definition-to-a-particular-action-seam&lt;/A&gt; but since it's a slightly different situation I'll post another one:&lt;/P&gt;
&lt;P&gt;I've created a fresh Action Seam using the wizard in Nuxeo Ide and I noticed in the source comments this lines inside the &lt;CODE&gt;doGet&lt;/CODE&gt; method:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;// If you want to explicitly go to a given view
    // just return the outcome string associated to the view
    //
    // return "someView";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;so I replaced the default &lt;CODE&gt;return null&lt;/CODE&gt; with &lt;CODE&gt;return "my_cool_view"&lt;/CODE&gt; inside the method&lt;/P&gt;
&lt;P&gt;then I created a contribution to a Content View defined like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;component name="com.example.FilterView"&amp;gt;
&amp;lt;extension target="org.nuxeo.ecm.platform.ui.web.ContentViewService"
	point="contentViews"&amp;gt;
	&amp;lt;contentView name="my_cool_view"&amp;gt;
		&amp;lt;coreQueryPageProvider&amp;gt;
			&amp;lt;property name="coreSession"&amp;gt;#{documentManager}&amp;lt;/property&amp;gt;
			&amp;lt;pattern&amp;gt;
				SELECT * FROM Document WHERE
				dc:title = 'test'
			&amp;lt;/pattern&amp;gt;
			&amp;lt;parameter&amp;gt;#{currentDocument.id}&amp;lt;/parameter&amp;gt;
			&amp;lt;sort column="dc:title" ascending="true" /&amp;gt;
			&amp;lt;pageSize&amp;gt;20&amp;lt;/pageSize&amp;gt;
		&amp;lt;/coreQueryPageProvider&amp;gt;
		&amp;lt;cacheKey&amp;gt;#{currentDocument.id}&amp;lt;/cacheKey&amp;gt;
		&amp;lt;cacheSize&amp;gt;10&amp;lt;/cacheSize&amp;gt;
		&amp;lt;refresh&amp;gt;
			&amp;lt;event&amp;gt;documentChanged&amp;lt;/event&amp;gt;
			&amp;lt;event&amp;gt;documentChildrenChanged&amp;lt;/event&amp;gt;
		&amp;lt;/refresh&amp;gt;
		&amp;lt;resultLayouts&amp;gt;
			&amp;lt;layout name="document_listing_ajax" title="document_listing"
				translateTitle="true" iconPath="/icons/document_listing_icon.png"
				showCSVExport="true" showPDFExport="true" showSyndicationLinks="true" /&amp;gt;
			&amp;lt;layout name="document_listing_ajax_compact_2_columns" title="document_listing_compact_2_columns"
				translateTitle="true" iconPath="/icons/document_listing_compact_2_columns_icon.png" /&amp;gt;
			&amp;lt;layout name="document_listing_ajax_icon_2_columns" title="document_listing_icon_2_columns"
				translateTitle="true" iconPath="/icons/document_listing_icon_2_columns_icon.png" /&amp;gt;
		&amp;lt;/resultLayouts&amp;gt;
		&amp;lt;selectionList&amp;gt;CURRENT_SELECTION&amp;lt;/selectionList&amp;gt;
		&amp;lt;actions category="CURRENT_SELECTION_LIST" /&amp;gt;
	&amp;lt;/contentView&amp;gt;
&amp;lt;/extension&amp;gt;&amp;lt;/component&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;but when I click the button of the action seam this doesn't show the other view.&lt;/P&gt;
&lt;P&gt;What have I done wrong?&lt;/P&gt;</description>
      <pubDate>Mon, 12 Nov 2012 18:57:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/explicitly-go-to-a-given-view-in-an-action-seam-doesn-t-work/m-p/315716#M2717</guid>
      <dc:creator>roccapl_</dc:creator>
      <dc:date>2012-11-12T18:57:13Z</dc:date>
    </item>
  </channel>
</rss>

