在Eclipse中显示JSF EL调用层次结构 [英] show JSF EL call hierarchy in eclipse

查看:112
本文介绍了在Eclipse中显示JSF EL调用层次结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一种方法可以获得一个JSF bean方法的调用层次结构,包括eclipse中的表达式语言调用? b
$ b

  @ManagedBean 
@ViewScoped
public class MyBean {
public String getHello(){
return 你好;
}
}

一个简单的JSF页面:

 < h:outputText value =#{myBean.demo}/> 

使用CTRL点击#{myBean.demo} eclipse显示getter。



但是,getHello()的调用层次结构不显示EL调用。



有没有办法看看是否在任何JSF页面中使用getter?

解决方案

JBoss Tools (用于Java EE + Web)支持。您可以通过帮助>安装新软件在Eclipse Luna(4.4.x)中获取它,然后输入此更新站点。在可用的插件组件列表中,滚动到底部并选择JBoss Web和Java EE开发选项(剩余部分与Java EE Web开发人员无关)。




Is there any way to get the call hierarchy of a JSF bean method including Expression Language calls in eclipse?

I got a simple bean:

@ManagedBean
@ViewScoped 
public class MyBean {
    public String getHello() {
        return "Hello";
    }
}

And a simple JSF page:

<h:outputText value="#{myBean.demo}" />

With a CTRL click on #{myBean.demo} eclipse shows the getter.

But the call hierarchy for getHello() does not show the EL call.

Is there a way to see if a getter is used in any JSF page?

解决方案

JBoss Tools (for Java EE+Web) supports it. You can get it in Eclipse Luna (4.4.x) by Help > Install New Software and then entering the URL of this update site. In the list of available plugins components, scroll to the bottom and pick the option "JBoss Web and Java EE Development" (the remainder is not relevant for Java EE web dev).

这篇关于在Eclipse中显示JSF EL调用层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