class NewChatMsgEvent implements ComentEvent {
...
}

final WebMarkupContainer chatwindow=new WebMarkupContainer("chatwindow");
chatwindow.add(new CometBehavior(NewChatMsgEvent.class) {
              protected void onEvent(CometEvent e, ComentTarget t) {
                   t.addComponent(chatwindow);
               }
}

form.add(new SendChatButton() {
     public void onsubmit() {
          getApplication().getCometBroadcaster().publish(new
NewChatMsgEvent());
      }
}

something like that should do quiet nicely i think

the broadcaster then has to find all active pages that have a behavior that
subscribed to this event and trigger them.

-igor



On 3/6/07, Johan Compagner <[EMAIL PROTECTED]> wrote:

i am planning to build an abstraction for cometd support (jetty and tomcat
now)
inside wicket. So that it really works like a ajax behavior that has a
constant open connection
where that you can get and then write the components you need.
I first need to build that we can release and get the page again (set the
pagemap barrier and release it when in idle mode)


If somebody has nice idea's/api for this please speak!

johan


On 3/6/07, Peter Neubauer <[EMAIL PROTECTED]> wrote:
>
> Hi there,
> I am trying to push out events that contain the moving locations of a
> users buddies, so I can update the GMap on the page using plain JS and
> the GMarkerManager.
>
> Right now I am using Pushlet for this, but that has the disadvantage
> that it is not integrated into Wicket, and it uses a generic broadcast
> mechanism, much like JMS subscribing to topics from JS.
>
> Is there any way to get this functionality working using Wicket, e.g.
> the GMap not being reloaded, just moving the markers on a pull/push
> interval?
>
> Thanks for any hints!
>
> /peter
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to