|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
DefaultScriptSessionManager version issue + setting attribute in ScriptSessionHi -
I was trying to extend DefaultScriptSessionManager class so as to add attributes to "ScriptSession". My implementation was totally based upon Lance Semmens implementation from a prior post: public class MyScriptSessionManager extends DefaultScriptSessionManager { public String createScriptSession(RealWebContext webContext) String id = super.createScriptSession(); ScriptSession scriptSession = getScriptSession(id); HttpSession session = webContext.getHttpSession(); Object someUserSpecificObject = session.getAttribute("someUserSpecificObject"); scriptSession.setAttribute("someUserSpecificObject", someUserSpecificObject); return id; } } But then I ran into a strange problem, I downloaded DWR 2.0.5 & 3.rc1 and in both the jar files, DefaultScriptSessionManager class did not have method "createScriptSession()" which I was planning to override. So I am kind of stuck and unable to figure out how to provide the above implementation to set attributes in ScriptSession. I had downloaded both set of jar files from DWR official site. Did anyone run into this issue before? Or if things have changed and I am not aware of? Best Regards, DNC |
|
|
Re: DefaultScriptSessionManager version issue + setting attribute in ScriptSessionStill looking around, does anyone have any answers?
|
|
|
Re: DefaultScriptSessionManager version issue + setting attribute in ScriptSessionCall addScriptSessionListener() in MyScriptSessionManager's constructor instead.... the scriptSessionListener will do the work.
2009/11/6 DNC1234 <devajyoti.c@...>
|
| Free embeddable forum powered by Nabble | Forum Help |