You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Julien Graglia <jg...@netceler.com> on 2008/11/06 09:17:06 UTC

wicketstuff-push is over, wickestuff-dojo-1.1 is born ???

Hi,
I have read some posts (1) that seems to say that wicketstuff-push will
be replaced by a new wicketstuff-dojo-1.1 artifact.

The post says that this artifact is in a private SVN repo, but will be
available "shortly"..

Do you have any informations about that?

I need to do reverse ajax with wicket (cometd...) ie. push event from a
server thread at the server initiative. It works with an old (rev 4245)
version  of wicketstuff-push. The trunk seems "corrupted" : a "dojo"
folder is missing..



1 : http://www.nabble.com/New-wicketstuff-dojo-project-td19070145.html
-- 
Julien Graglia
NetCeler


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: wicketstuff-push is over, wickestuff-dojo-1.1 is born ???

Posted by Rodolfo Hansen <rh...@kindleit.net>.
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 <jg...@netceler.com>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 :
> julien@jgr-pc:~/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 :
> julien@jgr-pc:~/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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

RE: ModalWindow and Component.writeObject

Posted by Stefan Lindner <li...@visionet.de>.
Blush! I had an instance of Session in my Component, so the complete Session object was serialized on each klick onto the button! Excuse my question and thanks for the quick answer!

Stefan

-----Ursprüngliche Nachricht-----
Von: Johan Compagner [mailto:jcompagner@gmail.com] 
Gesendet: Mittwoch, 12. November 2008 15:39
An: users@wicket.apache.org
Betreff: Re: ModalWindow and Component.writeObject

I guess somehow the pages hold references to each other so if you
press the button on the inner page, and do your stuff, after that
wicket serializes that page it also encounters the other pages and
those are also serialized.

