Tapestry Training -- From The Source

Let me help you get your team up to speed in Tapestry ... fast. Visit howardlewisship.com for details on training, mentoring and support!

Thursday, May 15, 2008

Tapestry 5 with NetBeans

At NFJS Boston last month, I ran into Alex Kotchnev. We had a number of chats about Tapestry and spurring wide adoption. I'm still working on some of those ideas. He's a NetBeans user whereas most of the documentation assumes Eclipse or IDEA. He's posted a blog about use Tapestry in NetBeans; specifically, using the Maven support to avoid typing the dreaded Maven project creation incantation.

3 comments:

Patrick said...

Well, I'll have to bookmark that one. I've been looking at Tapestry 5 for future applications for the company I work for. All our webapps were written in Struts by another employee. I've grown to hate Struts. I haven't actually built a production application using Tapestry, but have done some testing, basically getting through the "First Tapestry App" in the tutorial. I've worked with Eclipse, but have found it's kind of resource hungry on my office PC. I tried NetBeans a few times and liked working with it. Through my testing, I began using Maven with the Tapestry quickstart archetype, then also using maven to war my application. I did that because we use Tomcat, so using maven's war function allowed me to compile the sources into a jar file so the Tapestry apps worked in Tomcat. I read somewhere that I can set something in the pom.xml file that will tell the compiler to jar the compiled sources, but haven't figured it out.

I'm not very experienced, so maybe some of what I described can even be simplified. Don't know if there's a way I can use maven's war function from within NetBeans. I've always just used the command line for both the initial quickstart archetype and the war function.

Patrick said...

Well, I'll have to bookmark that one. I've been looking at Tapestry 5 for future applications for the company I work for. All our webapps were written in Struts by another employee. I've grown to hate Struts. I haven't actually built a production application using Tapestry, but have done some testing, basically getting through the "First Tapestry App" in the tutorial. I've worked with Eclipse, but have found it's kind of resource hungry on my office PC. I tried NetBeans a few times and liked working with it. Through my testing, I began using Maven with the Tapestry quickstart archetype, then also using maven to war my application. I did that because we use Tomcat, so using maven's war function allowed me to compile the sources into a jar file so the Tapestry apps worked in Tomcat. I read somewhere that I can set something in the pom.xml file that will tell the compiler to jar the compiled sources, but haven't figured it out.

I'm not very experienced, so maybe some of what I described can even be simplified. Don't know if there's a way I can use maven's war function from within NetBeans. I've always just used the command line for both the initial quickstart archetype and the war function.

Bill Holloway said...

Perhaps someday the Tapestry web site could feature a little Java Web Start application that would setup a new project for you. It's GUI would ask the pertinent questions, maybe download maven (or its relevant parts if that's applicable), and create the stub app.