Re: Confused at the way getter setters are being called!!!!

2009-08-03 Thread Howard Lewis Ship
http://www.catb.org/~esr/faqs/smart-questions.html On Mon, Aug 3, 2009 at 6:19 AM, sandeepraj singh wrote: > > Hi,I had known that for every Action Request there is a following Rendering > Request that Tapestry Generates.However, the way the getter setters are > being run has left me confused.Coul

Re: ClassCastException after upgrading to 5.1.0.5

2009-08-03 Thread raucha
I tried both suggestions without success. Adding the parameter to the JVM prevents weblogic from starting and changing the system property in the AppModule crashes all other applications deployed to the server because they don't have the jars in their classpath. It seems I am stuck with 5.0.18 as

Re: T5.1 Exception constructing service 'HibernateSessionSource'

2009-08-03 Thread Howard Lewis Ship
The fact that you have a class name expressed as a path seems to indicate a missing dependency: org/apache/commons/collections/map/LRUMap Tomcat is pretty bad about dependency changes on redeployments; often it seems that some dependencies remain in a temporary directory after the redeploy, screw

T5.1 Exception constructing service 'HibernateSessionSource'

2009-08-03 Thread Ben Acker
Hello all! Any help with this is greatly appreciated: I recently upgraded to T5.1.0.5 from an earlier version of 5.1. On local environment (jetty) everything is happy. On a testing server that housed the previous app, not so happy. The target is Tomcat 5.5.27, and it tells me this: org.a

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
I do not inject RdbmsLogin.java because this is JAAS login implementation. The way I invoke RdbmsLogin is as follow: in AuthService.java public class AuthService implements IAuthService{ ... public User authenticate(User user){ ... RdbmsCallbackHandler handler =

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Thiago H. de Paula Figueiredo
Em Mon, 03 Aug 2009 19:57:12 -0300, neo anderson escreveu: Sorry I do not understand very well. What class I need to bind with RdbmsLogin? Shouldn't you inject LoginModule instead of RdbmsLogin? -- Thiago H. de Paula Figueiredo Independent Java consultant, developer, and instructor http://

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread neo anderson
Sorry I do not understand very well. What class I need to bind with RdbmsLogin? RdbmsLogin is an impl class that implements JAAS LoginModule. So there also have other classes needed, including CallbackHandler, Principal, etc. Should I bind RdbmsLogin with LoginModule? I try to bind them toget

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Juan E. Maya
are u binding RdbmsLogin.java too? On Mon, Aug 3, 2009 at 11:20 PM, Neo Anderson wrote: > > Yes I do see the log (catalina.out) shows > >                                 IAccount: DEFINED >                              IAuthService: DEFINED > > And what makes me confused is that the log also shows

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
Yes I do see the log (catalina.out) shows IAccount: DEFINED IAuthService: DEFINED And what makes me confused is that the log also shows that the IAccount is created when invoking AuthService.java [DEBUG] AppModule.IAccount Creatin

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Thiago H. de Paula Figueiredo
Em Mon, 03 Aug 2009 16:35:33 -0300, neo anderson escreveu: Thanks for reply. :) I am a bit confused now. Would you please give a bit more explain on how to add make AccountDAO a service? Using binder.bind() in some modules's bind(ServiceBinder) method or creating a buildXXX() method

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Juan E. Maya
Do u see the DAO being created when the application goes up? Tapestry does a very good job informing all the services that are configured. If it's not in the log then u r not binding the service. There r 2 ways to bind services in a module: public static void bind(ServiceBinder binder) { binder

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread neo anderson
Thanks for reply. I am a bit confused now. Would you please give a bit more explain on how to add make AccountDAO a service? Why I am confused is because I discover when I switch back using the old testing code, it works correctly. The way how I obtain the AccountDAO is in Login.java

Re: Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Thiago H. de Paula Figueiredo
Em Mon, 03 Aug 2009 13:03:51 -0300, Neo Anderson escreveu: The problem is that it looks like accountDAO is always null. It seems to me that the IAccount does not successfully bind with AccountDAO class; It wasn't, unless you add make AccountDAO a service. Just instantiating it and using

Re: AjaxFormLoop: property changes have no effect

2009-08-03 Thread davidb82
Andy Pahne-7 wrote: > > > I am using an AjaxFormLoop component. There is no database involved, so > the code should be simple. > > The add operation in onAddRowFromVehicles() works. I can see that > because the list of vehicles has alwas the correct size. But Properties > of Vehicle (like v

question about forminjector and client ids

2009-08-03 Thread davidb82
I have been experimenting with using the AjaxFormLoop component, however, I've run into a problem with displaying validation errors and I was hoping someone could help me out. My problem is that if additional rows are added to the form via the formloop and the form is submitted with errors in the

Tapestry 5 IoC binding interface with impl problem

2009-08-03 Thread Neo Anderson
In the AppModule I add the following information to bind IAccount with AccountDAO class. ApplicationStateCreator account = new ApplicationStateCreator(){ public IAccount create() { re

prevent tapestry from submit

2009-08-03 Thread funfel_tp
I'm using a tapestry (5.1.0.5) form, input and textfiled with autocomplete mixin. What I'm trying to do is to prevent form/input from submitting via enter key pressed. It's quite easy to handle keyup and/or keydown event, but I don't have a clue how to stop/overwrite submitting. Tapestry generat

Confused at the way getter setters are being called!!!!

2009-08-03 Thread sandeepraj singh
Hi,I had known that for every Action Request there is a following Rendering Request that Tapestry Generates.However, the way the getter setters are being run has left me confused.Could some one please tell me, in case component tries to change the value of a bound parameter, in what sequence would