Eclipse (with JSF) code assistance (auto code hinting) problem - eclipse

I am doing a JSF project in Eclipse (Helios) and I enabled the JSF facet for my project.
Code assistance (code hinting) works for the JSF tags but not for the attributes.
Say, if I type the following then the all possible tags are displayed, that is fine.
<h:
But, if I type the following and press the space bar, no code hinting for attributes appears:
<h:graphicImage
I guess that Eclipse must have this feature (Netbeans is having similar feature) but I am missing something.
Please anyone tell me what I am missing.

You need to add the TLD reference (Eg. html_basic.tld) to the Eclipse project settings. This will allow Eclipse to reference the TLD file to provide autocomplete functionality.
A better explanation of what to do can be found here:
Eclipse autocomplete (content assist) with facelets (jsf) and xhtml

Related

Eclipse freemarker template highliting

Eclipse Luna shows freemarker template this way:
It does not highlite any html tags inside freemarker template. Is it correct for Eclipse? May be some hidden setting is present somewhere to enable it?
Unfortunately, the plugin (the one under JBoss Tools) doesn't know HTML highlighting. I'm also unaware of any that does that.
You can use NetBeans with this plugin:
http://plugins.netbeans.org/plugin/58284/freemarker-support-for-netbeans
It highlights FreeMarker and HTML markup ;-)

Attribute "ng-click" not allowed on element in netbeans

I just love AngularJs. I write all my projects in netbeans and I would like to stick with netbeans. I searched over the net for a plugin that supports AngularJs in netbeans, with no luck.
There is a plugin, but it seems not to work, or I can not get it to work.
I am not looking for a full fledged plugin, if I could get rid of the warnings in the editor I would be satisfied.
My questions:
Does anyone know a working plugin for netbeans that supports AngularJs?
If not, a link to instructions how to make netbeans understand a custom attribute would also help/
you can prefix them with data- or x- ...

how to add my own templates to eclipse in play! framework editor

I've noticed that the play plugin for eclipse adds a play editor,
along with several useful templates
I'd like to add my own ones, but I couldn't find the way to do it
I go to window, preferences, web, html files, templates and I can add
templates to eclipse html editor, but I couldn't find a similar option
for play editor
Check out the source code for the play plugin :
https://github.com/playframework/playclipse/tree/master/source/templates
You might want to fork it and add your templates to that file. That is what I would do. But I do not have enough Eclipse development knowledge to help you further than point the direction.
I had a lok at the source, it seems like the template editor tags are defined here
https://github.com/playframework/playclipse/blob/master/source/src/org/playframework/playclipse/editors/html/HTMLEditor.java
looks like there's no support for creating your own templates thru eclipse...

JSP: Tag library Intellisense problem in Eclipse

I am trying to develop a JSP application using Eclipse 3.6 Helios. Now I have defined a Tag Library Definition called DiceFunctions.tld inside the WEB-INF folder, and then declared this in a jsp page like this -
<%#taglib prefix="mine" uri="DiceFunctions"%>
When I write en EL function call inside that JSP, I don't get any auto-complete/intellisense for the prefix mine, which means if I add 10-20 tag libraries in a page, then I will have to remember each one of their names so that I can call their methods. Also the method signature's auto-complete isn't working properly, I mean when I type ${mine: } the IDE sometimes doesn't provide any suggestions for the functions defined inside that TLD. I need eclipse to provide intellisense for the tag library prefixes that I define and also for the functions defined within those TLDs. Also I couldn't find any way to create Tag Library Descriptor files (.tld) in eclipse. I had to create a general file and rename it so that it's extension becomes .tld.
Is there any way to modify eclipse to achieve those supports ? Is there a plugin which will be helpful ?
I have not used it myself but there is a plugin as part of the myeclipse suite which I have heard others rave about. They have a try-before-buy option. See http://www.myeclipseide.com/module-htmlpages-display-pid-11.html
This also looks promising: http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor

Stop on breakpoint in Eclipse facelet file

I switched to use facelet in Eclipse.
Before, when I used JSP i could put breakpoint on the page.
How can I put now on a facelet page?
If I follow this JSF Facelet tutorial (which uses facelets, an extension to JavaServer Faces(JSF) that uses XHTML syntax to define a JSF page; it doesn't seem to allow breakpoints directly on the JSF page itself.
(source: oracle.com)
The best bet remains in setting a breakpoint in the associated code:
(source: oracle.com)
, in order to debug that screen:
(source: oracle.com)
The problem is: WTP facelet is an incubator project, based on a 2008 proposal, which apparently has not made it as an official project.
Its project status is not exactly "current", if you catch my drift.