Jean-Marc Orliaguet wrote:
Olivier Grisel wrote:
Hi,
This is a question for JMO. Would it be possible to add a parameter
to nxthemes
so that it takes xhtml file changes into account on a live deployed
instance for
generic fragment rendered by a JSFView.
For instance, suppose I deployed a the default theme, I want to
change the html
generated by the tree_explorer.xhtml template and watch the changes
live without
having to reboot the server or include the template in the main region:
<view name="nuxeo5 tree explorer">
<format-type>widget</format-type>
<class>org.nuxeo.theme.jsf.views.JSFView</class>
<template>incl/tree_explorer.xhtml</template>
</view>
Currently a typo in that sort of xhtml file costs at least 2 minutes
on a good
box. This is not a really productive way to develop templates :)
Best,
that's why I'm developing against NXThemesDemo...
but to answer your question, you will need to turn on the facelets'
debug mode, that ought to be enough.
the JSF view always displays the current version of the template,
there is no caching, but the result of the rendering ends up in the
facelet's own cache instead.
can you try to add:
<context-param>
<param-name>facelets.DEVELOPMENT</param-name>
<param-value>true</param-value>
</context-param>
to NXThemesJsf/resources/WEB-INF/faces-config.xml
/JM
to Nuxeo's web.xml I mean
/JM
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm