Re: Help with using DWR with Tapestry

2009-12-30 Thread Vangel V. Ajanovski
On 30.12.2009 17:27, Ashwanth Kumar wrote: > No offense, just wanted to learn some things.. at a rapid pace.. thats it.. > :) > No offense taken, I was just curious because I had never heard about DWR and was just curious where it fits. smime.p7s Description: S/MIME Cryptographic Signature

Re: Help with using DWR with Tapestry

2009-12-30 Thread Ashwanth Kumar
Hello Guys, Okay, i give up! I'm very new here! And i'm just a 2nd year college student! I'm learning java only now! And more-over when i hunter the WWW for some good framework to build my WebApp in J2EE. I had to keep my hands on many things. Its during that, i actually got in Tapestry and DWR. T

Re: Help with using DWR with Tapestry

2009-12-30 Thread Thiago H. de Paula Figueiredo
Em Wed, 30 Dec 2009 14:14:12 -0200, Vangel V. Ajanovski escreveu: OK let me see if I get the point. If I build user registration for me it's a simple form, username and email and such and for example I bind javascript code on the username that will check if it already exists, before I even fi

Re: Help with using DWR with Tapestry

2009-12-30 Thread Vangel V. Ajanovski
On 30.12.2009 11:06, Ashwanth Kumar wrote: > Well, My use here is a typical example of User Registration and User > authentication! I'm trying to extend the entire app of Tapestry to be AJAX > driven, with all the pages served through AJAX. > > Imagine u can use sought of AJAX capabilities with DWR

Re: Help with using DWR with Tapestry

2009-12-30 Thread Ashwanth Kumar
Well, My use here is a typical example of User Registration and User authentication! I'm trying to extend the entire app of Tapestry to be AJAX driven, with all the pages served through AJAX. Imagine u can use sought of AJAX capabilities with DWR and Tapestry! - Ashwanth Kumar On Tue, Dec 29, 2

Re: Help with using DWR with Tapestry

2009-12-29 Thread Thiago H. de Paula Figueiredo
Em Tue, 29 Dec 2009 15:04:23 -0200, Vangel V. Ajanovski escreveu: I am a bit curious and never had such a scenario, so can you or anyone else elaborate a bit more or give an example of a use-case where this interaction between DWR and tapestry-hibernate is useful? When your DWR code needs t

Re: Help with using DWR with Tapestry

2009-12-29 Thread Vangel V. Ajanovski
I am a bit curious and never had such a scenario, so can you or anyone else elaborate a bit more or give an example of a use-case where this interaction between DWR and tapestry-hibernate is useful? Thanks On 29.12.2009 17:24, Ashwanth Kumar wrote: > Hey, Thanks a lot!! > > I got the Tapestry Hibe

Re: Help with using DWR with Tapestry

2009-12-29 Thread Thiago H. de Paula Figueiredo
Em Tue, 29 Dec 2009 14:24:16 -0200, Ashwanth Kumar escreveu: Hey, Thanks a lot!! You're welcome! I got the Tapestry Hibernate Working with DWR!! U made my life easy!! Tapestry and Tapestry-IoC made it. I just showed you the way. :) -- Thiago H. de Paula Figueiredo Independent Java, Apa

Re: Help with using DWR with Tapestry

2009-12-29 Thread Ashwanth Kumar
Hey, Thanks a lot!! I got the Tapestry Hibernate Working with DWR!! U made my life easy!! - Ashwanth Kumar On Tue, Dec 29, 2009 at 9:52 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 29 Dec 2009 13:48:40 -0200, Ashwanth Kumar < > ashwanth.ku...@gmail.com> escreveu: >

Re: Help with using DWR with Tapestry

2009-12-29 Thread Thiago H. de Paula Figueiredo
Em Tue, 29 Dec 2009 13:48:40 -0200, Ashwanth Kumar escreveu: Hello, Hi! But, sorry how am i to get HibernateSessionManager?? from the attribute, can u tell me that plz.. I'm breaking my head here.. for almost a week. Get the registry from that servlet context attribute. It's an Registr

Re: Help with using DWR with Tapestry

