Re: Eclipse configuration for template development

"Boris Maras" <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <[email protected]>
Many thanks for these hints.

It works, I've been able to have a stable auto-completion and debug in JSPs.

Thanks again.

2006/11/10, Lorenzo Patocchi <[email protected]>:
>
> Hi Boris,
> i'm actually using Eclipse to develop and debug jahia projects.
> What You additionally need is:
>     - MyEclipseIDE (http://www.myeclipseide.com/)
>
> once installed You can start a new Web Project with standard
> directories: src and web(*) where src contains properties&java sources
> and web the webstuff (WEB-INF jsp etc),
> then you have to split your jahia installation in 2 main pieces.
>
> - bundled tomcat
> - webapps/jahia contents to be moved into web(*) of eclipse project
>
> because of the move now tomcat will not find anymore jahia, so you have
> to create a jahia.xml inside tomcat's webapps that specify the new
> location of jahia with context path="/jahia"
>
> in eclipse then:
> - copy properties from web/WEB-INF/classes to src
> - configure myeclipse properties to add a new application server to
> point where you installed jahia's tomcat (tomcat4)
>
> ensure all jar in WEB-INF are found and added to project's build-path
> probably eclipse&myeclipse will start to compile all jsp (may take a
> little while)
>
> and now you are ready to start jahia from inside eclipse, develop and
> debug :-)
>
> good luck!
>
> Lorenzo Patocchi
>
> Boris Maras wrote:
> > 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
>
> --
> Lorenzo Patocchi
> Dipl. Ing. STS/ETS/HTL
> www.cryms.com
> Tel: +41 91 60 55266
> Cel: +41 79 375 0891
> Fax: +41 91 223 9797
>
> Cryms sagl
> Via Vedeggio 1
> Uovo di Manno
> 6928 Manno - Lugano
> Switzerland
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.