I solve my problem by deleting the <h:form> marks inside the content of the tree_explorer.xhtml file ! :)
Selon Jean-Marc Orliaguet <[EMAIL PROTECTED]>: > [EMAIL PROTECTED] wrote: > > 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... > > > > Hoping to have been clearly... :\ > > > > > > > what exception do you get? > > nxthemes simply inserts the markup of tree_explorer.xhtml where it is > told to insert it, so in theory you can insert the markup manually > inside another template, that should work too. > > note that some widgets can be inserted only once inside a same page due > to hard-coded element ids in their markup. > > /JM > _______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
