Question

I'm using Eclipse-Juno & trying to follow JSF code from xhtml to Bean class, But i'm not able to get that feature in my work space.

For Eg:

when i'm using Ctrl+mouse pointer in header, it's giving suggested link.

enter image description here

But, when i come up with xhtml code i'm not able to get link to bean class.

For Eg:

Here i'm using same option, Ctrl+mouse pointer. It is not giving any suggestion to associated bean.

enter image description here

How to i get this? whether I have to change any settings in my eclipse?

Was it helpful?

Solution

To clear this kind of behavior in eclipse, we have to set configuration correctly. The answer given by Rami is partial to this problem.

When we download Eclipse for JEE the Web Tools Platform plugin will be download as inbuilt plugin. While running your Application / Project you have to configure for Java Server Faces in Project Facets.

The link to set configuration in Eclipse are,

(Right click project) -> Properties ->(Search for Facets) select Project Facets -> (Tick mark) Java Server Faces -> (click) Apply -> (click) ok

For more detail See image below..

enter image description here

Now you can get link to Associated Bean Class form xhtml & You shall get default proposals also.

OTHER TIPS

Eclipse Web Tools Platform offers this

http://www.eclipse.org/webtools/releases/3.0.0/newandnoteworthy/jsf.php

Hyperlink support in WPE's Source tab

The Source tab of the Web Page Editor (WPE) supports Hyperlink on a Managed Bean variable, Managed Bean property and Managed Bean method referenced in the Expression Language(EL) of a tag-attribute. Users can (Ctrl+click) on the hyperlink to navigate to the source of the Managed Bean.

enter image description here

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top