Ok, sorry about the mistake (eclipse didn't see some files missing), it is
now fixed in the current trunk.

On Wed, Nov 12, 2008 at 8:53 AM, Julien Graglia <[EMAIL PROTECTED]>wrote:

> Le samedi 08 novembre 2008 à 08:56 -0400, Rodolfo Hansen a écrit :
> > I'm currently using wicketstuff-push on a small app I have.
> > The only bug I am aware of is related to the RemoveListener.
> >
> > What exactly is the issue you are having?
> I have some javascript errors with the trunk (rev 4309):
>
> dojo is not defined
> http://jgr-pc:8080/WicketTestProject/pages/HomePage/
> Line 59
> dojox is not defined
> http://jgr-pc:8080/WicketTestProject/pages/HomePage/
> Line 30
> dojox is not defined
> http://jgr-pc:8080/WicketTestProject/pages/HomePage/
> Line 59
>
>
> But with an older version (rev 4245) it works. The most visible
> difference is the presence of folders  dojo, and dojox in the old
> revision :
> [EMAIL PROTECTED]:~/workspaceOLD/push$ ls -alh
> src/main/resources/org/wicketstuff/push/cometd/dojo/
> total 24K
> drwxr-xr-x 6 julien julien 4,0K 2008-09-19 18:37 .
> drwxr-xr-x 4 julien julien 4,0K 2008-09-19 18:37 ..
> drwxr-xr-x 5 julien julien 4,0K 2008-09-19 18:37 dijit
> drwxr-xr-x 5 julien julien 4,0K 2008-09-19 18:37 dojo
> drwxr-xr-x 4 julien julien 4,0K 2008-09-19 18:37 dojox
> drwxr-xr-x 6 julien julien 4,0K 2008-09-30 21:14 .svn
>
>
> In the trunk :
> [EMAIL PROTECTED]:~/workspace/wicketstuff-push$ ls -alh
> src/main/resources/org/wicketstuff/push/
> total 16K
> drwxr-xr-x 4 julien julien 4,0K 2008-11-12 13:29 .
> drwxr-xr-x 4 julien julien 4,0K 2008-11-12 13:29 ..
> drwxr-xr-x 4 julien julien 4,0K 2008-11-12 13:29 dojo
> drwxr-xr-x 6 julien julien 4,0K 2008-11-12 13:29 .svn
>
>
> The
> org.wicketstuff.push.cometd.CometdAbstractBehavior.getInitCometdScript() ,
> getSubscriberScript seems to inject invalid js links...
>
> I just notice that the folder stucture changed...
>
> My test app is basically  :
> A Wicket Application with a channel service and and update thread:
>        private final IChannelService cometdService;
>
>        public AddressBookApplication() {
>                cometdService = new CometdService(this);
>
>                final Thread thread = new Thread(new Runnable() {
>                        @Override
>                        public void run() {
>                                update(cometdService);
>                        }
>                });
>                thread.start();
>        }
>
>        public void update(final IChannelService service) {
>                try {
>                        int counter = 0;
>                        while (true) {
>                                counter++;
>                                Thread.sleep(1000);
>                                final ChannelEvent event = new
> ChannelEvent("chat");
>                                final String msg = "counter" + counter;
>                                event.addData("message", msg);
>                                /* xxx */System.out.println("JGr >>
> Publishing " + event.getData() +
> " on channel : chat");
>                                service.publish(event);
>                        }
>                } catch (final Exception exc) {
> //...
>                }
>        }
>
>
> And a page displaying the message pushed in a label
> public HomePage() {
>        final IChannelService service = ((AddressBookApplication)
> WebApplication.get()).getCometdService();
> ...
> service.addChannelListener(this, "chat", new IChannelListener() {
>  public void onEvent(final String channel, final Map datas, final
> IChannelTarget target) {
>  labelModel.strvalue =String.valueOf(datas.entrySet().toArray()[0]);
>  target.addComponent(label);
>  }
> });
>
>
> I you need more informations, you can contact me!
>
> --
> Julien Graglia
> NetCeler
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to