<i id='lfGX6'><tr id='lfGX6'><dt id='lfGX6'><q id='lfGX6'><span id='lfGX6'><b id='lfGX6'><form id='lfGX6'><ins id='lfGX6'></ins><ul id='lfGX6'></ul><sub id='lfGX6'></sub></form><legend id='lfGX6'></legend><bdo id='lfGX6'><pre id='lfGX6'><center id='lfGX6'></center></pre></bdo></b><th id='lfGX6'></th></span></q></dt></tr></i><div id='lfGX6'><tfoot id='lfGX6'></tfoot><dl id='lfGX6'><fieldset id='lfGX6'></fieldset></dl></div>
      <tfoot id='lfGX6'></tfoot>
      <legend id='lfGX6'><style id='lfGX6'><dir id='lfGX6'><q id='lfGX6'></q></dir></style></legend>

      <small id='lfGX6'></small><noframes id='lfGX6'>

        • <bdo id='lfGX6'></bdo><ul id='lfGX6'></ul>
      1. 如何在 Eclipse 中查看 jsf/facelets 元素的文档

        how to see docs for jsf/facelets elements in eclipse(如何在 Eclipse 中查看 jsf/facelets 元素的文档)
          • <bdo id='yqnNN'></bdo><ul id='yqnNN'></ul>

                <tbody id='yqnNN'></tbody>

              <small id='yqnNN'></small><noframes id='yqnNN'>

              • <i id='yqnNN'><tr id='yqnNN'><dt id='yqnNN'><q id='yqnNN'><span id='yqnNN'><b id='yqnNN'><form id='yqnNN'><ins id='yqnNN'></ins><ul id='yqnNN'></ul><sub id='yqnNN'></sub></form><legend id='yqnNN'></legend><bdo id='yqnNN'><pre id='yqnNN'><center id='yqnNN'></center></pre></bdo></b><th id='yqnNN'></th></span></q></dt></tr></i><div id='yqnNN'><tfoot id='yqnNN'></tfoot><dl id='yqnNN'><fieldset id='yqnNN'></fieldset></dl></div>

                <legend id='yqnNN'><style id='yqnNN'><dir id='yqnNN'><q id='yqnNN'></q></dir></style></legend>
                • <tfoot id='yqnNN'></tfoot>

                  本文介绍了如何在 Eclipse 中查看 jsf/facelets 元素的文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 helios 3.6.2.我用网页编辑器打开了一个 .xhtml

                  每当我将鼠标悬停在一个元素上时,例如f:view,我只看到:

                  <块引用>

                  元素:f:view

                  而不是根据 tld 假设如下的描述:

                  <块引用>

                  创建一个 JSF 视图,它是一个容纳所有的容器作为视图一部分的组件.

                  除非另有说明,所有属性接受静态值或 EL表达式.

                  查看javadoc对于 JSF 中的这个类规范以获取更多详细信息.

                  有没有我可以配置 eclipse 来做到这一点?

                  解决方案

                  这取决于使用的插件.当前的 Eclipse 版本 (Helios) 确实不支持开箱即用 (更新:自从 Kepler 是第一个具有内置 JSF 2.0 支持的 Eclipse 版本以来肯定支持).

                  当您使用例如 ,它可以按照 这里.不幸的是,这个插件不适用于 Tomcat.

                  I am using helios 3.6.2. I have an .xhtml opened with Web Page Editor

                  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
                  <html xmlns="http://www.w3.org/1999/xhtml"
                        xmlns:f="http://java.sun.com/jsf/core"
                        xmlns:h="http://java.sun.com/jsf/html"
                        xmlns:ui="http://java.sun.com/jsf/facelets"
                        >
                  <f:view>
                  <h:head>
                  ...
                  </h:head>
                  

                  when ever I hover over an element,e.g. f:view, I only see :

                  Element : f:view

                  rather than the description which suppose to be the following according to the tld:

                  Creates a JSF View, which is a container that holds all of the components that are part of the view.

                  Unless otherwise specified, all attributes accept static values or EL expressions.

                  See the javadoc for this class in the JSF Specification for further details.

                  Is there anyway I can configure the eclipse to do that?

                  解决方案

                  That depends on plugins used. Current Eclipse version (Helios) indeed doesn't support this out the box (update: this is definitely supported since Kepler which is the first Eclipse version with builtin JSF 2.0 support).

                  When you're using for example Glassfish 3 and use the Glassfish server plugin and the project has Glassfish set as target runtime, then you'll see autocompletion and documentation for all tags and attributes in the Facelet XHTML page. You will even get an extra rightclick menu option on the project New > XHTML file.

                  Here are some screens of a Eclipse+Glassfish project:


                  Tag tooltip:


                  Tag autocompletion:


                  Attribute autocompletion:


                  When using for example Tomcat as target runtime, this feature is not available. Even more, syntax highlighting doesn't work at all. You would have to manually add *.xhtml extension to JSP editor settings to get the highlighting to work by Window > Preferences > General > Content Types > Text > JSP. But that's it.

                  For JBoss AS 6 you need the JBoss Tools plugin which can be installed as described here. This plugin by the way unfortunately doesn't work out for Tomcat.

                  这篇关于如何在 Eclipse 中查看 jsf/facelets 元素的文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Use cyrillic .properties file in eclipse project(在 Eclipse 项目中使用西里尔文 .properties 文件)
                  Eclipse gets stuck when trying to launch Android app(Eclipse 在尝试启动 Android 应用程序时卡住了)
                  Eclipse: Failed to initialize Monitor Thread: Unable to establish loopback connection(Eclipse:无法初始化监视器线程:无法建立环回连接)
                  Eclipse- JDK not found(Eclipse-找不到JDK)
                  How to make Eclipse behave well in the Windows 7 taskbar?(如何让 Eclipse 在 Windows 7 任务栏中表现良好?)
                  FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)(本机方法中的致命错误:JDWP 未初始化传输,jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197))
                    • <bdo id='Yy9aX'></bdo><ul id='Yy9aX'></ul>
                    • <legend id='Yy9aX'><style id='Yy9aX'><dir id='Yy9aX'><q id='Yy9aX'></q></dir></style></legend>

                        <tbody id='Yy9aX'></tbody>

                          <i id='Yy9aX'><tr id='Yy9aX'><dt id='Yy9aX'><q id='Yy9aX'><span id='Yy9aX'><b id='Yy9aX'><form id='Yy9aX'><ins id='Yy9aX'></ins><ul id='Yy9aX'></ul><sub id='Yy9aX'></sub></form><legend id='Yy9aX'></legend><bdo id='Yy9aX'><pre id='Yy9aX'><center id='Yy9aX'></center></pre></bdo></b><th id='Yy9aX'></th></span></q></dt></tr></i><div id='Yy9aX'><tfoot id='Yy9aX'></tfoot><dl id='Yy9aX'><fieldset id='Yy9aX'></fieldset></dl></div>

                            <small id='Yy9aX'></small><noframes id='Yy9aX'>

                          • <tfoot id='Yy9aX'></tfoot>