Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 Thread Taha Hafeez
Yes, but wherever possible I find it a better option as using constructor injection ensures the bean is created properly even if you yourself create it, so minimal NPEs, just like the above case. regards Taha On Thu, Jun 9, 2011 at 10:36 AM, kristian marinkovic < kristian.marinko...@gmail.com> w

T5 XSL component

2011-06-08 Thread Greg Pagendam-Turner
Has anyone written a component to render by transforming a passed in stylesheet and xml document? Regards, Greg. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tape

Just completed a barcode component using barbecue

2011-06-08 Thread Greg Pagendam-Turner
Hi All, I've just completed a component to render barcodes using the opensource library called barbecue. All it takes is to put in a page. Does anyone want to put this component in their component library? Regards, Greg. -

Re: let tapestry handle hibernate or use spring ?

2011-06-08 Thread onj888-tapestry
於 2011/6/8 22:35, Thiago H. de Paula Figueiredo 提到: > On Wed, 08 Jun 2011 11:31:56 -0300, wrote: > >> Hi, what is the pros and cons of using tapestry to handle hibernate >> instead of spring ? >> I did a little bit research on google, but only most of them are howto >> or integration tutorials. >>

Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 Thread kristian marinkovic
Constructor injection does not work on pages, components and mixins. Works only on services. G, Kris Am 2011 6 9 01:49 schrieb "ael" : > I always make life complicated. > > Well just inject the DAO within pages. problem solved. > But still i want to make my page class neat though. > > Also contruct

Re: Simpler Select configuration

2011-06-08 Thread Inge Solvoll
Thanks for great responses to my thoughts. I have some ideas myself about AJAX stuff for Select, will try to make time to blog about it. I don't work with this stuff anymore, so it's harder to find the time :) On Mon, Jun 6, 2011 at 2:56 PM, LLTYK wrote: > Whatever the solution is for making th

Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 Thread ael
I always make life complicated. Well just inject the DAO within pages. problem solved. But still i want to make my page class neat though. Also contructor injection is another solution. Thanks :) -- View this message in context: http://tapestry.1045711.n5.nabble.com/T5-Using-DAO-within-a-DAO-

Re: First stab at CDI module for tapestry

2011-06-08 Thread Howard Lewis Ship
Nope, it's designed to be easy ... though contributions into MasterObjectProvider are always tricky since you can get into dependency cycles very easily. You've properly side-stepped this using @InjectService (using the special @Local marker annotation is always very important). The hard part, whi

Re: RE : Eclipse IDE and TML code completion

2011-06-08 Thread onj888-tapestry
Hi Finally, get it working according to http://wiki.apache.org/tapestry/Tapestry5JSPEditorEclipse . I don't know why, but http://tapestrytools.googlecode.com/svn/trunk/TapestryTools_UpdateSite/ just doesn't work for me. :( Thanks John 於 2011/6/9 0:10, onj888-tapes...@yahoo.com.hk 提到: > thank

Re: RE : Eclipse IDE and TML code completion

2011-06-08 Thread onj888-tapestry
thanks Mark and Laurent, So, I used my previous download helios eclipse-reporting-helios-SR1-win32.zip to make another trial, I use the updatesite http://tapestrytools.googlecode.com/svn/trunk/TapestryTools_UpdateSite/ to install the tools, change the content type to add *.tml in jsp. I openned th

Re: let tapestry handle hibernate or use spring ?

2011-06-08 Thread Thiago H. de Paula Figueiredo
On Wed, 08 Jun 2011 11:31:56 -0300, wrote: Hi, what is the pros and cons of using tapestry to handle hibernate instead of spring ? I did a little bit research on google, but only most of them are howto or integration tutorials. would anyone please give me a link if it has been discussed somewhe

let tapestry handle hibernate or use spring ?

2011-06-08 Thread onj888-tapestry
Hi, what is the pros and cons of using tapestry to handle hibernate instead of spring ? I did a little bit research on google, but only most of them are howto or integration tutorials. would anyone please give me a link if it has been discussed somewhere? Thanks John -

RE: RE : Eclipse IDE and TML code completion

2011-06-08 Thread Guerin Laurent
Mark is right, you have to use the JSP editor. So, i have tested with Eclipse Helios and it work for me. Laurent. -Message d'origine- De : Mark [mailto:mark-li...@xeric.net] Envoyé : mercredi 8 juin 2011 15:49 À : Tapestry users; onj888-tapes...@yahoo.com.hk Objet : Re: RE : Eclipse IDE

Re: RE : Eclipse IDE and TML code completion

2011-06-08 Thread Mark
On Tue, Jun 7, 2011 at 12:04 AM, wrote: >it doesn't response when I type

Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 Thread Thiago H. de Paula Figueiredo
On Wed, 08 Jun 2011 04:20:02 -0300, ael wrote: public static AuthenticationDAO buildAuthenticationDAO( @InjectService("HibernateSessionManager") HibernateSessionManager sessionManager) { AuthenticationDAOHibernate dao = new AuthenticationDAOHibernate(); dao.se

First stab at CDI module for tapestry

2011-06-08 Thread Magnus Kvalheim
Hi all, We're looking into moving our apps from a 'traditional' servlet container with spring into a Java EE web profile server like glassfish 3.1. Motivations for doing this is to utilize cdi(jsr 299, 330), ejb3 and more. Not just for the tapestry app, but also the other applications in our portf

Re: Strange problem with tapestry.js

2011-06-08 Thread Taha Hafeez
Finally I found the culprit. It is Tapestry.purge(). I commented all of it except the Element.stopObserver() and my problem is solved. regards Taha On Mon, Jun 6, 2011 at 7:06 AM, Taha Hafeez wrote: > Hi Kalle > > I give up windows since 2001 (I use linux, currenly ubuntu) but the company > I w

Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 Thread Taha Hafeez
I always use constructor injection. Did you try that ? regards Taha On Wed, Jun 8, 2011 at 12:50 PM, ael wrote: > Yes in the AppModule > > > > package com.dash.t5wdb.services; > > import java.io.IOException; > > import org.apache.tapestry5.*; > import org.apache.tapestry5.ioc.MappedConfiguratio

Re: T5 Using DAO within a DAO causes NPE.

2011-06-08 Thread ael
Yes in the AppModule package com.dash.t5wdb.services; import java.io.IOException; import org.apache.tapestry5.*; import org.apache.tapestry5.ioc.MappedConfiguration; import org.apache.tapestry5.ioc.OrderedConfiguration; import org.apache.tapestry5.ioc.ServiceBinder; import org.apache.tapestry5

Re: [OT] The response time of websites - comparison between frameworks

2011-06-08 Thread Massimo Lusetti
On Tue, Jun 7, 2011 at 7:30 PM, Kalle Korhonen wrote: > I really didn't want to say anything definitive about since I didn't > run it on a dedicated, clean test bed or anything. I just run the > benchmark for some time on my development machine, mostly comparing > against Wicket (just because I c

Re: Tapestry IoC: Service "Alias" depends on itself?

2011-06-08 Thread Erik Fäßler
Oh my - a simple @InjectService did the trick. Thank you, everything works great now. Side node: Since the old version did sometimes work I just hoped for your answer and continued working. In this process I added a logger to the contribution method: public static void contributeTestSymbolPro