Hello Thiago H de Paula Figueiredo-2 and All Tapestry Developers, If you remember you helped me in the problem of persisting the value of select component in action request, it is working correctly now.
I have some thing different now. When I save new value in database which is actually shown in this select component, after saving and rendering the page the select component shows the new value. But when I select this new value to perform action it doesn't persist in action request it is received as null while other previous values of this select component never received null on action after saving new value. Only new value received null in action so it does not persists on page after action request. Can anyone tell why this happening? Am I wrong somewhere? Any help is appreciated... Thanks in advance... With Regards, S. Ritesh Following is my previous conversation with Thiago - Ritesh.S wrote: > > OK I will study the links you provided. Thanks for your help. > > > Thiago H de Paula Figueiredo-2 wrote: >> >> On Wed, 21 Nov 2007 10:57:46 -0200, Ritesh.S <[EMAIL PROTECTED]> wrote: >> >>> If I am not bothering you, I will like to ask you for which classes or >>> situations this equals method overriding is necessary. If you like to >>> answer I would >>> like to know. >> >> If your objects can be added to a collection, you need to at least >> override the equals() method. If they can be added to a map (including >> hash tables), you need to override both equals() and hashCode(). On the >> othher hand, it is a good practice to override both equals() and >> hashCode() for every entity class. >> >> For more information, take a look at >> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#equals(java.lang.Object) >> >> and >> http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Object.html#hashCode(). >> >> -- >> Thiago H. de Paula Figueiredo >> Desenvolvedor, Instrutor e Consultor de Tecnologia >> Eteg Tecnologia da Informação Ltda. >> http://www.eteg.com.br >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- View this message in context: http://www.nabble.com/T5-persisting-select-component-selection-after-form-submission-tf4843731.html#a14058751 Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]