Right now expressions that invoke listeners are like this:

listeners.doSomething

where doSomething is a method with the correct signature:

public void doSomething(IRequestCycle cycle) throws RequestCycleException

Why not extend this to make it possible to implement simple listeners
directly in OGNL?
i.e. make the expression the listener. I'm finding that I'm building pages
using aggregation with beans
more than extending a Page class these days. Would cut down on the code
writing if I were able
to manipulate my beans without declaring the listener methods.

One could extend the OGNL context to contain the cycle as well as the
component. This would
allow one to replace the method declaration with simple expressions like:

cycle.setPage("Home")
beans.myBean.incrementCounter()

etc.

Any thoughts?

Geoff

Geoffrey Longman
Intelligent Works Inc.





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

Reply via email to