When using the following contributions, the two view_preview filters are not merged.
There are two ActionFilterRegistry}}s used, one in {{ActionContributionHandler for the embedded filter, and one in FilterContributionHandler for the filters contributed to the filters extension point.
The FilterContributionHandler does not know about the ActionFilterRegistry defined ActionContributionHandler and so the FilterContributionHandler does not merge the view_preview filter as there is no other view_preview filter defined in its registry.
<action id="TAB_PREVIEW" link="/incl/tabs/preview_tab.xhtml" enabled="true" order="200" label="label.document.preview" icon="/icons/file.gif"> <category>VIEW_ACTION_LIST</category> <filter id="view_preview"> <rule grant="true"> <condition>#{previewActions.hasPreview}</condition> </rule> </filter> </action>
<filter id="view_preview" append="true"> <rule grant="false"> <type>Survey</type> </rule> </filter>