On 5/10/07, Eelco Hillenius <[EMAIL PROTECTED]> wrote:

> Right,  so what do you think of addChannelEventListener and
> IChannelEventListener ?

Better, but the nitpicker in me says that 'Listeners' wouldn't
typically participate in the channel, whereas that what the
implementations are supposed to do, right?


What do you mean by participate? My proposition is to make listeners only
listeners, doing nothing but listening to events and reacting, by for
example sending javascript to the client.

Here is a sample use in a page:
       pushService.addChannelListener(this, "channel", new
IChannelListener() {
           public void onEvent(String channel, Map<String, String> datas,
IChannelTarget target) {
               target.addComponent(container);
           }
       });

The two current implementation of IPushBehavior would stay behaviors, used
by the IChannelService implementation, but not visible to the API user.

Does it make sense?

Xavier

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user




--
Xavier Hanin - Independent Java Consultant
Manage your dependencies with Ivy!
http://incubator.apache.org/ivy/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to