[Wicket-user] Matching default locale to browser's preferred locale
I can't seem to find any info on this, and I can't recall either how this is supposed to work. I want the locale of my app to match the client browser's default locale (unless changed explicitly, of course). What do I need to do to achieve this? Thanks! - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Matching default locale to browser's preferred locale
that should happen automatically already. johan On 3/20/07, David Leangen [EMAIL PROTECTED] wrote: I can't seem to find any info on this, and I can't recall either how this is supposed to work. I want the locale of my app to match the client browser's default locale (unless changed explicitly, of course). What do I need to do to achieve this? Thanks! - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Serveur pushing implementation
Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668) * The second one using cometd(www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)
Thanks again for all these answers. I just don't get right the last one : They are also good for when you work with value objects ('thin' representations of the your domain objects). Could you be more explicit please ? Thanks again ZedroS On 3/17/07, Eelco Hillenius [EMAIL PROTECTED] wrote: They are also good for when you work with value objects ('thin' representations of the your domain objects). Eelco On 3/17/07, Erik van Oosten [EMAIL PROTECTED] wrote: Still, if you know what you are doing non-detachable models may be appropriate. For example, I have used them for some slow-to-get database query results. But I also wrote my own custom cached page invalidator to make sure these results do not stay around for too long. Regards, Erik. Jonathan Locke wrote: Non-detachable models probably are not the best way to work with a database. And since they can't be detached, your whole model stays in the session the whole time, while the detachable ones shrink to a few bytes (object header + id + transient slot) when they are detached by Wicket after each request. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
is the second one really push? or push by polling? I am currently checking out the NIO support of tomcat 6. I hope in the coming weeks to have an impl that is really push (so there is really a nio socket connection from server to client all the time) johan On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 ) * The second one using cometd(www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
Korbinian Bachl a écrit : Hi, i find it great that you put it to wicket-stuff! However im sorry that i havent understood what this is good for - can you please give me some usage example? I mean what is the usecase of a bus-simulation? Regards, Korbinian Hi I will try to found out simple examples : Imagine you make a instant messanging application with wicket. When somebody will connect to the application, you want to be notified in client side. Pushing can send an event to the client side to update the list of connecting people. Another exemple. In a shared crud application if you (person1) are working on an item (client side), you want to be notified if somebody else (person2) has modified the same item as you. So when person2 save his item, person1 will be notified that the item has changed and can propose a merge between what person1 is doing and what person2 has saved Hope what I said help you to understand ;) -- Vincent Demay http://www.demay-fr.net/blog -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Vincent Demay Gesendet: Dienstag, 20. März 2007 10:13 An: wicket-user@lists.sourceforge.net Betreff: [Wicket-user] Serveur pushing implementation Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28ak a-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicke t--tf3354017.html#a9327668) * The second one using cometd(www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/ branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/ branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog -- --- 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.phpp=sourceforge CID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] palette problem
I've been experiencing a problem with the Palette component. User choices are always returned as n times the first item from options, unless the ChoiceRenderer is explicitely constructed with an idExpression. For example the following code: //class Input implements Serializable, it has two members: private int id; private String display; ArrayListInput inputList = new ArrayListInput(); inputList.add(new Input(1, een)); inputList.add(new Input(2, twee)); IChoiceRenderer renderer = new ChoiceRenderer(display); Palette choose = new Palette(id, new Model(new ArrayListString()), new Model(inputList), renderer,20, false); Produces the following output when combined with echoing user choices (choose.getUnselectedChoices() and choose.getSelectedChoices()) : *user selection***selected***unselected* * * * een, twee * *een * een * * *twee * een * * *een, twee * een, een* * Meaning that indexing by index does not work with palette? -- Ivana Cace Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Matching default locale to browser's preferred locale
i don't see a getDefaultLocale on ApplicationSettings (which version do you use of wicket?) But setting a (default) locale like getSession().setLocale() then you will override the user locale with something that the server specifies. But the question is what doesn't work? What do you do with getSession().getLocale() (which should be what the browser tells us) johan On 3/20/07, David Leangen [EMAIL PROTECTED] wrote: Yes, you're right. Our problem occurs when we try to do some locale-related stuff, i.e.: Locale defaultLocale = Application.get().getApplicationSettings().getDefaultLocale(); getSession().setLocale(); We are not getting the correct result. So, either this is not the right way to get the locale, or there's some kind of timing issue, here... We've tried getSession().getLocale(), too, but that didn't work, either. Cheers, Dave On Tue, 2007-03-20 at 09:26 +0100, Johan Compagner wrote: that should happen automatically already. johan On 3/20/07, David Leangen [EMAIL PROTECTED] wrote: I can't seem to find any info on this, and I can't recall either how this is supposed to work. I want the locale of my app to match the client browser's default locale (unless changed explicitly, of course). What do I need to do to achieve this? Thanks! - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
tomcat uses this: http://tomcat.apache.org/tomcat-6.0-doc/aio.html so for tomcat to work i need to create a special filter (or servlet) that maps a push connection How does jetty work? When does jetty know that this is a nio/cometd connection? johan On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Johan Compagner a écrit : is the second one really push? or push by polling? The first one is pushing simulated by polling ;) (and timer) The second one is real pushing with cometd (using jetty6 continuation : no locked thread on serveur side and keep open http connection). I am currently checking out the NIO support of tomcat 6. I've never test with tomcat for the moment, but I saw some articles about that... need to check -- Vincent Demay http://www.demay-fr.net/blog I hope in the coming weeks to have an impl that is really push (so there is really a nio socket connection from server to client all the time) johan On 3/20/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 ) * The second one using cometd(www.cometd.org http://www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Matching default locale to browser's preferred locale
Thanks for your help! You helped us locate the source of the problem, though it's totally unrelated to wicket. We misunderstood how locales work. We were testing for: locale == Locale.JAPANESE When we should have been testing for: locale.getLanguage().equals( ja ) Cheers, Dave On Tue, 2007-03-20 at 12:56 +0100, Johan Compagner wrote: i don't see a getDefaultLocale on ApplicationSettings (which version do you use of wicket?) But setting a (default) locale like getSession().setLocale() then you will override the user locale with something that the server specifies. But the question is what doesn't work? What do you do with getSession().getLocale() (which should be what the browser tells us) johan On 3/20/07, David Leangen [EMAIL PROTECTED] wrote: Yes, you're right. Our problem occurs when we try to do some locale-related stuff, i.e.: Locale defaultLocale = Application.get().getApplicationSettings().getDefaultLocale(); getSession().setLocale(); We are not getting the correct result. So, either this is not the right way to get the locale, or there's some kind of timing issue, here... We've tried getSession().getLocale(), too, but that didn't work, either. Cheers, Dave On Tue, 2007-03-20 at 09:26 +0100, Johan Compagner wrote: that should happen automatically already. johan On 3/20/07, David Leangen [EMAIL PROTECTED] wrote: I can't seem to find any info on this, and I can't recall either how this is supposed to work. I want the locale of my app to match the client browser's default locale (unless changed explicitly, of course). What do I need to do to achieve this? Thanks! - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
Johan Compagner a écrit : tomcat uses this: http://tomcat.apache.org/tomcat-6.0-doc/aio.html so for tomcat to work i need to create a special filter (or servlet) that maps a push connection How does jetty work? When does jetty know that this is a nio/cometd connection? It is exactly the same think in jetty, you have to define a servlet used by push connection : servlet servlet-namecometd/servlet-name servlet-classorg.mortbay.cometd.CometdServlet/servlet-class init-param param-nametimeout/param-name param-value15000/param-value /init-param init-param param-namemulti-timeout/param-name param-value1500/param-value /init-param init-param param-nameverbose/param-name param-valuefalse/param-value /init-param load-on-startup1/load-on-startup /servlet I just gave a quick look on http://tomcat.apache.org/tomcat-6.0-doc/aio.html but it seems to be the same way to do -- Vincent johan On 3/20/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Johan Compagner a écrit : is the second one really push? or push by polling? The first one is pushing simulated by polling ;) (and timer) The second one is real pushing with cometd (using jetty6 continuation : no locked thread on serveur side and keep open http connection). I am currently checking out the NIO support of tomcat 6. I've never test with tomcat for the moment, but I saw some articles about that... need to check -- Vincent Demay http://www.demay-fr.net/blog I hope in the coming weeks to have an impl that is really push (so there is really a nio socket connection from server to client all the time) johan On 3/20/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668) * The second one using cometd( www.cometd.org http://www.cometd.org http://www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples
[Wicket-user] Working with Tree - onClick() different frame target?
Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Row highlighting on IE
Hi, I need to know how to make the highlighting in IE, because it don't support the tr:hover. I found something about a patch, can you explain me a bit more about this Thanks -- View this message in context: http://www.nabble.com/Row-highlighting-on-IE-tf3433736.html#a9572576 Sent from the Wicket - User mailing list archive at Nabble.com. - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Row highlighting on IE
I haven't tried it, but have you tried tr onmouseover=... onmouseout=...? On 3/20/07, eznibe [EMAIL PROTECTED] wrote: Hi, I need to know how to make the highlighting in IE, because it don't support the tr:hover. I found something about a patch, can you explain me a bit more about this Thanks -- View this message in context: http://www.nabble.com/Row-highlighting-on-IE-tf3433736.html#a9572576 Sent from the Wicket - User mailing list archive at Nabble.com. - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Nick Heudecker Professional Wicket Training Consulting http://www.systemmobile.com Eventful - Intelligent Event Management http://www.eventfulhq.com - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Working with Tree - onClick() different frame target?
Maybe this can help you. At least, I hope... http://cwiki.apache.org/WICKET/using-frames.html Marc On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Working with Tree - onClick() different frame target?
Hello Marc, thanks for the quick response. I've read that and also scanned the wicket examples for frames where a base frame class is used which holds the target frames... But i was wondering if there is a easier way to solve this since i do not need to refresh the top page which holds the two frames SelectionFrame and Main. What about a Link which has an Attribute a target=Main ... Is there a way to change the target of the internal AJAX link? Thanks in advance. Michel Marc-Andre Houle schrieb: Maybe this can help you. At least, I hope... http://cwiki.apache.org/WICKET/using-frames.html Marc On 3/20/07, *Michel Wichers* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Best regards / Mit freundlichen Grüßen Michel Wichers _ Ponton Consulting GmbH voice: +49.40.69213-340 http://www.ponton-consulting.de/ fax:+49.40.69213-355 Dorotheenstrasse 60mobile: +49.175.566 9970 D-22301 Hamburgmailto:[EMAIL PROTECTED] _ HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz Ponton Consulting is a Member of C1 Group (www.c1-group.com) _ - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Working with Tree - onClick() different frame target?
Now I understand what you mean. Not sure it is possible, maybe someone with more frame and PageMap experience will be able to answer you In our application, instead of using real frame, we use Dojo which let you display a page with resizable panel that look like frame. So we display one page containing multiple dojo panel. Maybe that can make your life easier? Marc On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the quick response. I've read that and also scanned the wicket examples for frames where a base frame class is used which holds the target frames... But i was wondering if there is a easier way to solve this since i do not need to refresh the top page which holds the two frames SelectionFrame and Main. What about a Link which has an Attribute a target=Main ... Is there a way to change the target of the internal AJAX link? Thanks in advance. Michel Marc-Andre Houle schrieb: Maybe this can help you. At least, I hope... http://cwiki.apache.org/WICKET/using-frames.html Marc On 3/20/07, *Michel Wichers* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Best regards / Mit freundlichen Grüßen Michel Wichers _ Ponton Consulting GmbH voice: +49.40.69213-340 http://www.ponton-consulting.de/ fax:+49.40.69213-355 Dorotheenstrasse 60mobile: +49.175.566 9970 D-22301 Hamburgmailto:[EMAIL PROTECTED] _ HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz Ponton Consulting is a Member of C1 Group (www.c1-group.com) _ - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
WDYT?, Any comments, feelings? This looks like really exciting work. I can't wait to try it out. I took a look at the code and you've done a really nice job. One question, is it possible to push rendered components instead of pinging those components on the client side to call back? - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)
On 3/20/07, ZedroS Schwart [EMAIL PROTECTED] wrote: Thanks again for all these answers. I just don't get right the last one : They are also good for when you work with value objects ('thin' representations of the your domain objects). Could you be more explicit please ? http://wiki.java.net/bin/view/Javapedia/ValueObject I guess that's still a bit of a broad definition as well. What I meant it was that if you have domain objects mapped by e.g. Hibernate for instance a class like: class School implements Serializable { long id; String name; Address address; Region region; List memberShips; } some people say you shouldn't use these objects directly in forms, as you can run into all kinds of problems like not having the (Hibernate) session available at the right time and if you defined transactions over requests (e.g. by using a filter, which for the record I'm personally not crazy about) you can end up saving more than you should. A solution is to use objects that map certain properties of these domain for specific cases. For instance, if I wanted to edit the address of a school in a form, I could create an object like this: class SchoolVO implements Serializable { final long schoolId; // not editable String addressLine; String postalCode; String regionCode; } and then in onSubmit School school = schoolService.load(schoolVO.getSchoolId()); schoolVO.merge(school); schoolService.save(school); Personally, I'm not a fan of this pattern as it results in code duplication and can be a bit of a pain to maintain when the domain model changes. Though *if* you use per request transactions it's probably sensible to use it as you'll avoid potentially hard to track down problems and inefficiencies. My 2c, Eelco - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
Can't the Tomcat support be merged into the same project? Eelco On 3/20/07, Johan Compagner [EMAIL PROTECTED] wrote: tomcat uses this: http://tomcat.apache.org/tomcat-6.0-doc/aio.html so for tomcat to work i need to create a special filter (or servlet) that maps a push connection How does jetty work? When does jetty know that this is a nio/cometd connection? johan On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Johan Compagner a écrit : is the second one really push? or push by polling? The first one is pushing simulated by polling ;) (and timer) The second one is real pushing with cometd (using jetty6 continuation : no locked thread on serveur side and keep open http connection). I am currently checking out the NIO support of tomcat 6. I've never test with tomcat for the moment, but I saw some articles about that... need to check -- Vincent Demay http://www.demay-fr.net/blog I hope in the coming weeks to have an impl that is really push (so there is really a nio socket connection from server to client all the time) johan On 3/20/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668) * The second one using cometd( www.cometd.org http://www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join
Re: [Wicket-user] Working with Tree - onClick() different frame target?
On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel If you are doing this with ajax, you probably don't want to call setResponsePage. You should wrap your target frame with a WebMarkupContainer or Panel and add that to the AjaxRequestTarget. Excuse the formatting please: @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { //IConfigurationPage userObj = (IConfigurationPage) // ((DefaultMutableTreeNode) node).getUserObject(); // setResponsePage(new ConfigMainPage(userObj)); WebMarkupContainer frame = new WebMarkupContainer(frameId); frame.add(new AttributeModifier(src, urlFor(PageMap.forName(FramePageMap), ConfigMainPage.class, /* PageParameters if you have them */ null)); target.addComponent(frame); } ... Then just make sure one of your frames has wicket:id=frameId. Let me know if you need more help. best, jim - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Matching default locale to browser's preferred locale
Yes, you're right. Our problem occurs when we try to do some locale-related stuff, i.e.: Locale defaultLocale = Application.get().getApplicationSettings().getDefaultLocale(); getSession().setLocale(); ApplicationSettings#defaultLocale was removed a while ago as the default implementation of returning Locale.getDefault() was very naive (you deploy on another server, and you could suddenly have a locale change) and also because that method didn't solve anything in the first place. I know it's not related to your problem, but the 1.3 way of fixing a locale is to just create a custom Session object and set the locale in the constructor. Eelco - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Working with Tree - onClick() different frame target?
In your case: don't use 'internal' links but use bookmarkable links and call setPageMap(PageMap.forName(Main)) on them. Also, if your tree is not too large, consider just using some javascript based tree you your selection frame doesn't have to make round trips. Eelco On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
Eelco Hillenius a écrit : Can't the Tomcat support be merged into the same project? I need to check for that and check tomcat behavior is the same as jetty but I think it should -- Vincent Eelco On 3/20/07, Johan Compagner [EMAIL PROTECTED] wrote: tomcat uses this: http://tomcat.apache.org/tomcat-6.0-doc/aio.html so for tomcat to work i need to create a special filter (or servlet) that maps a push connection How does jetty work? When does jetty know that this is a nio/cometd connection? johan On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Johan Compagner a écrit : is the second one really push? or push by polling? The first one is pushing simulated by polling ;) (and timer) The second one is real pushing with cometd (using jetty6 continuation : no locked thread on serveur side and keep open http connection). I am currently checking out the NIO support of tomcat 6. I've never test with tomcat for the moment, but I saw some articles about that... need to check -- Vincent Demay http://www.demay-fr.net/blog I hope in the coming weeks to have an impl that is really push (so there is really a nio socket connection from server to client all the time) johan On 3/20/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668) * The second one using cometd( www.cometd.org http://www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list
Re: [Wicket-user] Serveur pushing implementation
James McLaughlin a écrit : WDYT?, Any comments, feelings? This looks like really exciting work. I can't wait to try it out. I took a look at the code and you've done a really nice job. One question, is it possible to push rendered components instead of pinging those components on the client side to call back? The problem comes from cometd bus which is design to transport json and not xml. I was thinking of something which is able to serialize a component rendered as String and put all in a json object in order to avoid this second useless callback. but it need some additionnal work ;) -- Vincent - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket workflow and rules
Sounds to me like you should put a BPM tool central in your architecture. I've used jBPM and (a little bit of) Wicket in the past myself, and know Matej has for his closed source project. I like jBPM for it being a Java-centric tool, that's easy to use, extend and test. Also take a look at this project: http://www.kgalligan.com/wicketbpm-architecture. I haven't used it, and I have no idea how well it is maintained, but it looks like it might be useful for your purposes. On that note, I'd love to see a serious Wicket/ BPM integration project someday. Seam advertises such integration as one of it's main selling points, but I can't help of thinking about how darn easy it would be to build in with Wicket everytime I read about it. Eelco On 3/19/07, Gennadiy Vasilevskiy [EMAIL PROTECTED] wrote: Hello All, Per my requirements, the app that I need to build has to have different flows per client as well as different look and feel, but just a single source. Still there is a problem, since just a client would not give me 100% knowledge, there might be rules per client; such as if IF client makes 1 show extra staff and go to page 1, if more then 1000 go to page 2. THe business is claim processing. In other words I probably need the integration with the rule engine and possibly workflow engine. Has anybody done it using wicket? Any approach to suggest? ANy examples? THank you Genandiy Watch free concerts with Pink, Rod Stewart, Oasis and more. Visit MSN Presents today. - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Eelco Hillenius a écrit : Can't the Tomcat support be merged into the same project? I need to check for that and check tomcat behavior is the same as jetty but I think it should Cool. My note was more directed to Johan actually :) But you two might take a look at what the common abstractions for such support would be. Eelco - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] palette problem
go ahead and open a bug. i dont know if i ever tested indexing by int because i dont think anyone would use it that much. its too bad that int ended up in the ichoicerenderer interface. so it might very well be a bug in the pallette. -igor On 3/20/07, Ivana Cace [EMAIL PROTECTED] wrote: I've been experiencing a problem with the Palette component. User choices are always returned as n times the first item from options, unless the ChoiceRenderer is explicitely constructed with an idExpression. For example the following code: //class Input implements Serializable, it has two members: private int id; private String display; ArrayListInput inputList = new ArrayListInput(); inputList.add(new Input(1, een)); inputList.add(new Input(2, twee)); IChoiceRenderer renderer = new ChoiceRenderer(display); Palette choose = new Palette(id, new Model(new ArrayListString()), new Model(inputList), renderer,20, false); Produces the following output when combined with echoing user choices (choose.getUnselectedChoices() and choose.getSelectedChoices()) : *user selection***selected***unselected* * * * een, twee * *een * een * * *twee * een * * *een, twee * een, een* * Meaning that indexing by index does not work with palette? -- Ivana Cace Func. Internet Integration W http://www.func.nl T +31 20 423 F +31 20 4223500 - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
This might be of some help and it might not. I use bi-directional json (but not cometd) in one of the portal apps I wrote (unfortunately not in Wicket). On the server side, I use json-lib http://json-lib.sourceforge.net/ and on the client side I use jsonStringify.js, http://www.thomasfrank.se/json_stringify_revisited.html and jQuery, http://jquery.com. The json-lib can actually jsonify a java object quite nicely, just watch out for extensive object graphs as they can bring the app to a screeching halt. Regards, -scott -Original Message- From: [EMAIL PROTECTED] [mailto:wicket-user- [EMAIL PROTECTED] On Behalf Of Vincent Demay Sent: Tuesday, March 20, 2007 11:54 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Serveur pushing implementation James McLaughlin a écrit : WDYT?, Any comments, feelings? This looks like really exciting work. I can't wait to try it out. I took a look at the code and you've done a really nice job. One question, is it possible to push rendered components instead of pinging those components on the client side to call back? The problem comes from cometd bus which is design to transport json and not xml. I was thinking of something which is able to serialize a component rendered as String and put all in a json object in order to avoid this second useless callback. but it need some additionnal work ;) -- Vincent - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
this is a great start. my idea vision of this implementation is something that doesnt depend on dojo and something that has a very similar requesttarget to ajaxrequesttarget that can transfer value pairs _or_ markup. but this is definetely a great start. -igor On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 ) * The second one using cometd(www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
The problem comes from cometd bus which is design to transport json and not xml. I was thinking of something which is able to serialize a component rendered as String and put all in a json object in order to avoid this second useless callback. but it need some additionnal work ;) -- Vincent I knew you had a good reason for it. Good stuff! I'm not sure if it is enough to just serialize a component as a string. Components are a mix of markup and javascript, and wicket-ajax has a lot of infrastructure for parsing this out and then rendering them in order. Pinging is the best solution for now. - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)
That's was a really instructive post, thanks Eelco. In fact I'm actually struggling with this kind of issue. I've model objects and then on my presentation layer the data are quite often a bit different, and thus I wonder which way is the best. Igor had spoken about form beans, but then I've to map them somewhere with my actual domain objects, which can be quite annoying. Merge and VO object may be a good way to avoid some part of this pain. However, you said you weren't a fan of this pattern, could you please explain which approach you use ? I would really like it because I find it really important for ease of development and maintainability. And up to now I've found a way which fully pleases me. Thanks in advance ZedroS - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
yes i want to have it simple and build in in wicket-ajax.js if possible (at least support for it it could be and extra small js: wicket-cometd.js) johan On 3/20/07, Igor Vaynberg [EMAIL PROTECTED] wrote: this is a great start. my idea vision of this implementation is something that doesnt depend on dojo and something that has a very similar requesttarget to ajaxrequesttarget that can transfer value pairs _or_ markup. but this is definetely a great start. -igor On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 ) * The second one using cometd( www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Hibernate/Spring and Wicket architecture request for validation (was Wicket's questions)
That's was a really instructive post, thanks Eelco. In fact I'm actually struggling with this kind of issue. I've model objects and then on my presentation layer the data are quite often a bit different, and thus I wonder which way is the best. Igor had spoken about form beans, I think he meant the same thing (value objects). However, you said you weren't a fan of this pattern, could you please explain which approach you use ? I would really like it because I find it really important for ease of development and maintainability. And up to now I've found a way which fully pleases me. Tbh, I use it mixed, also because I'm not the only guy in the team (Igor and I actually work on the same project). My favorite way is to use the domain objects directly, but let updates (to the database) always go through services/ daos and *not* have transactions per request. I'll still use value objects every now and then because sometimes it's just easier to work with a 'flat' object that is focussed on a particular case. Eelco - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
Johan Compagner a écrit : yes i want to have it simple and build in in wicket-ajax.js if possible (at least support for it it could be and extra small js: wicket-cometd.js) well, I understand what you mean, but comted (www.cometd.com) is a dojo fundation subproject. So if we want to write our own client-side library. first we have to duplicate Dojo cometd code( http://archive.dojotoolkit.org/nightly/src/io/cometd.js ) which can be done with some difficulties because it depends on a lot of other dojo libs. But the worst problem comes form the protocol. It is a dojo fundation subproject so if protocol change we need to maintain our cometd client-side implementation. It seems to be an heavy work to do! On the other hand I well understand you prefer keeping control of code you integrate in Wicket (and pushing is an interresting stuff for wicket). So maybe we need to thinking more about that and on impact on the future. WDYT? -- Vincent johan On 3/20/07, * Igor Vaynberg* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: this is a great start. my idea vision of this implementation is something that doesnt depend on dojo and something that has a very similar requesttarget to ajaxrequesttarget that can transfer value pairs _or_ markup. but this is definetely a great start. -igor On 3/20/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668) * The second one using cometd( www.cometd.org http://www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 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
Re: [Wicket-user] Working with Tree - onClick() different frame target?
Hello Marc, thanks for the Dojo information i will check that out for our requirements. Have you used any Dojo-Wicket framework stuff for this? Thanks! Michel Zitat von Marc-Andre Houle [EMAIL PROTECTED]: Now I understand what you mean. Not sure it is possible, maybe someone with more frame and PageMap experience will be able to answer you In our application, instead of using real frame, we use Dojo which let you display a page with resizable panel that look like frame. So we display one page containing multiple dojo panel. Maybe that can make your life easier? Marc On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the quick response. I've read that and also scanned the wicket examples for frames where a base frame class is used which holds the target frames... But i was wondering if there is a easier way to solve this since i do not need to refresh the top page which holds the two frames SelectionFrame and Main. What about a Link which has an Attribute a target=Main ... Is there a way to change the target of the internal AJAX link? Thanks in advance. Michel Marc-Andre Houle schrieb: Maybe this can help you. At least, I hope... http://cwiki.apache.org/WICKET/using-frames.html Marc On 3/20/07, *Michel Wichers* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Best regards / Mit freundlichen Grüßen Michel Wichers _ Ponton Consulting GmbH voice: +49.40.69213-340 http://www.ponton-consulting.de/ fax:+49.40.69213-355 Dorotheenstrasse 60mobile: +49.175.566 9970 D-22301 Hamburgmailto:[EMAIL PROTECTED] _ HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz Ponton Consulting is a Member of C1 Group (www.c1-group.com) _ - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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
Re: [Wicket-user] Working with Tree - onClick() different frame target?
Nope, we started before the wicket-stuf/dojo project So we ad the JS and make the stuff directly... (In fact, it is just making div look correctly for Dojo) On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the Dojo information i will check that out for our requirements. Have you used any Dojo-Wicket framework stuff for this? Thanks! Michel Zitat von Marc-Andre Houle [EMAIL PROTECTED]: Now I understand what you mean. Not sure it is possible, maybe someone with more frame and PageMap experience will be able to answer you In our application, instead of using real frame, we use Dojo which let you display a page with resizable panel that look like frame. So we display one page containing multiple dojo panel. Maybe that can make your life easier? Marc On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the quick response. I've read that and also scanned the wicket examples for frames where a base frame class is used which holds the target frames... But i was wondering if there is a easier way to solve this since i do not need to refresh the top page which holds the two frames SelectionFrame and Main. What about a Link which has an Attribute a target=Main ... Is there a way to change the target of the internal AJAX link? Thanks in advance. Michel Marc-Andre Houle schrieb: Maybe this can help you. At least, I hope... http://cwiki.apache.org/WICKET/using-frames.html Marc On 3/20/07, *Michel Wichers* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Best regards / Mit freundlichen Grüßen Michel Wichers _ Ponton Consulting GmbH voice: +49.40.69213-340 http://www.ponton-consulting.de/ fax:+49.40.69213-355 Dorotheenstrasse 60mobile: +49.175.566 9970 D-22301 Hamburgmailto:[EMAIL PROTECTED] _ HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz Ponton Consulting is a Member of C1 Group (www.c1-group.com) _ - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Working with Tree - onClick() different frame target?
You got an example here even if the code is missing, maybe there is a way of using it... http://www.demay-fr.net:8080/WCD13/app/?wicket:bookmarkablePage=wicket-0%3Awicket.contrib.dojo.examples.SplitContainerSample Marc On 3/20/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Nope, we started before the wicket-stuf/dojo project So we ad the JS and make the stuff directly... (In fact, it is just making div look correctly for Dojo) On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the Dojo information i will check that out for our requirements. Have you used any Dojo-Wicket framework stuff for this? Thanks! Michel Zitat von Marc-Andre Houle [EMAIL PROTECTED]: Now I understand what you mean. Not sure it is possible, maybe someone with more frame and PageMap experience will be able to answer you In our application, instead of using real frame, we use Dojo which let you display a page with resizable panel that look like frame. So we display one page containing multiple dojo panel. Maybe that can make your life easier? Marc On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the quick response. I've read that and also scanned the wicket examples for frames where a base frame class is used which holds the target frames... But i was wondering if there is a easier way to solve this since i do not need to refresh the top page which holds the two frames SelectionFrame and Main. What about a Link which has an Attribute a target=Main ... Is there a way to change the target of the internal AJAX link? Thanks in advance. Michel Marc-Andre Houle schrieb: Maybe this can help you. At least, I hope... http://cwiki.apache.org/WICKET/using-frames.html Marc On 3/20/07, *Michel Wichers* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Best regards / Mit freundlichen Grüßen Michel Wichers _ Ponton Consulting GmbH voice: +49.40.69213-340 http://www.ponton-consulting.de/ fax:+49.40.69213-355 Dorotheenstrasse 60mobile: +49.175.566 9970 D-22301 Hamburgmailto:[EMAIL PROTECTED] _ HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz Ponton Consulting is a Member of C1 Group ( www.c1-group.com) _ - Take Surveys. Earn Cash. Influence the Future of IT
Re: [Wicket-user] Working with Tree - onClick() different frame target?
Thanks Marc! I will check that tomorrow and call it a day ;-) Thanks for all your Help to Eelco jim as well - will check that out. cheers! Michel Zitat von Marc-Andre Houle [EMAIL PROTECTED]: You got an example here even if the code is missing, maybe there is a way of using it... http://www.demay-fr.net:8080/WCD13/app/?wicket:bookmarkablePage=wicket-0%3Awicket.contrib.dojo.examples.SplitContainerSample Marc On 3/20/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Nope, we started before the wicket-stuf/dojo project So we ad the JS and make the stuff directly... (In fact, it is just making div look correctly for Dojo) On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the Dojo information i will check that out for our requirements. Have you used any Dojo-Wicket framework stuff for this? Thanks! Michel Zitat von Marc-Andre Houle [EMAIL PROTECTED]: Now I understand what you mean. Not sure it is possible, maybe someone with more frame and PageMap experience will be able to answer you In our application, instead of using real frame, we use Dojo which let you display a page with resizable panel that look like frame. So we display one page containing multiple dojo panel. Maybe that can make your life easier? Marc On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hello Marc, thanks for the quick response. I've read that and also scanned the wicket examples for frames where a base frame class is used which holds the target frames... But i was wondering if there is a easier way to solve this since i do not need to refresh the top page which holds the two frames SelectionFrame and Main. What about a Link which has an Attribute a target=Main ... Is there a way to change the target of the internal AJAX link? Thanks in advance. Michel Marc-Andre Houle schrieb: Maybe this can help you. At least, I hope... http://cwiki.apache.org/WICKET/using-frames.html Marc On 3/20/07, *Michel Wichers* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto: Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Best regards / Mit freundlichen Grüßen Michel Wichers _ Ponton Consulting GmbH voice: +49.40.69213-340 http://www.ponton-consulting.de/ fax:+49.40.69213-355 Dorotheenstrasse 60mobile: +49.175.566 9970 D-22301 Hamburgmailto:[EMAIL PROTECTED] _ HRB 81480, AG Hamburg, Managing Director: Dr. Michael Merz Ponton Consulting is a Member of C1 Group ( www.c1-group.com)
Re: [Wicket-user] Working with Tree - onClick() different frame target?
but why use ajax if you are using frames? all you have to do is make those links bookmarkable and append a target attribute to them via an attribute modifier -igor On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Working with Tree - onClick() different frame target?
Hi Igor, you're right - we really do not need any AJAX stuff here - i just used the extension tree and the ajax stuff is there out of the box (if not explicitely disabled). As you can see I'm still in a learning phase ;-) I will switch that tree to use regular links instead and use bookmarkable links + attribute modifier for target! Thanks for all your help guys, i really appreciate that! Cheers, Michel Zitat von Igor Vaynberg [EMAIL PROTECTED]: but why use ajax if you are using frames? all you have to do is make those links bookmarkable and append a target attribute to them via an attribute modifier -igor On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Working with Tree - onClick() different frame target?
The only reason in your case where it might make sense to use Ajax is when you're tree is really large and you want to load parts of it lazily. If that's not the case, don't use Ajax. Eelco On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi Igor, you're right - we really do not need any AJAX stuff here - i just used the extension tree and the ajax stuff is there out of the box (if not explicitely disabled). As you can see I'm still in a learning phase ;-) I will switch that tree to use regular links instead and use bookmarkable links + attribute modifier for target! Thanks for all your help guys, i really appreciate that! Cheers, Michel Zitat von Igor Vaynberg [EMAIL PROTECTED]: but why use ajax if you are using frames? all you have to do is make those links bookmarkable and append a target attribute to them via an attribute modifier -igor On 3/20/07, Michel Wichers [EMAIL PROTECTED] wrote: Hi guys, I'm currently developing a page with two frames. The left frame SelectionFrame contains an extensions Tree and the right frame Main contains any Contents. What i now want to do is to respond to the Contents Frame by clicking on some special tree nodes. e.g.: ... @Override protected void onNodeLinkClicked(AjaxRequestTarget target, TreeNode node) { IConfigurationPage userObj = (IConfigurationPage) ((DefaultMutableTreeNode) node).getUserObject(); setResponsePage(new ConfigMainPage(userObj)); } ... If you know any easy solution it would be great to share that with me. Any help would be appreciated. cheers! Michel - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Variable Interpolation within the HTML
I have a use case where the text of the a page can change depending on the skin that is selected. There is some dynamic text in the original text, such as website name, which also changes depending on skin. However, currently I have added a fixed number of Label objects to deal with the website name, but this doesn't really work because the text of the page might need more instances of the website name. I can't dynamically add more Label objects, so I was wondering how I could do something like Velocity where I can put ${websiteName} in the HTML for a page or panel, set the variable in the page, and have it rendered properly. I saw that Wicket includes MapVariableInterpolator but how do I do it with the HTML for the page? I don't want to specify a filename because the filename is dependent on the style/skin. Thanks for any help, Andrew - 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Variable Interpolation within the HTML
On 3/20/07, Andrew Berman [EMAIL PROTECTED] wrote: I have a use case where the text of the a page can change depending on the skin that is selected. There is some dynamic text in the original text, such as website name, which also changes depending on skin. However, currently I have added a fixed number of Label objects to deal with the website name, but this doesn't really work because the text of the page might need more instances of the website name. I can't dynamically add more Label objects, so I was wondering how I could do something like Velocity where I can put ${websiteName} in the HTML for a page or panel, set the variable in the page, and have it rendered properly. I saw that Wicket includes MapVariableInterpolator but how do I do it with the HTML for the page? I don't want to specify a filename because the filename is dependent on the style/skin. wicket-contrib-velocity provides exactly what you want you can get it here with subversion: https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-velocity - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Serveur pushing implementation
first what is so special about that code? What is the protocol you are talking about I haven't really looked at it yet at this time but i will. How i see it if possible is just an open channel and over it flows the wicket ajax stuff (so the xml that wicket ajax can parse) this way if something is triggered on the server the server can push component rerender changes to the clients who are displaying those components. johan On 3/20/07, Vincent Demay [EMAIL PROTECTED] wrote: Johan Compagner a écrit : yes i want to have it simple and build in in wicket-ajax.js if possible (at least support for it it could be and extra small js: wicket-cometd.js) well, I understand what you mean, but comted (www.cometd.com) is a dojo fundation subproject. So if we want to write our own client-side library. first we have to duplicate Dojo cometd code( http://archive.dojotoolkit.org/nightly/src/io/cometd.js ) which can be done with some difficulties because it depends on a lot of other dojo libs. But the worst problem comes form the protocol. It is a dojo fundation subproject so if protocol change we need to maintain our cometd client-side implementation. It seems to be an heavy work to do! On the other hand I well understand you prefer keeping control of code you integrate in Wicket (and pushing is an interresting stuff for wicket). So maybe we need to thinking more about that and on impact on the future. WDYT? -- Vincent johan On 3/20/07, * Igor Vaynberg* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: this is a great start. my idea vision of this implementation is something that doesnt depend on dojo and something that has a very similar requesttarget to ajaxrequesttarget that can transfer value pairs _or_ markup. but this is definetely a great start. -igor On 3/20/07, *Vincent Demay* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi all, I made a new project in wicket-stuff(sourceforge) called wicket-contrib-push. This project allows pushing of events on server side in a simulated bus between server and all client. This pushing has 2 implementations : * The first based on Xavier Hanin work which is based on timerBehavior and simulates a bus with an EventStore (see http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 http://www.nabble.com/server-side-triggered-page-refresh-%28aka-push%29-tf3321420.html#a9234009 and http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 http://www.nabble.com/Pushing-data-to-the-Ajax-client-in-wicket--tf3354017.html#a9327668 ) * The second one using cometd( www.cometd.org http://www.cometd.org) and dependant of wicket-contrib-dojo The way to publish and listen to events is the following (with cometd and timer implementation): //Somewhere I publish a new event. It can be for example in on click of a ajax link or elsewhere : IPushPublisher publisher = new IPushPublisher(aBusChannel); IPushEvent event = new IPushEvent() event.add(akey, myvalue); publisher.publish(event); //My page can be aware of event in aBusChannel : IPushBehavior behavior = new IPushBehavior(aBusChannel){ public abstract void onEvent(String channel, MapString, String datas, IPushTarget target){ //Triggered when event is publish by publisher //IPushTarget has the sapme prototype as AjaxRequestTarget } } WDYT?, Any comments, feelings? PS : sources are available on svn : https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-push-examples -- Vincent Demay http://www.demay-fr.net/blog - 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.phpp=sourceforgeCID=DEVDEV http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Apache Con Amsterdam: wicket presence
So, who'll be in town are there any plans for a get-together other than the conference itself? (Just trying to price a quick trip across wondering when's best...) /Gwyn On 14/03/07, Erik van Oosten [EMAIL PROTECTED] wrote: If you are off into the city, I'll join you. Perhaps I can show you one or two locations as well. Erik. Alexandru Popescu schreef: On 3/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote: That is the idea, or just go and drink ourselves a hangover! As always I am in for this last proposal ;-). -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ -- Download Wicket 1.2.5 now! - http://wicketframework.org - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Apache Con Amsterdam: wicket presence
I'm in town during that week, though I won't be there everyday. But if we have a get together (in a bar or mayb we can find Amsterdam friends with some office space in the city or something) I'll be there! Eelco On 3/20/07, Gwyn Evans [EMAIL PROTECTED] wrote: So, who'll be in town are there any plans for a get-together other than the conference itself? (Just trying to price a quick trip across wondering when's best...) /Gwyn On 14/03/07, Erik van Oosten [EMAIL PROTECTED] wrote: If you are off into the city, I'll join you. Perhaps I can show you one or two locations as well. Erik. Alexandru Popescu schreef: On 3/14/07, Martijn Dashorst [EMAIL PROTECTED] wrote: That is the idea, or just go and drink ourselves a hangover! As always I am in for this last proposal ;-). -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ -- Download Wicket 1.2.5 now! - http://wicketframework.org - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Variable Interpolation within the HTML
Alternatively, you could use post processing filters for that. Can't remember the exact name from the top of my head. Eelco On 3/20/07, James McLaughlin [EMAIL PROTECTED] wrote: On 3/20/07, Andrew Berman [EMAIL PROTECTED] wrote: I have a use case where the text of the a page can change depending on the skin that is selected. There is some dynamic text in the original text, such as website name, which also changes depending on skin. However, currently I have added a fixed number of Label objects to deal with the website name, but this doesn't really work because the text of the page might need more instances of the website name. I can't dynamically add more Label objects, so I was wondering how I could do something like Velocity where I can put ${websiteName} in the HTML for a page or panel, set the variable in the page, and have it rendered properly. I saw that Wicket includes MapVariableInterpolator but how do I do it with the HTML for the page? I don't want to specify a filename because the filename is dependent on the style/skin. wicket-contrib-velocity provides exactly what you want you can get it here with subversion: https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-velocity - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Variable Interpolation within the HTML
Cool, thanks guys, I'll check both options out. On 3/20/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Alternatively, you could use post processing filters for that. Can't remember the exact name from the top of my head. Eelco On 3/20/07, James McLaughlin [EMAIL PROTECTED] wrote: On 3/20/07, Andrew Berman [EMAIL PROTECTED] wrote: I have a use case where the text of the a page can change depending on the skin that is selected. There is some dynamic text in the original text, such as website name, which also changes depending on skin. However, currently I have added a fixed number of Label objects to deal with the website name, but this doesn't really work because the text of the page might need more instances of the website name. I can't dynamically add more Label objects, so I was wondering how I could do something like Velocity where I can put ${websiteName} in the HTML for a page or panel, set the variable in the page, and have it rendered properly. I saw that Wicket includes MapVariableInterpolator but how do I do it with the HTML for the page? I don't want to specify a filename because the filename is dependent on the style/skin. wicket-contrib-velocity provides exactly what you want you can get it here with subversion: https://svn.sourceforge.net/svnroot/wicket-stuff/branches/wicket-1.3/wicket-contrib-velocity - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net 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.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Apologies from an anonymous coward
* Brian Topping: I hope you have the guts to realize what an ass you are making of yourself and stand up and apologize. He won't do so: as a pure coincidence, this guy didn't have the courtesy to even mention his name. I bet that he'll be returning with another nickname soon. I'm always wary of anonymous posts. -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] form processing - getting dropdown selection back to onSubmit method.
don't understand: look up a localized string with the key nullValid (rather than null) to represent the null option. - can you elaborate a bit please. need to know what a localised string is and what is its key. thank you -B Ryan Holmes wrote: DropDownChoice.setNullValid(true) And remember that for a null valid drop down choice, Wicket will look up a localized string with the key nullValid (rather than null) to represent the null option. Also see the JavaDocs for DropDownChoice and it's superclasses, plus this wiki page: http://cwiki.apache.org/WICKET/dropdownchoice- examples.html -Ryan On Mar 16, 2007, at 1:55 PM, GS-ikiini wrote: hey, is there way to get the select one option to remain in the selection list after the user has made a selection? -B igor.vaynberg wrote: the id of dropdowns has nothing to do with their model. i am not using a compound property model anywhere in the code, nor am i not specifying it directly. the model for each dropdown is specified as a propertymodel where this refers to the page and the string refers to the property on that page. so the selected user object will go into the user page property, and the selected logtype will go into the page's logtype property just like the property models specify. then your dataprovider picks up those two properties and uses them to filter the result just like the code shows. the models are just glue between formcomponent and properties on some java bean - which in this case happens to be the page. -igor On 3/16/07, GS-ikiini [EMAIL PROTECTED] wrote: let me make sure i understand.. add(new DropDownChoice(users,new PropertyModel(this, user),)); the Property model returns the User model. and the id of this dropdownchoice is used to access that model? so get or setUsers on the User user of this? if that is correct. can i do add(new DropDownChoice(users,new PropertyModel(mydataprovider, user),)); and get a model that is a property over there set to something? let me give a bit more detail.. I have a filter in my dataprovider that searches my DB using a service that takes users and logTypes and returns a list. thats why i need to set them in there. I have a list of all the users tied to a list and all the log types tied to a list in the web page. i just want to take the once selected and hand it to the dataprovider who will give me back a list of all the process matching those 2 models it was given. I understand what you said but just need some clarity on weither or not it would work in the way i am doing it. or is there another way i should be approaching the problem. Thank you for you repeated assistance. -B . igor.vaynberg wrote: once you understand models it becomes quiet trivial :) below is the simple way (without using a compound property model) class mypage extends webpage { private user user; private logtype logtype; // getters setters (only necessary in 1.2.x, in later wicket will access private properties through property model) public mypage() { form form=new form(); add(new DropDownChoice(users,new PropertyModel(this, user),)); add(new DropDownChoice(logtypes, new PropertyModel(this, logtype),...)); add(new DataView(results,new MyDataProvider(),... ... private class MyDataProvider implements IDataProvider { public Iterator iterator(int f,int c) { return getlogs(user,logtype); } } } and thats all she wrote. makes sense? -igor On 3/15/07, GS-ikiini [EMAIL PROTECTED] wrote: The popilateItem as i know it is used within the dataview. That part i understand. let me re-explain myself. on my webpage class, i have a dataview component. i also have a dropdownview component . they are both children of a form component. i have a beans user, log and logtype. (I am using wicket along with spring.). now in my webpage i have a drop down class whic implements dropdownchoice. the list for the drop down is generated earlier in the webpage class. i have a drop down for the user. and a drop down for the log type. I want to get the user selection for these two, tie it back to the appropriate bean then set those beans in the implementation of the dataprovider then use the implementation of the data provider as the model for the dataview. My problem lies is getting the user selection from the drop down. I can't seem get it without having a model to tie it to. igor.vaynberg wrote: first of all the dataprovider is a readonly interface, it has no set method like the model. that said what you want is simple: populateitem(item item) { final imodel namemodel=new propertymodel(item.getmodel(), name); add(new dropdownchoice(names,namemodel,nameslist)); } -igor On 3/15/07, GS-ikiini [EMAIL PROTECTED] wrote: i seei have a fair understaning of models this
[Wicket-user] hey, I was uisng that target model
Now that 2.0-style compound models are in 1.x snapshots, I have a question for people that have been using them: how do you work without CompoundPropertyModel.getNetstedModel()? For me, this is often a special model that I want to do something with, but in the newer style it's called the target and isn't, as far as I can tell, accessible from outside the compound. For now I'm holding on to my reference to the model that I'm setting inside the compound, but that's not very satisfying or flexible. Nathan - 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.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user