Hi Andreas, Sorry about the delayed response. I wanted to first make it work and then write back. All in all, it didnt work for me. So I am using the back door to both Spring and Visit objects for now. The problem I have with the idea that you mentioned is that DWR normally sends back a json response and does a whole bunch of things which I have no clue about. If I have to wrap that in a IEngine service call, I have to dig deep for which time is a constraint right now. But I guess that could still be done.
Regards, Srini. On Fri, Jun 20, 2008 at 2:36 AM, Andreas Andreou <[EMAIL PROTECTED]> wrote: > Just an (ugly) idea... > > If you can send the DWR requests to a Tapestry service that will then > forward or include the normal DWR servlet output, it should work. > > http://wiki.apache.org/tapestry/TapestryFasttrackForStrutsProgrammers > has some code that creates a component that can include jsps, servlets, > e.t.c. > > So, try building an IEngineService that uses that... > > BTW, how does the dwr creator for hivemind look like? is it possible > that it finds its > way into the tapestry wiki? > > On Thu, Jun 19, 2008 at 8:13 PM, Srinivas Yermal <[EMAIL PROTECTED]> > wrote: > > Hi All, > > > > I am creating a huge dojo widget which needs to access some data on the > > server side as objects and I am trying to use DWR for remoting some of my > > calls. Pardon my ignorance, but I am not sure whether this is allowed in > the > > tapestry world. So I set forth to try to integrate DWR into my tapestry > app. > > > > My need is to have access to the visit object and other application state > > objects from within the DWR created objects. So I extended the tapestry > > ApplicationServlet in order to get access to the hivemind Registry and > > stored it into the servlet context. Next I wrote a separate DWR creator > for > > hivemind and within the creator I am accessing the registry to get to the > > hivemind service. Everything works well until here. I get the service > from > > the registry and the ApplicationStateManager is set into the service. Now > > within the service when I try to access the visit object using > > (Visit)appStateManager.get("visit"); - I get the following exception. > > > > java.lang.NullPointerException: Property 'webRequest' of <OuterProxy for > > > tapestry.globals.RequestGlobals(org.apache.tapestry.services.RequestGlobals)> > > is null. > > at > > > $WebRequest_11aa1b3d84b._targetServiceProperty($WebRequest_11aa1b3d84b.java) > > at $WebRequest_11aa1b3d84b.getSession($WebRequest_11aa1b3d84b.java) > > at $WebRequest_11aa1b3d82f.getSession($WebRequest_11aa1b3d82f.java) > > at > > > org.apache.tapestry.engine.state.SessionScopeManager.getSession(SessionScopeManager.java:48) > > at > > > org.apache.tapestry.engine.state.SessionScopeManager.get(SessionScopeManager.java:64) > > at > > > $StateObjectPersistenceManager_11aa1b3d845.get($StateObjectPersistenceManager_11aa1b3d845.java) > > at > > > org.apache.tapestry.engine.state.StateObjectManagerImpl.get(StateObjectManagerImpl.java:50) > > at > > > org.apache.tapestry.engine.state.ApplicationStateManagerImpl.get(ApplicationStateManagerImpl.java:60) > > at > > > $ApplicationStateManager_11aa1b3d807.get($ApplicationStateManager_11aa1b3d807.java) > > at > > > $ApplicationStateManager_11aa1b3d808.get($ApplicationStateManager_11aa1b3d808.java) > > at > > > com.eureka.engine.dwrtest.DWRTestService.getVisitObject(DWRTestService.java:24) > > at > > > com.eureka.engine.dwrtest.DWRTestService.doSomething(DWRTestService.java:28) > > > > I guess the reason may be that the tapestry servlet doesnot get to bless > the > > request and create tapestry specific webrequest, but I am at a loss of > what > > I should do going forward. Any light on this would be greatly > appreciated. > > > > Regards, > > Srini. > > > > > > -- > Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr > Tapestry / Tacos developer > Open Source / JEE Consulting > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://www.indygosoft.com