Fw: [Webwork-devel] ValueStack abstraction
Brought to you by:
baldree,
rickardoberg
From: Matt B. <ma...@sm...> - 2002-05-26 08:53:46
|
Incorporated suggested changes. Look forward to seeing WW work with Cocoon2. -Matt ----- Original Message ----- From: "Sven Kuenzler" <sv...@im...> Newsgroups: gmane.comp.java.webwork.devel To: <web...@li...> Sent: Tuesday, May 21, 2002 1:08 PM Subject: [Webwork-devel] ValueStack abstraction > Some time ago, I told you about integrating Webwork into Cocoon2. Meanwhile, > I have mostly finished this task. There is a WebWorkAdapterAction which > enables Cocoon to act as a WW dispatcher, a WebWorkGenerator that clones > XSLTServlet's behavior and a XSP taglib that is roughly equivalent to the > JSP tags. The last component still needs some work (most notably > implementing some ui:tags) before I can make it publicly available for > interested parties. > > Surprisingly, the integration task was quite easy. I only had to modify > WebWork itself in one point: WW's ValueStack depends on HttpServletRequest > and ServletContext. Both of which are generally not available to Cocoon > components. Instead, they use their own Request et al. fascades, which will > be available even in C2's offline mode. > > In order to deal with this, I made a servlet agnostic AbstractValueStack > which basically does the same thing as the WW original. Except that it > delegates expression evaluation to abstract methods when needed. The > required methods findInContext and getRequestParameter are implemented in a > servlet aware ValueStack (and its Cocoon counter part). > > I have attached the two source files in question. Modifications are marked > with SK. My question is whether such an architecture could find its way into > the original WW dist. Or is there's even a smarter way to make ValueStack > useable in a non-servlet context. > > The same question goes for ActionContext BTW. In that case, the modification > is not strictly necessary, though. > > Sven.... > > > > > ---------------------------------------------------------------------------- ---- > > > > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm > > _______________________________________________ > Webwork-devel mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webwork-devel > |