On 11/12/08, Stefan Lindner <li...@visionet.de> wrote:
> I have a ModalWindow with a page as content, not a panel. Wn Ajax button on
> this modal window starts another modal window inside the first modal window
> (Page as content not a panel). This second modal window holds a Button. The
> Button has an AjaxEventBehavior
>
> 	Button mybutton = new button(...);
> 	mbyButton.add(new AjaxEventBehavior("onclick") {
> 		private static final long serialVersionUID = 1L;
> 		@Override
> 		public void onEvent(AjaxRequestTarget target) {
>
> each time the button is clicked an onEvent is called, ab bunch of
> Component.writeObject is fired. But not only the components of the current,
> sedonc, top level ModalWindow are serialized and stored. All components of
> all underlying pages call writeObject().
> In Wicket 2.0 this was not the case, in 1.4 trunk it is.
> Is this a bug or a feature? Does the button try something like a get/post
> even if there is no form surrounding it?
>
> Stefan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: ModalWindow and Component.writeObject

Posted by Johan Compagner <jc...@gmail.com>.
I guess somehow the pages hold references to each other so if you
press the button on the inner page, and do your stuff, after that
wicket serializes that page it also encounters the other pages and
those are also serialized.

On 11/12/08, Stefan Lindner <li...@visionet.de> wrote:
> I have a ModalWindow with a page as content, not a panel. Wn Ajax button on
> this modal window starts another modal window inside the first modal window
> (Page as content not a panel). This second modal window holds a Button. The
> Button has an AjaxEventBehavior
>
> 	Button mybutton = new button(...);
> 	mbyButton.add(new AjaxEventBehavior("onclick") {
> 		private static final long serialVersionUID = 1L;
> 		@Override
> 		public void onEvent(AjaxRequestTarget target) {
>
> each time the button is clicked an onEvent is called, ab bunch of
> Component.writeObject is fired. But not only the components of the current,
> sedonc, top level ModalWindow are serialized and stored. All components of
> all underlying pages call writeObject().
> In Wicket 2.0 this was not the case, in 1.4 trunk it is.
> Is this a bug or a feature? Does the button try something like a get/post
> even if there is no form surrounding it?
>
> Stefan
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


ModalWindow and Component.writeObject

Posted by Stefan Lindner <li...@visionet.de>.
I have a ModalWindow with a page as content, not a panel. Wn Ajax button on this modal window starts another modal window inside the first modal window (Page as content not a panel). This second modal window holds a Button. The Button has an AjaxEventBehavior

	Button mybutton = new button(...);
	mbyButton.add(new AjaxEventBehavior("onclick") {
		private static final long serialVersionUID = 1L;
		@Override
		public void onEvent(AjaxRequestTarget target) {

each time the button is clicked an onEvent is called, ab bunch of Component.writeObject is fired. But not only the components of the current, sedonc, top level ModalWindow are serialized and stored. All components of all underlying pages call writeObject().
In Wicket 2.0 this was not the case, in 1.4 trunk it is.
Is this a bug or a feature? Does the button try something like a get/post even if there is no form surrounding it?

Stefan

Re: wicketstuff-push is over, wickestuff-dojo-1.1 is born ???

Posted by Julien Graglia <jg...@netceler.com>.
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 : 
julien@jgr-pc:~/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 : 
julien@jgr-pc:~/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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: wicketstuff-push is over, wickestuff-dojo-1.1 is born ???

Posted by Rodolfo Hansen <rh...@kindleit.net>.
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?


On Thu, Nov 6, 2008 at 4:17 AM, Julien Graglia <jg...@netceler.com>wrote:

> Hi,
> I have read some posts (1) that seems to say that wicketstuff-push will
> be replaced by a new wicketstuff-dojo-1.1 artifact.
>
> The post says that this artifact is in a private SVN repo, but will be
> available "shortly"..
>
> Do you have any informations about that?
>
> I need to do reverse ajax with wicket (cometd...) ie. push event from a
> server thread at the server initiative. It works with an old (rev 4245)
> version  of wicketstuff-push. The trunk seems "corrupted" : a "dojo"
> folder is missing..
>
>
>
> 1 : http://www.nabble.com/New-wicketstuff-dojo-project-td19070145.html
> --
> Julien Graglia
> NetCeler
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: wicketstuff-push is over, wickestuff-dojo-1.1 is born ???

Posted by Stefan Fußenegger <st...@gmx.at>.
see
http://www.nabble.com/Dojo-1.1-integration-available-from-wicketstuff-to20625220.html


Michael Sparer wrote:
> 
> Hi Julien, 
> 
> we're doing our last tests today and tomorrow and will put
> wicketstuff-dojo-1.1 into production by Monday. If no issues arise, we'll
> share it as a wicketstuff project next week. Please note that so far, we
> only ported some components to 1.1. (includes wiper, slider, drag and drop
> and cometd). We're also making extensive use of cometd, which is quite a
> bit better than in dojo 0.4 by the way, and it is also included in the
> wicketstuff-dojo-1.1 project then. Then it's your turn to give
> recommendations, improvements and, most important, help to get the same
> functionality working for 1.1.
> 
> as for the corrupted push project: rodolfo made some changes, so I don't
> know what's going on there. A version of wicketstuff-push before rodolfo
> started with the makeover is available as a branch. Just check out
> wicketstuff's branches, if you can't wait till next week.
> 
> regards,
> Michael
> 
> 
> julien Graglia wrote:
>> 
>> Hi,
>> I have read some posts (1) that seems to say that wicketstuff-push will
>> be replaced by a new wicketstuff-dojo-1.1 artifact.
>> 
>> The post says that this artifact is in a private SVN repo, but will be
>> available "shortly"..
>> 
>> Do you have any informations about that?
>> 
>> I need to do reverse ajax with wicket (cometd...) ie. push event from a
>> server thread at the server initiative. It works with an old (rev 4245)
>> version  of wicketstuff-push. The trunk seems "corrupted" : a "dojo"
>> folder is missing..
>> 
>> 
>> 
>> 1 : http://www.nabble.com/New-wicketstuff-dojo-project-td19070145.html
>> -- 
>> Julien Graglia
>> NetCeler
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>> 
>> 
>> 
> 
> 


-----
-------
Stefan Fußenegger
http://talk-on-tech.blogspot.com // looking for a nicer domain ;)
-- 
View this message in context: http://www.nabble.com/wicketstuff-push-is-over%2C-wickestuff-dojo-1.1-is-born-----tp20356751p20625246.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: wicketstuff-push is over, wickestuff-dojo-1.1 is born ???

Posted by Michael Sparer <mi...@gmx.at>.
Hi Julien, 

we're doing our last tests today and tomorrow and will put
wicketstuff-dojo-1.1 into production by Monday. If no issues arise, we'll
share it as a wicketstuff project next week. Please note that so far, we
only ported some components to 1.1. (includes wiper, slider, drag and drop
and cometd). We're also making extensive use of cometd, which is quite a bit
better than in dojo 0.4 by the way, and it is also included in the
wicketstuff-dojo-1.1 project then. Then it's your turn to give
recommendations, improvements and, most important, help to get the same
functionality working for 1.1.

as for the corrupted push project: rodolfo made some changes, so I don't
know what's going on there. A version of wicketstuff-push before rodolfo
started with the makeover is available as a branch. Just check out
wicketstuff's branches, if you can't wait till next week.

regards,
Michael


julien Graglia wrote:
> 
> Hi,
> I have read some posts (1) that seems to say that wicketstuff-push will
> be replaced by a new wicketstuff-dojo-1.1 artifact.
> 
> The post says that this artifact is in a private SVN repo, but will be
> available "shortly"..
> 
> Do you have any informations about that?
> 
> I need to do reverse ajax with wicket (cometd...) ie. push event from a
> server thread at the server initiative. It works with an old (rev 4245)
> version  of wicketstuff-push. The trunk seems "corrupted" : a "dojo"
> folder is missing..
> 
> 
> 
> 1 : http://www.nabble.com/New-wicketstuff-dojo-project-td19070145.html
> -- 
> Julien Graglia
> NetCeler
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
> 
> 
> 


-----
Michael Sparer
http://talk-on-tech.blogspot.com
-- 
View this message in context: http://www.nabble.com/wicketstuff-push-is-over%2C-wickestuff-dojo-1.1-is-born-----tp20356751p20357888.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org