What is a path of an xhtml resource ?

Hi,

I uploaded “test-picturebook.xhtml” in Nuxeo Studio in “resources/widgets”. I then contributed an extension point to display this xhtml :

<extension target="org.nuxeo.ecm.platform.actions.ActionService" point="actions">
     <action id="TAB_UNR_PICTURE_BOOK"
          link="/nuxeo.war/widgets/test-picturebook.xhtml" order="50"
          enabled="true"
          label="livre">
          <category>VIEW_ACTION_LIST</category>
          <filter id="display_unr_picture_book">
               <rule grant="true">
                    <permission>AddChildren</permission>
               </rule>
          </filter>
     </action>
</extension>

And this causes the following error :

ERROR: some facelet is not found: /nuxeo.war/widgets/test-picturebook.xhtml

It seams that the path of the resource is not “nuxeo.war/widgets”. Do you know the exact path or syntax ?

Thank you for any help.

Regards

Fabrice

0 votes

1 answers

2059 views

ANSWER



Found it.

Link is

/widgets/test-picturebook.xhtml

instead of

/nuxeo.war/widgets/test-picturebook.xhtml

Regards

Fabrice

0 votes