[EMAIL PROTECTED] a écrit : > Hi, > > Can you please explain me how is it possible to re-use "generic fragments" > like "nuxeo5 tree explorer" without having to declare it to > nxthemes-setup.xml ? > > In my example, I would like to use a panel with different tabs and insert the > component "nuxeo5 tree explorer" inside one of the tabs. > > In that configuration, I have to declare in nxthemes-setup.xml : > > <widget element="page[1]/section[2]/cell[1]/fragment[1]"> > <view>tabsPanel</view> > </widget> > > In theme-contrib.xml : > > <view name="tabsPanel"> > <format-type>widget</format-type> > <class>org.nuxeo.theme.jsf.views.JSFView</class> > <template>incl/tabsPanel.xhtml</template> > </view> > > But in "tabsPanel.xhtml", when I include the "tree_explorer.xhtml" file > (corresponding to the "nuxeo5 tree explorer" view), I get a nice exception...
The tree_manager.xhtml template has not been written generically enough to be used twice in the same JSF page. To do what you want, you would need to write another action listener such as the TreeManagerBean to hold the instance of the TreeModel class that holds the state and logics underlying the nodes of the tree. Or you could rewrite the TreeManagerBean to make it generic enough to support for several named trees such want have been done with the DirectoryTreeManagerBean. -- Olivier _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
