Hi all,
I'm trying to use Eclipse to ease template development.
If you use it, how did you configure it? Which plugins? Which connection
with Tomcat&Jahia? Which debugging facilities?
I'm currently using Eclipse 3.2.1 with WTP plugin.
It gives me the following features :
- auto-completion on taglibs
- unstable auto-completion on Java embedded in JSPs
- but still no debug on JSP
I created a "dynamic web project" and put the Jahia libs in the build path.
I also copied the WEB-INF directory so that Eclipse can find the tlds and
web.xml
But I did not manage to link it to Tomcat/Jahia. The stacktraces in the
mailing-lists seem to show that some of you managed to do it. Any hints? :-)
I currently deploy my templates using an Ant task (it creates a jar, and
then copies it to the new_templates directory).
The auto-completion on Java is unstable. Here is what happens :
First example : in a JSP, if I have the following code, auto-completion is
fine :
<%
JahiaData jData = (JahiaData) request.getAttribute(
"org.jahia.data.JahiaData" );
ContentPage contentPage = ContentPage.getPage(jData.page().getID());
%>
Second example : I add a line using the class ParamBean. Auto-completion is
still fine on the first line, but is disabled on every line after the one
using ParamBean (error message : "Java Content Assist is not available for
the current cursor location") :
<%
JahiaData jData = (JahiaData) request.getAttribute(
"org.jahia.data.JahiaData" );
ParamBean jParams = jData.params();
ContentPage contentPage = ContentPage.getPage(jData.page().getID());
%>
It's very annoying because ParamBean is used very often. I need to comment
these lines whenever I want auto-completion to work (but, of course, I have
compilation errors).
Any ideas to work around this problem?
More globally, do you have another plugin and/or IDE that works better for
these features?
Thanks,
Boris Maras