First, I must admit webwork1.x is a wonderful framework for Java web development. My 
workmates and I have benefit from your valuable contribution so much.

Now, since ww2.0 is under development, I want to give my own suggestions. I wish it 
could do some help.

In ww1.x 's framework, we must implements an additional layer of "Action" besides the 
normal system, which composed of Entity objects, value objects and stateless sessions. 
Though we could generate it with xdoclet, it's still no so pleasant.

In ww2.x, could this action layer be removed? That is, we could use ww's view 
technologies directly with normal systems. If this could be done, I think it will be 
great relief to ww application developers.

Here is my immature idea:
In Rickcard's AOP framework, not only method, but also Class could be advised. So we 
could implement a value stack by the side aspect.

For example, the below statless session is modified from the example in ww2.0's cvs:

public class CounterAwareImpl implements CounterAware
    public int increment(Counter counter)
    {
       counter.incrementCount();

       return counter.getCount();
    }
}

after invocation of increment(Counter) from view, we cound use
((ValueStack)counterAwareImpl).findValue("increment:counter") to get counter Object; 
use ((ValueStack)counterAwareImpl).findValue("increment:result") to get return value.

A webwork enthusiast.







-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to