2009-12-29 Thread Ashwanth Kumar
Hello, On Tue, Dec 22, 2009 at 5:05 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Em Tue, 22 Dec 2009 09:27:26 -0200, Lance Java > escreveu: > > > One more thing to note is that DWR supports ajax filters which are >> basically interceptors on DWR services. You may want to dup

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
No probs. To verify that the TapestryFilter is doing it's job, try to @Inject RequestGlobals into your bean. Cheers, Lance. 2009/12/22 Ashwanth Kumar > Sure, > > Thanks a lot! I'll post my code, once i get it working! > > - Ashwanth Kumar > > On Tue, Dec 22, 2009 at 5:32 PM, Lance Java >wrote

Re: Help with using DWR with Tapestry

2009-12-22 Thread Ashwanth Kumar
Sure, Thanks a lot! I'll post my code, once i get it working! - Ashwanth Kumar On Tue, Dec 22, 2009 at 5:32 PM, Lance Java wrote: > The tapestry creator will look something like... > > public class TapestryCreator extends AbstractCreator { >private String beanName; > >public String get

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
The tapestry creator will look something like... public class TapestryCreator extends AbstractCreator { private String beanName; public String getBeanName() { return beanName; } // set by config in dwr.xml (see my prev email) public void setBeanName(String beanName) {

Re: Help with using DWR with Tapestry

2009-12-22 Thread Ashwanth Kumar
Can u provide an example! I dont find any good example on the site! - Ashwanth Kumar On Tue, Dec 22, 2009 at 5:10 PM, Lance Java wrote: > Ah... great. > > The TapestryCreator can access the servlet context using: > org.directwebremoting.WebContextFactory.get().getServletContext(); > > http://di

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
Ah... great. The TapestryCreator can access the servlet context using: org.directwebremoting.WebContextFactory.get().getServletContext(); http://directwebremoting.org/dwr/server/javaapi.html 2009/12/22 Thiago H. de Paula Figueiredo > Em Tue, 22 Dec 2009 09:27:26 -0200, Lance Java > escreveu:

Re: Help with using DWR with Tapestry

2009-12-22 Thread Thiago H. de Paula Figueiredo
Em Tue, 22 Dec 2009 09:27:26 -0200, Lance Java escreveu: One more thing to note is that DWR supports ajax filters which are basically interceptors on DWR services. You may want to duplicate some of the TapestryFilter's functionality in an AjaxFilter. There's no need to do that. Tapestry

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
One more thing to note is that DWR supports ajax filters which are basically interceptors on DWR services. You may want to duplicate some of the TapestryFilter's functionality in an AjaxFilter. http://directwebremoting.org/dwr/server/dwrxml/filters.html 2009/12/22 Lance Java > For a bit more inf

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
For a bit more info your dwr.xml might look like this: Perhaps some of the tapestry gurus can help out a bit more here. For normal DWR usage in tapestry, you disable the tapestry filter for /dwr/*. It seems that you might want a bit of the tapestry filter's fun

Re: Help with using DWR with Tapestry

2009-12-22 Thread Lance Java
You might like to take this discussion onto the dwr user's list. I think it might involve writing a TapestryCreator which is able to look up services from the tapestry registry. Please download the dwr source and have a look at the SpringCreator for inspiration. Cheers, Lance. 2009/12/21 Ashwanth

Re: Help with using DWR with Tapestry

2009-12-22 Thread Ashwanth Kumar
copy, retain > or redistribute it. Please visit http://www.albourne.com/email.html for > important additional terms relating to this e-mail. > > - Original Message - > From: "Ashwanth Kumar" > To: "Tapestry users" > Sent: Monday, 21 December, 2009

Re: Help with using DWR with Tapestry

2009-12-21 Thread Peter Stavrinides
it. Please visit http://www.albourne.com/email.html for important additional terms relating to this e-mail. - Original Message - From: "Ashwanth Kumar" To: "Tapestry users" Sent: Monday, 21 December, 2009 19:35:09 GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subj

Help with using DWR with Tapestry

2009-12-21 Thread Ashwanth Kumar
Hello, In my project, i would like to use DWR along with Tapestry! But i've a probelm. Its like i need to access the DB, i use Hibernate with Tapestry. In my class i've: @Inject private Session _session; when i access this class from DWR, Tapestry doesn't interfere at all. But, i'm getting a nul