show JSF EL call hierarchy in eclipse
Asked Answered
G

1

0

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?

Gosney answered 12/1, 2015 at 12:18 Comment(2)
I guess not, because they are actually called at Runtime via Reflection.Flossi
There are errors in your questionIdyll
M
5

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).

enter image description here

Maye answered 12/1, 2015 at 12:26 Comment(2)
This looks very promising. I'll give it a try.Gosney
For additional install/config instructions, see also balusc.blogspot.nl/2014/10/… It also ships with a visual editor which you really want to disable.Maye

© 2022 - 2024 — McMap. All rights reserved.