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.
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.
How to i get this? whether I have to change any settings in my eclipse?
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..
Now you can get link to Associated Bean Class
form xhtml
& You shall get default proposals also.