jetty 的 ricfaces xhtml 编辑问题

发布于 2024-10-08 02:16:39 字数 808 浏览 0 评论 0原文

我正在使用带有facelets (xhtml) 的Richfaces。我使用maven jetty插件进行开发。

当jetty运行时,我修改了一个xhtml文件,但是直到重新启动jetty后更改才生效。

这是我的 maven jetty 插件配置:

<plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.9</version>
                <configuration>
                    <jettyEnvXml>${basedir}/src/test/resources/${jetty-env-file}</jettyEnvXml>
                    <webDefaultXml>${basedir}/src/test/resources/webdefault.xml</webDefaultXml>
                </configuration>
</plugin>

当我编辑 css、jsp 或 html 文件时,我可以看到更改而无需重新启动。

但是对于xhtml文件的每次更改我都需要一次又一次地重新启动jetty。

有什么解决办法吗?

谢谢

I am using Richfaces with facelets (xhtml). I use maven jetty plugin for development.

When jetty is running, I modify a xhtml file but the change does not work until I restart jetty.

Here is my maven jetty plugin configuration:

<plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>maven-jetty-plugin</artifactId>
                <version>6.1.9</version>
                <configuration>
                    <jettyEnvXml>${basedir}/src/test/resources/${jetty-env-file}</jettyEnvXml>
                    <webDefaultXml>${basedir}/src/test/resources/webdefault.xml</webDefaultXml>
                </configuration>
</plugin>

When I edit css, jsp or html files I can see the changes without restarting.

But for xhtml files in every change I need to restart jetty again and again.

Is there any solution for that?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

凶凌 2024-10-15 02:16:39

我找到了解决方案。
这都是关于 web.xml 中的 Facelet 配置参数。
更改它们后,我可以在 jetty 启动并运行时更新 xhtml 文件。
这是我找到合适的facelet参数配置的链接:

http:// www.jsftoolbox.com/documentation/facelets/03-FaceletsConcepts/facelets-configuration.jsf

I found the solution.
It is all about the facelet configuration parameters in web.xml.
After I changed them, i can update xhtml files while jetty is up and running.
Here is the link that i found appropriate facelet parameterconfiguration:

http://www.jsftoolbox.com/documentation/facelets/03-FaceletsConcepts/facelets-configuration.jsf

江南月 2024-10-15 02:16:39

如果上述链接消失,请在您的 faces 应用程序的 web.xml 中添加以下内容:


<context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
</context-param>
<context-param>
    <param-name>facelets.REFRESH_PERIOD</param-name>
    <param-value>1</param-value>
</context-param>

In case the above link ever disappears, in web.xml of your faces application do add this:


<context-param>
    <param-name>facelets.DEVELOPMENT</param-name>
    <param-value>true</param-value>
</context-param>
<context-param>
    <param-name>facelets.REFRESH_PERIOD</param-name>
    <param-value>1</param-value>
</context-param>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文