Re: LoadableDetachable
Hi, > I was under the assumption that wicket calls detach on LoadableDeatchable > automatically on each request. > > Is this not true? One of your components must have your model as default model. Either setModel(myModel); Otherwise you have to do the detach on your own: public void onDetach() { myModel.detach(); super.onDetach(); } Best Regards, Ilja Pavkovic -- binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin +49 · 171 · 9342 465 Handelsregister: HRB 115854 - Amtsgericht Charlottenburg Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
WARN BorderBodyResolver
Good day, I'm a bit confused, can't understand what i really need to do after getting this warning: Please consider to change your java code to something like: c.add(getBodyContainer()); for the component hierarchy to better reflect the markup hierarchy. For example, say that you have a border class in which you do: 'WebMarkupContainer div = new WebMarkupContainer("roundDiv"); add(div);' you should now do 'add(div); div.add(getBodyContainer());'. Please fix this before Wicket 1.4 -- Tony - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: RadioGroup with radio objects with same values
Hi, I've also noticed this behavior, but with null values (a RadioGroup with null modelObject, two RadioChoices with null modelObject). Under IE, all of them appeared selected :) (wicket 1.3.5) Cheers, Xavier 2010/1/6 Kogel, Jonck-van-der > Hi, > I have a radiogroup that is built up dynamically, so I don't know ahead > of time what the choices are going to be. Now I noticed that if I have 3 > radio buttons in a RadioGroup and let's say they all have the same value > (are all empty for example), the selected radio button will be the last > one in the group. Let me give an example: > > RadioGroup > * value1 = "foo" > * value2 = "foo" > * value3 = "foo" > > So all 3 radio choices have the value "foo". The persisted value is also > "foo", so all are "valid" so to speak and therefore the one that gets > selected is the 3d one. However, I would like it to be the first. Could > someone point me in the right direction how I should go about overriding > this behavior so it takes the first value it encounters instead of the > last? > > Thanks, Jonck > -- "Klein bottle for rent--inquire within."
Re: question about swarm
Hi Emond, Very nice. Could you think of a way to support your scenario and a way to support anonymous classes in a way that you don't have to specify a MyPageClass$1$2 and we don't have to impose a change in the hive file ? Kind Regards, Olger On 6 jan 2010, at 14:03, Emond Papegaaij wrote: > Hi Olger, > > The InPrincipal annotation is something we developed as an alternative for > the > hive files (which we find difficult to maintain, not only with anonymous > inner > classes). Principals are defined by a set of classes with annotations > defining > things like implies relations between principals and DataPermissions. > ComponentPermissions are created by scanning for components with the > InPrincipal annotation and creating the permissions for those. We are > thinking > about releasing this code, perhaps by including it in wicket-security. > > When using a hive file, you define your principals, each with a set of > permissions. Currently, you can use ComponentPermission, DataPermission and > AllPermissions. My suggestion is to add another permission that gives > permissions to a component and all of its subclasses (including anonymous > classes), something like: > > permission ${ComponentSubclassPermission} "MyPage", "inherit, render; > > This would give you permission for MyPage and its subclasses. You can define > the alias for ComponentSubclassPermission in SwarmPolicyFileHiveFactory. I > think that this is the way Swarm/Wasp is 'supposed to be used'. > > Best regards, > Emond > > On Wednesday 06 January 2010 13:09:09 Olger Warnier wrote: >> Hi Emond, >> >> Thanks for your comments, Interesting matter. Extending ComponentPermission >> to change the behavior sounds like an option. I can't find the >> @InPrincipal annotation in the wicket-security project, is this something >> specific ? >> >> When you look at it from the 'hive' side: It is the standard way of working >> with Swarm/Wasp, isn't it ? That current way has a quite fragile way to >> define the authorization rules on anonymous inner classes. How to deal >> with that ? >> >> Is it an option to contribute your annotations with a specific >> AnnotatedPermission ? That would be really great. >> >> Kind Regards, >> >> Olger >> >> On 6 jan 2010, at 12:52, Emond Papegaaij wrote: >>> Hi, >>> >>> Your change breaks some functionality. It is now no longer possible to >>> grant permissions for anonymous inner classes at all, you are now forced >>> to grant the permission on the superclass. This might seem sensible when >>> using a hive file, but it is not when permissions are configured in other >>> ways. >>> >>> We create permissions by annotating components with an @InPrincipal >>> annotation. It is possible to create a (abstract) component and have >>> multiple, anonymous subclasses, each with their own @InPrincipal >>> annotation. >>> >>> I think, this should be fixed with a special ComponentPermission: one >>> that does not only give permission to the specified class, but also to >>> its subclasses. This could be achieved by extending ComponentPermission >>> and overriding the implies method. The first part of the the path array >>> should contain the classname of the component. >>> >>> Best regards, >>> Emond Papegaaij >>> >>> On Thursday 31 December 2009 23:31:34 Olger Warnier wrote: Hi Sam, Found the way to solve it. It is fixed in the trunk. Still need to fix the build server - so a check out and build of the whole is probably best. An anonymous class will act like its' parent now. Happy new year (to you all). Olger On 31 dec 2009, at 22:43, s...@sambarrow.com wrote: > In my opinion, that's how it should work; just seems like common sense > to me. Even for regular (non-anonymous) classes, it would be useful > although that's not as important. > > As far as the technical part I have no idea. I've only been working > with swam for 3 days. But I will do some looking at the source code. > > Sent via BlackBerry from T-Mobile > > -Original Message- > From: Olger Warnier > Date: Thu, 31 Dec 2009 22:35:22 > To: > Subject: Re: question about swarm > > Hi Sam & Jeremy, > > Together with the remark that Jeremy made - I agree, it is quite > fragile - I had a look at the code that does the checks. I could > 'assume' that an anonymous class needs the same rights as the 'normal' > class. so when your CreateItemPage has the proper rights, an anonymous > variant has the similar rights. > > The other way is some kind of inheritance assumption. This needs some > kind of syntax in the hive file like the 'inherit' that is currently > available. This inherit is more page with child component 'inheritance' > and not like in OO thinking (If understand this completely). With this > in mind, I would say that treating an anonymous class as the cla
How to close a Wicket application?
I am using Spring + Wicket. When the Wicket application starts, if some important configuration is missing, I want to close all the application context, destroying all the Spring beans, including also the Wicket application, which is configured as a Spring bean by SpringWebApplicationFactory. I used the close() (I also tried stop() and destroy() methods) of the ApplicationContext, but it doesn't destroy the Wicket app. I then searched for a method of Wicket Application, which allows to stop/close the webapp, but I did not find it. How is it possible to stop a Wicket application from inside the application itself (that is suicide)? Best regards, giovanni
Re: How to close a Wicket application?
On Thu, 2010-01-07 at 02:15 -0800, Giovanni wrote: > I am using Spring + Wicket. > > When the Wicket application starts, if some important configuration is > missing, I want to close all the application context, destroying all the > Spring beans, including also the Wicket application, which is configured as a > Spring bean by SpringWebApplicationFactory. > > I used the close() (I also tried stop() and destroy() methods) of the > ApplicationContext, but it doesn't destroy the Wicket app. > > I then searched for a method of Wicket Application, which allows to > stop/close the webapp, but I did not find it. > > How is it possible to stop a Wicket application from inside the application > itself (that is suicide)? One option is to use the underlying JMX capabilities of the application server and request stop/undeploy of the application. Another option is to set a flag (application scope) and modify the RequestCycle to always redirect to some "Sorry, the application doesn't work" page if that flag is set to true. > > Best regards, > giovanni > > > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to close a Wicket application?
There is no hook in Wicket to stop. Wicket normally starts and ends with the web context it is running in. So ending the application is done by undeploying the web-app. You'll need to find hooks in your serlvet container. Spring will automatically shutdown with the web context as well. Regards, Erik. Giovanni wrote: I am using Spring + Wicket. When the Wicket application starts, if some important configuration is missing, I want to close all the application context, destroying all the Spring beans, including also the Wicket application, which is configured as a Spring bean by SpringWebApplicationFactory. I used the close() (I also tried stop() and destroy() methods) of the ApplicationContext, but it doesn't destroy the Wicket app. I then searched for a method of Wicket Application, which allows to stop/close the webapp, but I did not find it. How is it possible to stop a Wicket application from inside the application itself (that is suicide)? Best regards, giovanni -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to close a Wicket application?
Call System.exit(1) ... that will do the trick. Always nice to see all applications deployed to a container disappear. Martijn On Thu, Jan 7, 2010 at 12:03 PM, Erik van Oosten wrote: > There is no hook in Wicket to stop. Wicket normally starts and ends with the > web context it is running in. So ending the application is done by > undeploying the web-app. You'll need to find hooks in your serlvet > container. Spring will automatically shutdown with the web context as well. > > Regards, > Erik. > > Giovanni wrote: >> >> I am using Spring + Wicket. >> >> When the Wicket application starts, if some important configuration is >> missing, I want to close all the application context, destroying all the >> Spring beans, including also the Wicket application, which is configured as >> a Spring bean by SpringWebApplicationFactory. >> >> I used the close() (I also tried stop() and destroy() methods) of the >> ApplicationContext, but it doesn't destroy the Wicket app. >> >> I then searched for a method of Wicket Application, which allows to >> stop/close the webapp, but I did not find it. >> >> How is it possible to stop a Wicket application from inside the >> application itself (that is suicide)? >> >> Best regards, >> giovanni >> > > -- > Erik van Oosten > http://day-to-day-stuff.blogspot.com/ > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
is wicket+seam+ejb3 stable?
Hi, all: I am wicket fans, I always make my applications to work with wicket+guice+ibatis. Now we have a new project, we need to make wicket work with ejb3. I think maybe seam is a good idea, but i am not familiar with this. Can anyone share experience? Thanks very much. -- Thanks! VVThumb Microproduction Location: A1-2, Qilu Software Park No. 1 Shunhua Rd High-Tech Development Zone Jinan, China 250101 Linkedin: http://www.linkedin.com/in/haulyn Haulyn Jason - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
DiskPageStore file increasing to max size by only refreshing a HomePage
Hi, - the scenario is this: jmeter stress-testing (10 simultaneous users with no ramp-up and an infinite-loop cycle) a wicket application (extends SpringWebApplication) by only refreshing the HomePage. - the result is: observing the disk, the pagemap file for each session (10 items), there is an "infinite" increasing (about 10kb each one) up to arriving the 10MB (default max size for diskpagestore). opening the pagemap file (text editor) there is a repetition of the same HomePage serialized "infinite" times til arriving the max size allowed for the file... - the question is: why is this happening? shouldn't the pagemap only store the "new" pages, but only conserving "one" reference to a page that was already serialized? why is it serializing the same page (HomePage) to the infinite?
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
Just because it's the same page class it doesn't mean it's the same page instance. How does the URL that you invoke look like? -Matej On Thu, Jan 7, 2010 at 12:32 PM, manuelbarzi wrote: > Hi, > > - the scenario is this: > > jmeter stress-testing (10 simultaneous users with no ramp-up and an > infinite-loop cycle) a wicket application (extends SpringWebApplication) by > only refreshing the HomePage. > > - the result is: > > observing the disk, the pagemap file for each session (10 items), there is > an "infinite" increasing (about 10kb each one) up to arriving the 10MB > (default max size for diskpagestore). > > opening the pagemap file (text editor) there is a repetition of the same > HomePage serialized "infinite" times til arriving the max size allowed for > the file... > > - the question is: > > why is this happening? shouldn't the pagemap only store the "new" pages, but > only conserving "one" reference to a page that was already serialized? why > is it serializing the same page (HomePage) to the infinite? > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Autosize modal window
Hi Ilja, Ok, that's good, I'm not using PageCreator. But how do I then make the ModalWindow autosize? Perhaps I'm missing something in the JavaDocs but I can't find it anywhere. Thanks, Jonck -Original Message- From: Ilja Pavkovic [mailto:ilja.pavko...@binaere-bauten.de] Sent: woensdag 6 januari 2010 17:23 To: users@wicket.apache.org Subject: Re: Autosize modal window Hi, according to the inline documentation of ModalWindow you can only autosize if you add components and don't use ModalWindow.PageCreator something like ModalWindow modalWindow = new ModalWindow(); modalWindow.add(new MyPanel(modalWindow.getComponentId()); Best Regards, Ilja Pavkovic Am Mittwoch, 6. Januar 2010 17:12:05 schrieb Kogel, Jonck-van-der: > Hi, > Is it possible to have a modal window auto-size depending on its > contents? I've been fiddling with header contributions and such but > can't get it to work. > > Thanks! > > Jonck > -- binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin +49 · 171 · 9342 465 Handelsregister: HRB 115854 - Amtsgericht Charlottenburg Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
InspectorBug on 1.3.5
Hi, I'm trying to use the InspectorBug in wicket 1.3.5. I extracted it from the wicket-examples source code. The problem is, every page is treated as stateless, soI can get no information on component's models. I get info on Application and Session, but about the Pages, debugging through the code I find out that the problem is that the page never gets an Id (Page.getId()) so the IPageMapEntry can be retrieved... public InspectorBug(final String id, final WebPage page) { super(id); PageParameters parameters = new PageParameters(); parameters.put("pageId", page.getId()); Link link = new BookmarkablePageLink("link", InspectorPage.class, parameters); link.add(new Image("bug")); add(link); } public InspectorPage(final PageParameters parameters) { add(new ApplicationView("application", Application.get())); add(new SessionView("session", Session.get())); IPageMapEntry entry = null; try { entry = getPageMap().getEntry(parameters.getInt("pageId")); } catch (StringValueConversionException e) { // Ignore } add(new PageView("page", entry == null ? null : entry.getPage())); add(new Image("bug")); add(new BookmarkablePageLink("allsessions", LiveSessionsPage.class)); add(new Label("wicketVersion", getApplication().getFrameworkSettings().getVersion())); } I also noticed that Page.setId() is only called when the Page is put into the PageMap (which makes sense, and is also stated by the comments on Page's constructors) "// A Page's id is not determined until setId is called when the Page is // added to a PageMap in the Session." I suppose this is not working because in InspectorBug's construction, the page isn't in the pagemap yet, so it has no id. Is there any workaround to get the InspectorBug panel working ? Cheers, Xavier
Re: question about swarm
Well, provided you've implemented the ComponentSubclassPermission, you could overwrite the alias for ComponentPermission by subclassing the SwarmPolicyFileHiveFactory like this: public class MyFileHiveFactory extends SwarmPolicyFileHiveFactory { public MyFileHiveFactory(ActionFactory actionFactory) { super(actionFactory); setAlias("ComponentPermission", my.ComponentSubclassPermission"); } } This would replace the usage of ComponentPermission by ComponentSubclassPermission and requires no change to the hive file. Emond On Thursday 07 January 2010 11:09:52 Olger Warnier wrote: > Hi Emond, > > Very nice. Could you think of a way to support your scenario and a way to > support anonymous classes in a way that you don't have to specify a > MyPageClass$1$2 and we don't have to impose a change in the hive file ? > > Kind Regards, > > Olger > > On 6 jan 2010, at 14:03, Emond Papegaaij wrote: > > Hi Olger, > > > > The InPrincipal annotation is something we developed as an alternative > > for the hive files (which we find difficult to maintain, not only with > > anonymous inner classes). Principals are defined by a set of classes with > > annotations defining things like implies relations between principals and > > DataPermissions. ComponentPermissions are created by scanning for > > components with the InPrincipal annotation and creating the permissions > > for those. We are thinking about releasing this code, perhaps by > > including it in wicket-security. > > > > When using a hive file, you define your principals, each with a set of > > permissions. Currently, you can use ComponentPermission, DataPermission > > and AllPermissions. My suggestion is to add another permission that gives > > permissions to a component and all of its subclasses (including anonymous > > classes), something like: > > > > permission ${ComponentSubclassPermission} "MyPage", "inherit, render; > > > > This would give you permission for MyPage and its subclasses. You can > > define the alias for ComponentSubclassPermission in > > SwarmPolicyFileHiveFactory. I think that this is the way Swarm/Wasp is > > 'supposed to be used'. > > > > Best regards, > > Emond > > > > On Wednesday 06 January 2010 13:09:09 Olger Warnier wrote: > >> Hi Emond, > >> > >> Thanks for your comments, Interesting matter. Extending > >> ComponentPermission to change the behavior sounds like an option. I > >> can't find the > >> @InPrincipal annotation in the wicket-security project, is this > >> something specific ? > >> > >> When you look at it from the 'hive' side: It is the standard way of > >> working with Swarm/Wasp, isn't it ? That current way has a quite fragile > >> way to define the authorization rules on anonymous inner classes. How to > >> deal with that ? > >> > >> Is it an option to contribute your annotations with a specific > >> AnnotatedPermission ? That would be really great. > >> > >> Kind Regards, > >> > >> Olger > >> > >> On 6 jan 2010, at 12:52, Emond Papegaaij wrote: > >>> Hi, > >>> > >>> Your change breaks some functionality. It is now no longer possible to > >>> grant permissions for anonymous inner classes at all, you are now > >>> forced to grant the permission on the superclass. This might seem > >>> sensible when using a hive file, but it is not when permissions are > >>> configured in other ways. > >>> > >>> We create permissions by annotating components with an @InPrincipal > >>> annotation. It is possible to create a (abstract) component and have > >>> multiple, anonymous subclasses, each with their own @InPrincipal > >>> annotation. > >>> > >>> I think, this should be fixed with a special ComponentPermission: one > >>> that does not only give permission to the specified class, but also to > >>> its subclasses. This could be achieved by extending ComponentPermission > >>> and overriding the implies method. The first part of the the path array > >>> should contain the classname of the component. > >>> > >>> Best regards, > >>> Emond Papegaaij > >>> > >>> On Thursday 31 December 2009 23:31:34 Olger Warnier wrote: > Hi Sam, > > Found the way to solve it. It is fixed in the trunk. Still need to fix > the build server - so a check out and build of the whole is probably > best. An anonymous class will act like its' parent now. > > Happy new year (to you all). > > Olger > > On 31 dec 2009, at 22:43, s...@sambarrow.com wrote: > > In my opinion, that's how it should work; just seems like common > > sense to me. Even for regular (non-anonymous) classes, it would be > > useful although that's not as important. > > > > As far as the technical part I have no idea. I've only been working > > with swam for 3 days. But I will do some looking at the source code. > > > > Sent via BlackBerry from T-Mobile > > > > -Original Message- > > From: Olger Warnier > > Date: Thu, 31 Dec 2009 22:35:
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
the url is this: http://localhost:9090/test/
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
if you constantly target exactly that url then that will be a new page everytime because thats just a bookmarkable url. not an instance url. On Thu, Jan 7, 2010 at 12:52, manuelbarzi wrote: > the url is this: http://localhost:9090/test/ >
Re: How to close a Wicket application?
Hi Martjin, I tried with System.exit(1) on Weblogic, but it is also stopping the whole Weblogic server. It seems that this solution is too strong. :) Maybe the solution ofMartin Grigorov is softer. At the end, we are using the ApplicationContext.close() method, which seems to stop the Spring beans, except the Wicket bean (I don't understand why). Then, if a user tries to call a Wicket page, he will get an error, not because the Wicket app is down, but because the collaborating Spring beans are down. regards, giovanni From: Martijn Dashorst To: users@wicket.apache.org Sent: Thu, January 7, 2010 12:13:53 PM Subject: Re: How to close a Wicket application? Call System.exit(1) ... that will do the trick. Always nice to see all applications deployed to a container disappear. Martijn On Thu, Jan 7, 2010 at 12:03 PM, Erik van Oosten wrote: > There is no hook in Wicket to stop. Wicket normally starts and ends with the > web context it is running in. So ending the application is done by > undeploying the web-app. You'll need to find hooks in your serlvet > container. Spring will automatically shutdown with the web context as well. > > Regards, > Erik. > > Giovanni wrote: >> >> I am using Spring + Wicket. >> >> When the Wicket application starts, if some important configuration is >> missing, I want to close all the application context, destroying all the >> Spring beans, including also the Wicket application, which is configured as >> a Spring bean by SpringWebApplicationFactory. >> >> I used the close() (I also tried stop() and destroy() methods) of the >> ApplicationContext, but it doesn't destroy the Wicket app. >> >> I then searched for a method of Wicket Application, which allows to >> stop/close the webapp, but I did not find it. >> >> How is it possible to stop a Wicket application from inside the >> application itself (that is suicide)? >> >> Best regards, >> giovanni >> > > -- > Erik van Oosten > http://day-to-day-stuff.blogspot.com/ > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Autosize modal window
Hi, I forgot the following line: modalWindow.setUseInitialHeight(false); Best Regards, Ilja Pavkovic Am Donnerstag, 7. Januar 2010 12:40:25 schrieb Kogel, Jonck-van-der: > Hi Ilja, > Ok, that's good, I'm not using PageCreator. But how do I then make the > ModalWindow autosize? Perhaps I'm missing something in the JavaDocs but I > can't find it anywhere. > > Thanks, Jonck > > -Original Message- > From: Ilja Pavkovic [mailto:ilja.pavko...@binaere-bauten.de] > Sent: woensdag 6 januari 2010 17:23 > To: users@wicket.apache.org > Subject: Re: Autosize modal window > > Hi, > > according to the inline documentation of ModalWindow you can only autosize > if you add components and don't use ModalWindow.PageCreator > > something like > > ModalWindow modalWindow = new ModalWindow(); modalWindow.add(new > MyPanel(modalWindow.getComponentId()); > > > > Best Regards, > Ilja Pavkovic > > Am Mittwoch, 6. Januar 2010 17:12:05 schrieb Kogel, Jonck-van-der: > > Hi, > > Is it possible to have a modal window auto-size depending on its > > contents? I've been fiddling with header contributions and such but > > can't get it to work. > > > > Thanks! > > > > Jonck > > -- > binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin > >+49 · 171 · 9342 465 > > Handelsregister: HRB 115854 - Amtsgericht Charlottenburg > Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin +49 · 171 · 9342 465 Handelsregister: HRB 115854 - Amtsgericht Charlottenburg Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
if this is the behaviour by default, then, how do you avoid a DoS attack? i mean, to put an example, if a simple app like this receives thousand of users just refreshing the home page, then the pagestore will be overloaded... may this become a disk I/O overhead and its other possible consequences.
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
You have the exact same problem with every stateful application. If you want to avoid a DoS attack (which isn't really always possible) you need a good firewall. -Matej On Thu, Jan 7, 2010 at 2:29 PM, manuelbarzi wrote: > if this is the behaviour by default, then, how do you avoid a DoS attack? i > mean, to put an example, if a simple app like this receives thousand of > users just refreshing the home page, then the pagestore will be > overloaded... may this become a disk I/O overhead and its other possible > consequences. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: is wicket+seam+ejb3 stable?
Mind wicketstuff-core/javaee as well. It is used by more people and it works for sure. There are two Seam integrations, one in wicketstuff and one in Seam itself. I can tell nothing about their status. On Thu, 2010-01-07 at 19:18 +0800, Haulyn Jason wrote: > Hi, all: > I am wicket fans, I always make my applications to work with > wicket+guice+ibatis. Now we have a new project, we need to make wicket > work with ejb3. I think maybe seam is a good idea, but i am not familiar > with this. Can anyone share experience? > > Thanks very much. > > -- > Thanks! > > VVThumb Microproduction > > Location: A1-2, Qilu Software Park > No. 1 Shunhua Rd High-Tech Development Zone > Jinan, China 250101 > Linkedin: http://www.linkedin.com/in/haulyn > > Haulyn Jason > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
hmmm... but we are talking about something very basic: the home page! there's no way to avoid repetition of this page in pagestore? i guess pagestore does not repeat other internal pages (with extended url - not home page - if their are correctly independent, no new object references inside on each reload and so on, let's say) by following internal rules (based on object state and references), why couldn't it be applied a similar mechanism for the home page? On Thu, Jan 7, 2010 at 2:31 PM, Matej Knopp wrote: > You have the exact same problem with every stateful application. If > you want to avoid a DoS attack (which isn't really always possible) > you need a good firewall. > > -Matej > > On Thu, Jan 7, 2010 at 2:29 PM, manuelbarzi wrote: > > if this is the behaviour by default, then, how do you avoid a DoS attack? > i > > mean, to put an example, if a simple app like this receives thousand of > > users just refreshing the home page, then the pagestore will be > > overloaded... may this become a disk I/O overhead and its other possible > > consequences. > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
SV: DiskPageStore file increasing to max size by only refreshing a HomePage
> hmmm... but we are talking about something very basic: the home page! Have you set it unversioned? How about trying to make it stateless? - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
You can make your home page stateless. Of course that limits what components you can put on it. -Matej On Thu, Jan 7, 2010 at 2:42 PM, manuelbarzi wrote: > hmmm... but we are talking about something very basic: the home page! > there's no way to avoid repetition of this page in pagestore? i guess > pagestore does not repeat other internal pages (with extended url - not home > page - if their are correctly independent, no new object references inside > on each reload and so on, let's say) by following internal rules (based on > object state and references), why couldn't it be applied a similar mechanism > for the home page? > > On Thu, Jan 7, 2010 at 2:31 PM, Matej Knopp wrote: > >> You have the exact same problem with every stateful application. If >> you want to avoid a DoS attack (which isn't really always possible) >> you need a good firewall. >> >> -Matej >> >> On Thu, Jan 7, 2010 at 2:29 PM, manuelbarzi wrote: >> > if this is the behaviour by default, then, how do you avoid a DoS attack? >> i >> > mean, to put an example, if a simple app like this receives thousand of >> > users just refreshing the home page, then the pagestore will be >> > overloaded... may this become a disk I/O overhead and its other possible >> > consequences. >> > >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Autosize modal window
Yes, it can be resized. Do something like this: public void show(AjaxRequestTarget target, ...) { // ... super.show(target); // ... int height = YOUR_COMPUTED_HEIGHT; int width = YOUR_COMPUTED_WIDTH; target.appendJavascript(""// + "var thisWindow = Wicket.Window.get();\n"// + "if (thisWindow) {\n"// + "thisWindow.window.style.width = \"" + width + "em\";\n"// + "thisWindow.content.style.height = \"" + height + "em\";\n"// + "thisWindow.center();\n"// + "}"// ); } Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Autosize modal window
Forgot: public MyModalWindow extends ModalWindow { public MyModalWindow(String id) { super(id); setResizable(false); setWidthUnit("em"); setHeightUnit("em"); setContent(new MyWindowPanel(this.getContentId())); // ... } } Stefan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Autosize modal window
Ok, great, the height is indeed autosizing nicely now. Is there any way to have the width autosize as well? Thanks, Jonck -Original Message- From: Ilja Pavkovic [mailto:ilja.pavko...@binaere-bauten.de] Sent: donderdag 7 januari 2010 13:51 To: users@wicket.apache.org Cc: Kogel, Jonck-van-der Subject: Re: Autosize modal window Hi, I forgot the following line: modalWindow.setUseInitialHeight(false); Best Regards, Ilja Pavkovic Am Donnerstag, 7. Januar 2010 12:40:25 schrieb Kogel, Jonck-van-der: > Hi Ilja, > Ok, that's good, I'm not using PageCreator. But how do I then make the > ModalWindow autosize? Perhaps I'm missing something in the JavaDocs > but I can't find it anywhere. > > Thanks, Jonck > > -Original Message- > From: Ilja Pavkovic [mailto:ilja.pavko...@binaere-bauten.de] > Sent: woensdag 6 januari 2010 17:23 > To: users@wicket.apache.org > Subject: Re: Autosize modal window > > Hi, > > according to the inline documentation of ModalWindow you can only > autosize if you add components and don't use ModalWindow.PageCreator > > something like > > ModalWindow modalWindow = new ModalWindow(); modalWindow.add(new > MyPanel(modalWindow.getComponentId()); > > > > Best Regards, > Ilja Pavkovic > > Am Mittwoch, 6. Januar 2010 17:12:05 schrieb Kogel, Jonck-van-der: > > Hi, > > Is it possible to have a modal window auto-size depending on its > > contents? I've been fiddling with header contributions and such but > > can't get it to work. > > > > Thanks! > > > > Jonck > > -- > binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin > >+49 · 171 · 9342 465 > > Handelsregister: HRB 115854 - Amtsgericht Charlottenburg > Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost > Becker > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin +49 · 171 · 9342 465 Handelsregister: HRB 115854 - Amtsgericht Charlottenburg Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: datagrid error
Hi, Yes, that solved the issue. Thank you, Igor 2010/1/6 Matej Knopp > Caused by: java.util.MissingResourceException: Unable to find property: > 'id1' for component: grid1:header:header:id1 > > You are missing property id1 for column header in your property file. > > -Matej > > On Wed, Jan 6, 2010 at 6:35 PM, Igor Racic wrote: > > Hi, > > > > I am trying to "adapt" datagrid example and can't resolve following: > > > > ERROR - RequestCycle - Exception in rendering component: > > [Component id = id1] > > org.apache.wicket.WicketRuntimeException: Exception in rendering > component: > > [Component id = id1] > >at org.apache.wicket.Component.renderComponent(Component.java:2658) > >at > > org.apache.wicket.markup.html.WebComponent.onRender(WebComponent.java:62) > >at org.apache.wicket.Component.render(Component.java:2450) > >at > > > com.inmethod.grid.common.ColumnsHeaderRepeater.onRender(ColumnsHeaderRepeater.java:142) > >at org.apache.wicket.Component.render(Component.java:2450) > >at > > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414) > >at > > > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577) > >at > > > org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675) > >at > > > org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) > >at org.apache.wicket.Component.renderComponent(Component.java:2619) > >at > org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512) > >at org.apache.wicket.Component.render(Component.java:2450) > >at > > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414) > >at > > > org.apache.wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:1577) > >at > > > org.apache.wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:675) > >at > > > org.apache.wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:114) > >at org.apache.wicket.Component.renderComponent(Component.java:2619) > >at > org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1512) > >at org.apache.wicket.Component.render(Component.java:2450) > >at > > org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1414) > >at > > org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1528) > >at org.apache.wicket.Page.onRender(Page.java:1545) > >at org.apache.wicket.Component.render(Component.java:2450) > >at org.apache.wicket.Page.renderPage(Page.java:914) > >at > > > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:261) > >at > > > org.apache.wicket.request.AbstractRequestCycleProcessor.respond(AbstractRequestCycleProcessor.java:105) > >at > > > org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1258) > >at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) > >at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) > >at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) > >at > > org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) > >at > > > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) > >at > > > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1089) > >at > > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365) > >at > > > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > >at > > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) > >at > > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) > >at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) > >at > > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) > >at org.mortbay.jetty.Server.handle(Server.java:295) > >at > > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:503) > >at > > > org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:827) > >at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:511) > >at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:210) > >at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:379) > >at > > > org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:226) > >at > > > org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) > > Caused by: java.util.MissingResourceException: Unable to find property: > > 'id1' for component: grid1:header:header:id1 > > [class=com.inmethod.grid.column.AbstractColumn$1] > >at org.apache.wicket.Localizer.getString(Localizer.java:344) > >at org.apache.wicket.Localizer.getString(Localizer.java:138) > >at > > > org.apache.wicket.model.ResourceModel$AssignmentW
DropDownChoice and selected value...
Hello all..First of all, I know that this has been discussed here, I searched the archives but could not find an answer, or at least understand one, so please If someone can help me I would greatly appreciate it...I have a small problem with Drop Down Choices and the selected value when editing an existing record... and I wanted to validate that I'm doing things the correct way.. and if so.. if there is a known issuethe scenario is as follows...I created an extended class (just to simplify my work) to generate DDC from a multivalues tables (aka, a table where one holds different types of things.. countries, cities, status codes, etc..).The rest of the mail will be in RED for readability...In my tables I'm required to store the code and not the value so basically I created the following class..(these are fractions.. I'm attaching the actual clasess..)public class mvDropDownChoice extends DropDownChoice {... static List mvValues = null; @SuppressWarnings("serial") public mvDropDownChoice(String id, String mvCode, IModel model) { super(id, new PropertyModel(model, id),sysMultivaluesProvider.getMVList(mvCode),new IChoiceRenderer() { public String getDisplayValue(Object object) { SysMultivalues mv = (SysMultivalues) object; return mv.getMvMeaning(); } public String getIdValue(Object object, int index) { if (index == -1) return null; return ((SysMultivalues)mvValues.get(index)).getMvCode(); } }); mvValues = sysMultivaluesProvider.getMVList(mvCode); }.now I call this in the following way..---import net.databinder.valid.hib.ValidDataForm;@AuthorizeInstantiation(Roles.USER)public class updateUserProfile extends Panel{ private static final long serialVersionUID = 2834437668800017171L; EditForm form;... public updateUserProfile(String id, String userId) { super(id); final Integer userIdInt = Integer.parseInt(userId); add(form = new EditForm("userProfileForm", Long.parseLong(userId.trim(; } protected class EditForm extends ValidDataForm { @SuppressWarnings({ "serial", "unchecked" }) public EditForm(String id, Long userId) { super(id, SecUsers.class,userId); add(new TextField("userName").setRequired(true)); . add(new mvDropDownChoice("userProfile.country","COUNTRY", this.getModel()));.and this generates the following HTML output--
Re: Autosize modal window
Hi, > Ok, great, the height is indeed autosizing nicely now. Is there any way to > have the width autosize as well? no, as you need either a height or a width to calculate on out of the other automatically with respect to the window content (content dimension and aspect ratio would be sufficient, but we don't have that :)) You could get the width from ClientProperties after enabling gatherExtendedBrowserInfo in the Application settings ApplicationClass.init() { getRequestCycleSettings().setGatherExtendedBrowserInfo(true); } But you will have one flickering extra page that is used to gather this information. Perhaps when you could use something like int width = ((WebClientInfo) getRequestCycle().getClientInfo()).getProperties().getBrowserWidth(); width = width/3; Easier would be to use a reasonable width. Best Regards, Ilja > Thanks, Jonck > > > -Original Message- > From: Ilja Pavkovic [mailto:ilja.pavko...@binaere-bauten.de] > Sent: donderdag 7 januari 2010 13:51 > To: users@wicket.apache.org > Cc: Kogel, Jonck-van-der > Subject: Re: Autosize modal window > > Hi, > > I forgot the following line: modalWindow.setUseInitialHeight(false); > > Best Regards, > Ilja Pavkovic > > Am Donnerstag, 7. Januar 2010 12:40:25 schrieb Kogel, Jonck-van-der: > > Hi Ilja, > > Ok, that's good, I'm not using PageCreator. But how do I then make the > > ModalWindow autosize? Perhaps I'm missing something in the JavaDocs > > but I can't find it anywhere. > > > > Thanks, Jonck > > > > -Original Message- > > From: Ilja Pavkovic [mailto:ilja.pavko...@binaere-bauten.de] > > Sent: woensdag 6 januari 2010 17:23 > > To: users@wicket.apache.org > > Subject: Re: Autosize modal window > > > > Hi, > > > > according to the inline documentation of ModalWindow you can only > > autosize if you add components and don't use ModalWindow.PageCreator > > > > something like > > > > ModalWindow modalWindow = new ModalWindow(); modalWindow.add(new > > MyPanel(modalWindow.getComponentId()); > > > > > > > > Best Regards, > > Ilja Pavkovic > > > > Am Mittwoch, 6. Januar 2010 17:12:05 schrieb Kogel, Jonck-van-der: > > > Hi, > > > Is it possible to have a modal window auto-size depending on its > > > contents? I've been fiddling with header contributions and such but > > > can't get it to work. > > > > > > Thanks! > > > > > > Jonck > > > > -- > > binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin > > > >+49 · 171 · 9342 465 > > > > Handelsregister: HRB 115854 - Amtsgericht Charlottenburg > > Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost > > Becker > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > -- > binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin > >+49 · 171 · 9342 465 > > Handelsregister: HRB 115854 - Amtsgericht Charlottenburg > Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin +49 · 171 · 9342 465 Handelsregister: HRB 115854 - Amtsgericht Charlottenburg Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: DropDownChoice and selected value...
Hi, I also had this problem once. It turned out to have to do with my list of choices becoming stale. I solved this by putting the choices in a LoadableDetachableModel. ie: IModel> yourObjectsModel = new LoadableDetachableModel>() { @Override protected List load() { return yourObjectService.findAll(); } }; add(new YourDropDownChoice("foo", new PropertyModel(yourModel, "bar"), yourObjectsModel)); From: Facundo Miquel [mailto:facu...@easytech.com.ar] Sent: donderdag 7 januari 2010 15:18 To: users@wicket.apache.org Subject: DropDownChoice and selected value... Hello all.. First of all, I know that this has been discussed here, I searched the archives but could not find an answer, or at least understand one, so please If someone can help me I would greatly appreciate it... I have a small problem with Drop Down Choices and the selected value when editing an existing record... and I wanted to validate that I'm doing things the correct way.. and if so.. if there is a known issue the scenario is as follows... I created an extended class (just to simplify my work) to generate DDC from a multivalues tables (aka, a table where one holds different types of things.. countries, cities, status codes, etc..). The rest of the mail will be in RED for readability... In my tables I'm required to store the code and not the value so basically I created the following class..(these are fractions.. I'm attaching the actual clasess..) public class mvDropDownChoice extends DropDownChoice { ... static List mvValues = null; @SuppressWarnings("serial") public mvDropDownChoice(String id, String mvCode, IModel model) { super(id, new PropertyModel(model, id),sysMultivaluesProvider.getMVList(mvCode),new IChoiceRenderer() { public String getDisplayValue(Object object) { SysMultivalues mv = (SysMultivalues) object; return mv.getMvMeaning(); } public String getIdValue(Object object, int index) { if (index == -1) return null; return ((SysMultivalues)mvValues.get(index)).getMvCode(); } }); mvValues = sysMultivaluesProvider.getMVList(mvCode); } ... .. now I call this in the following way.. --- import net.databinder.valid.hib.ValidDataForm; @AuthorizeInstantiation(Roles.USER) public class updateUserProfile extends Panel{ private static final long serialVersionUID = 2834437668800017171L; EditForm form; ... public updateUserProfile(String id, String userId) { super(id); final Integer userIdInt = Integer.parseInt(userId); add(form = new EditForm("userProfileForm", Long.parseLong(userId.trim(; } protected class EditForm extends ValidDataForm { @SuppressWarnings({ "serial", "unchecked" }) public EditForm(String id, Long userId) { super(id, SecUsers.class,userId); add(new TextField("userName").setRequired(true)); . add(new mvDropDownChoice("userProfile.country","COUNTRY", this.getModel())); . and this generates the following HTML output -- Choose One Argentina Uruguay --- Wich is correct, O have the code.. as the value. the description as the user readable choice.. the CODE is persisted to the database (AKA in a select country from sec_users the country is returned ARG | UY and not Argentina | Uruguay which is what I need..) but my problem as stated before is that I can't get the choice to come up with the correct selected value (Argentina / Uruguay) and it always comes out with "Choose One".. TIA
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
what is the definition of an overloaded pagestore? if the page store can be overloaded (so more then it should load) then it is a bug of wicket. But even if you get a dos attack then max 10MB per user will be allocated yes, but thats not overloading in my point of view. you could always decrease it so thats it is not max 10MB On Thu, Jan 7, 2010 at 14:29, manuelbarzi wrote: > if this is the behaviour by default, then, how do you avoid a DoS attack? i > mean, to put an example, if a simple app like this receives thousand of > users just refreshing the home page, then the pagestore will be > overloaded... may this become a disk I/O overhead and its other possible > consequences. >
TextField & Class Type Validation
Hello, I have a text field and added the class type as Date, to validate the date entered. TextField txtDate = new TextField("txtDate", new Model(), Date.class); I have two button in the same screen one for the Save for another for Reset. When i enter invalid date and press the save button, valid error message is shown. But when i press the reset button then also it validates and shows the errro message. How to avoid this and kindly explain the factor.
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
Would it be a good idea to be able to specify the pagestore limits on a per-wicket-session base? So you could for example increase the page store limits once a user has successfully authenticated. DoS web clients usually don't go through the mess to authenticate first. Also multiple authentications of the same user could be easily detected. So DoS should be a little harder. Am 07.01.2010 um 17:05 schrieb Johan Compagner: > what is the definition of an overloaded pagestore? > if the page store can be overloaded (so more then it should load) then it is > a bug of wicket. > But even if you get a dos attack then max 10MB per user will be allocated > yes, but thats not overloading in my point of view. > you could always decrease it so thats it is not max 10MB > > On Thu, Jan 7, 2010 at 14:29, manuelbarzi wrote: > >> if this is the behaviour by default, then, how do you avoid a DoS attack? i >> mean, to put an example, if a simple app like this receives thousand of >> users just refreshing the home page, then the pagestore will be >> overloaded... may this become a disk I/O overhead and its other possible >> consequences. >> - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TextField & Class Type Validation
button.setDefaultFormProcessing(boolean b) http://wicket.sourceforge.net/apidocs/wicket/markup/html/form/Button.html#setDefaultFormProcessing%28boolean%29 - Original Message - From: "sakthi vel" To: Sent: Thursday, January 07, 2010 4:30 PM Subject: TextField & Class Type Validation Hello, I have a text field and added the class type as Date, to validate the date entered. TextField txtDate = new TextField("txtDate", new Model(), Date.class); I have two button in the same screen one for the Save for another for Reset. When i enter invalid date and press the save button, valid error message is shown. But when i press the reset button then also it validates and shows the errro message. How to avoid this and kindly explain the factor. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
that good be great! dos attack is very rude scenario? ok, a more realistic scenario would be - as happens here - an app that has a very huge amount of users during only one week per year (about 40k users connecting to this app for subscriptions and checking some personal information). let's say 1k users just have fun refreshing the site... would it be possible to control pagestore size based on session and loggged-in users?
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
about "unversioned", i have just done a quick test on wicket-examples > helloworld, adding serialVersionUID (not informed in the examples) and the result is the same: pagestore file increasing to the "infinite" (max size of course :) stateless page is next, but limitations in this scenario should be taken into account, as expressed here in some post of this thread... On Thu, Jan 7, 2010 at 2:58 PM, Wilhelmsen Tor Iver wrote: > > hmmm... but we are talking about something very basic: the home page! > > Have you set it unversioned? How about trying to make it stateless? > > - Tor Iver > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
RE: OnChangeAjaxBehavior with palette
any help? i cant be the only person to have tried this. Original Message: - From: wic...@geofflancaster.com wic...@geofflancaster.com Date: Wed, 6 Jan 2010 14:13:50 -0500 To: users@wicket.apache.org Subject: OnChangeAjaxBehavior with palette i'm trying using a text field to search through the items available to be selected in a palette. As of right now, it searches correctly but if I add items to the "selected" side of the palette and then search again, I lose my previously selected choices. Is there anyway to only refresh the available menu and not the selected menu? mail2web.com Enhanced email for the mobile individual based on Microsoft® Exchange - http://link.mail2web.com/Personal/EnhancedEmail - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org mail2web LIVE Free email based on Microsoft® Exchange technology - http://link.mail2web.com/LIVE - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OnChangeAjaxBehavior with palette
You could add an AjaxFormComponentUpdatingBehavior to your palette so that your selections are pushed back to the underlying model. On Thu, Jan 7, 2010 at 9:40 AM, wic...@geofflancaster.com wrote: > any help? i cant be the only person to have tried this. > > Original Message: > - > From: wic...@geofflancaster.com wic...@geofflancaster.com > Date: Wed, 6 Jan 2010 14:13:50 -0500 > To: users@wicket.apache.org > Subject: OnChangeAjaxBehavior with palette > > > i'm trying using a text field to search through the items available to be > selected in a palette. As of right now, it searches correctly but if I add > items to the "selected" side of the palette and then search again, I lose > my previously selected choices. > > Is there anyway to only refresh the available menu and not the selected > menu? > > > mail2web.com – Enhanced email for the mobile individual based on Microsoft® > Exchange - http://link.mail2web.com/Personal/EnhancedEmail > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > mail2web LIVE – Free email based on Microsoft® Exchange technology - > http://link.mail2web.com/LIVE > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OnChangeAjaxBehavior with palette
But how can you inject previously selected items back into the selected menu? The only thing i can see is inserting items into the list as a whole which puts them into the available menu. can you give me a code snippet and better explanation of what you mean? Original Message: - From: Scott Swank scott.sw...@gmail.com Date: Thu, 7 Jan 2010 09:49:41 -0800 To: users@wicket.apache.org Subject: Re: OnChangeAjaxBehavior with palette You could add an AjaxFormComponentUpdatingBehavior to your palette so that your selections are pushed back to the underlying model. On Thu, Jan 7, 2010 at 9:40 AM, wic...@geofflancaster.com wrote: > any help? i cant be the only person to have tried this. > > Original Message: > - > From: wic...@geofflancaster.com wic...@geofflancaster.com > Date: Wed, 6 Jan 2010 14:13:50 -0500 > To: users@wicket.apache.org > Subject: OnChangeAjaxBehavior with palette > > > i'm trying using a text field to search through the items available to be > selected in a palette. As of right now, it searches correctly but if I add > items to the "selected" side of the palette and then search again, I lose > my previously selected choices. > > Is there anyway to only refresh the available menu and not the selected > menu? > > > mail2web.com Enhanced email for the mobile individual based on Microsoft® > Exchange - http://link.mail2web.com/Personal/EnhancedEmail > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > mail2web LIVE Free email based on Microsoft® Exchange technology - > http://link.mail2web.com/LIVE > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org mail2web LIVE Free email based on Microsoft® Exchange technology - http://link.mail2web.com/LIVE - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
lightwindow and ayax call
Hi all, I am using Lightwindow (http://www.stickmanlabs.com/lightwindow/) to show some swf. But if there are some ayax call before showing the swf, it fails to show in a modal window. Instead, it shows as a webpage in itself. I can see that js libraries are still in the header. I cant find out a reason why it fails. Does anyone have run into the same problem? Thanks in advance. -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: OnChangeAjaxBehavior with palette
http://www.mail-archive.com/users@wicket.apache.org/msg16517.html http://old.nabble.com/Palette-and-recorderComponent-initialization-%28Wicket-1.3.1%29-td15871741.html 2010/1/7 wic...@geofflancaster.com : > But how can you inject previously selected items back into the selected > menu? The only thing i can see is inserting items into the list as a whole > which puts them into the available menu. > > can you give me a code snippet and better explanation of what you mean? > > Original Message: > - > From: Scott Swank scott.sw...@gmail.com > Date: Thu, 7 Jan 2010 09:49:41 -0800 > To: users@wicket.apache.org > Subject: Re: OnChangeAjaxBehavior with palette > > > You could add an AjaxFormComponentUpdatingBehavior to your palette so > that your selections are pushed back to the underlying model. > > On Thu, Jan 7, 2010 at 9:40 AM, wic...@geofflancaster.com > wrote: >> any help? i cant be the only person to have tried this. >> >> Original Message: >> - >> From: wic...@geofflancaster.com wic...@geofflancaster.com >> Date: Wed, 6 Jan 2010 14:13:50 -0500 >> To: users@wicket.apache.org >> Subject: OnChangeAjaxBehavior with palette >> >> >> i'm trying using a text field to search through the items available to be >> selected in a palette. As of right now, it searches correctly but if I add >> items to the "selected" side of the palette and then search again, I lose >> my previously selected choices. >> >> Is there anyway to only refresh the available menu and not the selected >> menu? >> >> >> mail2web.com – Enhanced email for the mobile individual based on > Microsoft® >> Exchange - http://link.mail2web.com/Personal/EnhancedEmail >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> mail2web LIVE – Free email based on Microsoft® Exchange technology - >> http://link.mail2web.com/LIVE >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > mail2web LIVE – Free email based on Microsoft® Exchange technology - > http://link.mail2web.com/LIVE > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: OnChangeAjaxBehavior with palette
Hmm. I dug around a bit and Palette is a Panel rather than a form component. It however allows access to an internal FormComponent named recorder. So you can: palette.getRecorderComponent().add( new OnChangeAjaxBehavior(){ public void onUpdate(AjaxRequestTarget req){} } ); But that's pretty much off the top of my head, I haven't set up a page and tested it. Scott On Thu, Jan 7, 2010 at 9:57 AM, wic...@geofflancaster.com wrote: > But how can you inject previously selected items back into the selected > menu? The only thing i can see is inserting items into the list as a whole > which puts them into the available menu. > > can you give me a code snippet and better explanation of what you mean? > > Original Message: > - > From: Scott Swank scott.sw...@gmail.com > Date: Thu, 7 Jan 2010 09:49:41 -0800 > To: users@wicket.apache.org > Subject: Re: OnChangeAjaxBehavior with palette > > > You could add an AjaxFormComponentUpdatingBehavior to your palette so > that your selections are pushed back to the underlying model. > > On Thu, Jan 7, 2010 at 9:40 AM, wic...@geofflancaster.com > wrote: >> any help? i cant be the only person to have tried this. >> >> Original Message: >> - >> From: wic...@geofflancaster.com wic...@geofflancaster.com >> Date: Wed, 6 Jan 2010 14:13:50 -0500 >> To: users@wicket.apache.org >> Subject: OnChangeAjaxBehavior with palette >> >> >> i'm trying using a text field to search through the items available to be >> selected in a palette. As of right now, it searches correctly but if I add >> items to the "selected" side of the palette and then search again, I lose >> my previously selected choices. >> >> Is there anyway to only refresh the available menu and not the selected >> menu? >> >> >> mail2web.com – Enhanced email for the mobile individual based on > Microsoft® >> Exchange - http://link.mail2web.com/Personal/EnhancedEmail >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> mail2web LIVE – Free email based on Microsoft® Exchange technology - >> http://link.mail2web.com/LIVE >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > mail2web LIVE – Free email based on Microsoft® Exchange technology - > http://link.mail2web.com/LIVE > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How to close a Wicket application?
@Giovanni, Maybe you should re-think that requirement. Even thought your intentions are good, if you review carefully your statement "if some important configuration is missing", what could be missing if you deploy your application as a self contained war? You mean like DataSources or Container specific configuration? If that happens to you then you should need to review your deployment strategy. Or if you can explain more what are you trying to achieve or explain what problem is you actually having, we could find you an alternate solution. Giovanni-40 wrote: > > Hi Martjin, > > I tried with System.exit(1) on Weblogic, but it is also stopping the whole > Weblogic server. It seems that this solution is too strong. :) > > Maybe the solution ofMartin Grigorov is softer. > > At the end, we are using the ApplicationContext.close() method, which > seems to stop the Spring beans, except the Wicket bean (I don't understand > why). Then, if a user tries to call a Wicket page, he will get an error, > not because the Wicket app is down, but because the collaborating Spring > beans are down. > > regards, > giovanni > > > > > > > > From: Martijn Dashorst > To: users@wicket.apache.org > Sent: Thu, January 7, 2010 12:13:53 PM > Subject: Re: How to close a Wicket application? > > Call System.exit(1) ... that will do the trick. > > Always nice to see all applications deployed to a container disappear. > > Martijn > > On Thu, Jan 7, 2010 at 12:03 PM, Erik van Oosten > wrote: >> There is no hook in Wicket to stop. Wicket normally starts and ends with >> the >> web context it is running in. So ending the application is done by >> undeploying the web-app. You'll need to find hooks in your serlvet >> container. Spring will automatically shutdown with the web context as >> well. >> >> Regards, >> Erik. >> >> Giovanni wrote: >>> >>> I am using Spring + Wicket. >>> >>> When the Wicket application starts, if some important configuration is >>> missing, I want to close all the application context, destroying all the >>> Spring beans, including also the Wicket application, which is configured >>> as >>> a Spring bean by SpringWebApplicationFactory. >>> >>> I used the close() (I also tried stop() and destroy() methods) of the >>> ApplicationContext, but it doesn't destroy the Wicket app. >>> >>> I then searched for a method of Wicket Application, which allows to >>> stop/close the webapp, but I did not find it. >>> >>> How is it possible to stop a Wicket application from inside the >>> application itself (that is suicide)? >>> >>> Best regards, >>> giovanni >>> >> >> -- >> Erik van Oosten >> http://day-to-day-stuff.blogspot.com/ >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.4 increases type safety for web applications > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > -- View this message in context: http://old.nabble.com/How-to-close-a-Wicket-application--tp27057651p27064635.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
PageExpiredException not being thrown
After letting a session expire on a Search page using QueryStringUrlCodingStrategy, hovering on a Link with an onmouseover AjaxEventBehavior event throws a PageExpiredException, as expected. However, after allowing the session to expire in the same circumstance, and then clicking another link with only onclick overridden (containing one line: setResponsePage(Search.class, params)), no PageExpiredException is thrown. Instead, the following is thrown: org.apache.wicket.WicketRuntimeException unable to find component with path on stateless page [Page class = edu.chop.bic.cnv.ui.Search, id = 0, version = 0] it could be that the component is inside a repeater make your component return false in getStatelessHint() Any ideas why PageExpiredException is not being thrown in this case? Also, resubmitting the Search form after the session expires does not cause the PageExpiredException, either. Thanks, Ryan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[OT] qucik help with eclipse maven repo
OFF TOPIC! Hi, totally off topic - I know But I need someone outside from Poland boarders to click on this link here: http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo it redirects me to a non-complete maven repo in Poland ( http://ftp.man.poznan.pl/eclipse/rt/eclipselink/maven.repo/) that does not have jar for eclipse-link in 2.0.0-SNAPSHOT version. So can anyone plleeaassee click this http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo and see where it redirects him? -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: [OT] qucik help with eclipse maven repo
http://eclipse.a3-system.be/rt/eclipselink/maven.repo/ 2010/1/7 Paul Szulc : > OFF TOPIC! > > Hi, > > totally off topic - I know But I need someone outside from Poland > boarders to click on this link here: > > http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo > > it redirects me to a non-complete maven repo in Poland ( > http://ftp.man.poznan.pl/eclipse/rt/eclipselink/maven.repo/) that does not > have jar for eclipse-link in 2.0.0-SNAPSHOT version. > > So can anyone plleeaassee click this > http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo > and see where it redirects him? > > > > > -- > Best regards, > Paul Szulc > > http://paulszulc.wordpress.com > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] qucik help with eclipse maven repo
thank you so much!! polish mirror http://ftp.man.poznan.pl/eclipse/rt/eclipselink/maven.repo/ lacks half of the jars thx again!! On Thu, Jan 7, 2010 at 7:44 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > http://eclipse.a3-system.be/rt/eclipselink/maven.repo/ > > 2010/1/7 Paul Szulc : > > OFF TOPIC! > > > > Hi, > > > > totally off topic - I know But I need someone outside from Poland > > boarders to click on this link here: > > > > > http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo > > > > it redirects me to a non-complete maven repo in Poland ( > > http://ftp.man.poznan.pl/eclipse/rt/eclipselink/maven.repo/) that does > not > > have jar for eclipse-link in 2.0.0-SNAPSHOT version. > > > > So can anyone plleeaassee click this > > > http://www.eclipse.org/downloads/download.php?r=1&nf=1&file=/rt/eclipselink/maven.repo > > and see where it redirects him? > > > > > > > > > > -- > > Best regards, > > Paul Szulc > > > > http://paulszulc.wordpress.com > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: How to close a Wicket application?
We have some configurations (e.g. URL for webservices), which are coming from properties defined in the launch command of the application server (e.g -Dws.url=...). We do in this way, instead of using properties file, because the client (bank) environment for deploying is very rigid and unconvenient even for redeploying a war. That's why we decided to keep some properties outside of the war file. The client environment is very unstable, where many errors happens during the deployment. So we think that defining some properties using the command line can give us some more flexibility. Anyway we found some compromised solution using the ApplicationContext.close() method. It's not perfect, but we can live with that. best regards giovanni From: Juan Carlos Garcia M. To: users@wicket.apache.org Sent: Thu, January 7, 2010 7:25:58 PM Subject: Re: How to close a Wicket application? @Giovanni, Maybe you should re-think that requirement. Even thought your intentions are good, if you review carefully your statement "if some important configuration is missing", what could be missing if you deploy your application as a self contained war? You mean like DataSources or Container specific configuration? If that happens to you then you should need to review your deployment strategy. Or if you can explain more what are you trying to achieve or explain what problem is you actually having, we could find you an alternate solution. Giovanni-40 wrote: > > Hi Martjin, > > I tried with System.exit(1) on Weblogic, but it is also stopping the whole > Weblogic server. It seems that this solution is too strong. :) > > Maybe the solution ofMartin Grigorov is softer. > > At the end, we are using the ApplicationContext.close() method, which > seems to stop the Spring beans, except the Wicket bean (I don't understand > why). Then, if a user tries to call a Wicket page, he will get an error, > not because the Wicket app is down, but because the collaborating Spring > beans are down. > > regards, > giovanni > > > > > > > > From: Martijn Dashorst > To: users@wicket.apache.org > Sent: Thu, January 7, 2010 12:13:53 PM > Subject: Re: How to close a Wicket application? > > Call System.exit(1) ... that will do the trick. > > Always nice to see all applications deployed to a container disappear. > > Martijn > > On Thu, Jan 7, 2010 at 12:03 PM, Erik van Oosten > wrote: >> There is no hook in Wicket to stop. Wicket normally starts and ends with >> the >> web context it is running in. So ending the application is done by >> undeploying the web-app. You'll need to find hooks in your serlvet >> container. Spring will automatically shutdown with the web context as >> well. >> >> Regards, >> Erik. >> >> Giovanni wrote: >>> >>> I am using Spring + Wicket. >>> >>> When the Wicket application starts, if some important configuration is >>> missing, I want to close all the application context, destroying all the >>> Spring beans, including also the Wicket application, which is configured >>> as >>> a Spring bean by SpringWebApplicationFactory. >>> >>> I used the close() (I also tried stop() and destroy() methods) of the >>> ApplicationContext, but it doesn't destroy the Wicket app. >>> >>> I then searched for a method of Wicket Application, which allows to >>> stop/close the webapp, but I did not find it. >>> >>> How is it possible to stop a Wicket application from inside the >>> application itself (that is suicide)? >>> >>> Best regards, >>> giovanni >>> >> >> -- >> Erik van Oosten >> http://day-to-day-stuff.blogspot.com/ >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > > -- > Become a Wicket expert, learn from the best: http://wicketinaction.com > Apache Wicket 1.4 increases type safety for web applications > Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > -- View this message in context: http://old.nabble.com/How-to-close-a-Wicket-application--tp27057651p27064635.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
SV: DiskPageStore file increasing to max size by only refreshing a HomePage
> about "unversioned", i have just done a quick test on wicket-examples > > helloworld, adding serialVersionUID (not informed in the examples) and > the > result is the same: pagestore file increasing to the "infinite" (max > size of > course :) I meant Wicket's setVersioned(false); the serialVersionUID is just for binary serialization, as long as the fields do not change the computed value the VM generates for you should be the same. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DiskPageStore file increasing to max size by only refreshing a HomePage
SetVersioned(false) does not help with new page instances being created. -Matej On Thu, Jan 7, 2010 at 9:46 PM, Wilhelmsen Tor Iver wrote: >> about "unversioned", i have just done a quick test on wicket-examples > >> helloworld, adding serialVersionUID (not informed in the examples) and >> the >> result is the same: pagestore file increasing to the "infinite" (max >> size of >> course :) > > I meant Wicket's > > setVersioned(false); > > the serialVersionUID is just for binary serialization, as long as the fields > do not change the computed value the VM generates for you should be the same. > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Testing with DropDowns - onChange event
I'm trying to test onChange even on one dropdown so that the value is changed in the other dropdown.When I submit the form I'm not able to get the values for any of the fields. I have seen people getting the same error but there is no solution so far. Thanks for helping in advance. @Test public void testDummyPage() throws Exception { TestPage testPage = new TestPage("id"); wicketTester.startPage(testPage); // assert rendered field components wicketTester.assertComponent("form:txtName", TextField.class); wicketTester.assertComponent("form:department", DropDownChoice.class); wicketTester.assertComponent("form:employee", DropDownChoice.class); FormTester formTester1 = wicketTester.newFormTester("form"); formTester1.setValue("txtName", "amit"); formTester1.select("department", 0); wicketTester.executeAjaxEvent("form:department", "onchange"); wicketTester.assertComponentOnAjaxResponse("form:employee"); formTester1.select("employee", 1); formTester1.submit("submit"); Assert.assertEquals(formTester1.getTextComponentValue("txtName"), "amit"); Assert.assertNotNull(wicketTester.getTagByWicketId("department").getValue()); Assert.assertNotNull(wicketTester.getTagByWicketId("employee").getValue()); DropDownChoice dropDownChoice = (DropDownChoice) wicketTester.getComponentFromLastRenderedPage( "form:department"); System.out.println(" department " + formTester1.getForm().get("department")); Assert.assertEquals((dropDownChoice.getModelObjectAsString()), "HR"); } ** public class TestPage extends WebPage { private String txtName; private String department; private String deptName; private String deptId; private String employee; private DropDownChoice ddc1; public TestPage(String id) { final Form addressForm = new Form("form", new CompoundPropertyModel(this)); addressForm.setOutputMarkupId(true); add(addressForm); /*Address TextField*/ TextField addressTxtField = new TextField("txtName", new PropertyModel(this, "txtName"), String.class); addressTxtField.add(StringValidator.maximumLength(15)); addressForm.add(addressTxtField); List depList = new ArrayList(); Dept dept = new Dept(); dept.setDeptId("1"); dept.setDeptName("HR"); depList.add(dept); Dept dept1 = new Dept(); dept1.setDeptName("AC"); dept1.setDeptId("2"); Dept dept2 = new Dept(); dept2.setDeptName("AD"); dept2.setDeptId("3"); depList.add(dept1); depList.add(dept2); ChoiceRenderer choiceRendererState = new ChoiceRenderer("deptName", "deptId"); //addressForm.add(new DropDownChoice("department", new PropertyModel(this, "department"), depList, //choiceRendererState)); final DropDownChoice ddc = new DropDownChoice("department", new PropertyModel(this, "department"), Arrays.asList( "HR", "IS", "FINANCE/ACCOUNTING")); addressForm.add(ddc.setOutputMarkupId(true)); ddc1 = new DropDownChoice("employee", new PropertyModel(this, "employee"), Arrays.asList( "EMP1", "EMP2", "EMP3")); addressForm.add(ddc1.setOutputMarkupId(true)); ddc.add(new AjaxFormComponentUpdatingBehavior("onchange") { @Override protected void onUpdate(AjaxRequestTarget target) { if (ddc.getModelObject() != null) { target.addComponent(ddc1.setChoices(Arrays.asList("EMP1", "EMP2"))); } } }); addressForm.add(new Button("submit") { protected void onSubmit(AjaxRequestTarget target, Form form) { } }); } public String getTxtName() { return txtName; } public void setTxtName(String txtName) { this.txtName = txtName; } public String getDepartment() { return department; } public void setDepartment(String department) { this.department = department; } public String getDeptName() { return deptName; } public void setDeptName(String deptName) { this.deptName = deptName; } public String getDeptId() { return deptId; } public void setDeptId(String deptId) { this.deptId = deptId; } public String getEmployee() { return employee; } public void setEmployee(String employee) { this.employee = employee; } } *** TestPage.html
Testing with DropDowns - onChange event
> I'm trying to test onChange even on one dropdown so that the value is > changed in the other dropdown.When I submit the form I'm not able to > get the values for any of the fields. > I have seen people getting the same error but there is no solution so > far. > Thanks for helping in advance. > > > @Test > public void testDummyPage() throws Exception > { > TestPage testPage = new TestPage("id"); > wicketTester.startPage(testPage); > > // assert rendered field components > wicketTester.assertComponent("form:txtName", TextField.class); > wicketTester.assertComponent("form:department", > DropDownChoice.class); > wicketTester.assertComponent("form:employee", > DropDownChoice.class); > > FormTester formTester1 = wicketTester.newFormTester("form"); > formTester1.setValue("txtName", "amit"); > formTester1.select("department", 0); > > > wicketTester.executeAjaxEvent("form:department", "onchange"); > wicketTester.assertComponentOnAjaxResponse("form:employee"); > > formTester1.select("employee", 1); > > formTester1.submit("submit"); > > > > Assert.assertEquals(formTester1.getTextComponentValue("txtName"), > "amit"); > > Assert.assertNotNull(wicketTester.getTagByWicketId("department").getVa > lue()); > > Assert.assertNotNull(wicketTester.getTagByWicketId("employee").getValu > e()); > > DropDownChoice dropDownChoice = (DropDownChoice) > wicketTester.getComponentFromLastRenderedPage( > "form:department"); > > System.out.println(" department " + > formTester1.getForm().get("department")); > Assert.assertEquals((dropDownChoice.getModelObjectAsString()), > "HR"); > } > > > > ** > public class TestPage extends WebPage > { > > private String txtName; > private String department; > private String deptName; > private String deptId; > private String employee; > private DropDownChoice ddc1; > > public TestPage(String id) > { > final Form addressForm = new Form("form", new > CompoundPropertyModel(this)); > addressForm.setOutputMarkupId(true); > add(addressForm); > > /*Address TextField*/ > TextField addressTxtField = new TextField("txtName", > new PropertyModel(this, "txtName"), String.class); > addressTxtField.add(StringValidator.maximumLength(15)); > addressForm.add(addressTxtField); > > List depList = new ArrayList(); > Dept dept = new Dept(); > dept.setDeptId("1"); > dept.setDeptName("HR"); > depList.add(dept); > Dept dept1 = new Dept(); > dept1.setDeptName("AC"); > dept1.setDeptId("2"); > Dept dept2 = new Dept(); > dept2.setDeptName("AD"); > dept2.setDeptId("3"); > depList.add(dept1); > depList.add(dept2); > ChoiceRenderer choiceRendererState = new > ChoiceRenderer("deptName", > "deptId"); > //addressForm.add(new DropDownChoice("department", new > PropertyModel(this, "department"), depList, > //choiceRendererState)); > final DropDownChoice ddc = new DropDownChoice("department", > new PropertyModel(this, "department"), Arrays.asList( > "HR", "IS", "FINANCE/ACCOUNTING")); > addressForm.add(ddc.setOutputMarkupId(true)); > > ddc1 = new DropDownChoice("employee", new PropertyModel(this, > "employee"), Arrays.asList( > "EMP1", "EMP2", "EMP3")); > addressForm.add(ddc1.setOutputMarkupId(true)); > > ddc.add(new AjaxFormComponentUpdatingBehavior("onchange") > { > > @Override > protected void onUpdate(AjaxRequestTarget target) > { > if (ddc.getModelObject() != null) > { > > > target.addComponent(ddc1.setChoices(Arrays.asList("EMP1", > "EMP2"))); > } > } > }); > > > > addressForm.add(new Button("submit") > { > > protected void onSubmit(AjaxRequestTarget target, Form > form) > { > } > }); > > } > > public String getTxtName() > { > return txtName; > } > > public void setTxtName(String txtName) > { > this.txtName = txtName; > } > > public String getDepartment() > { > return department; > } > > public void setDepartment(String department) > { > this.department = department; > } > > public String getDeptName() > { > return deptName; > } > > public void setDeptName(String deptName) > { > this.deptName = deptName; > } > > public String getDeptId() > { > return deptId; > } > > public void setDeptId(String deptId) > { > this.deptId = deptId; >
Testing with DropDowns - onChange event
> I'm trying to test onChange even on one dropdown so that the value is > changed in the other dropdown.When I submit the form I'm not able to > get the values for any of the fields. > I have seen people getting the same error but there is no solution so > far. > Thanks for helping in advance. > > > @Test > public void testDummyPage() throws Exception > { > TestPage testPage = new TestPage("id"); > wicketTester.startPage(testPage); > > // assert rendered field components > wicketTester.assertComponent("form:txtName", TextField.class); > wicketTester.assertComponent("form:department", > DropDownChoice.class); > wicketTester.assertComponent("form:employee", > DropDownChoice.class); > > FormTester formTester1 = wicketTester.newFormTester("form"); > formTester1.setValue("txtName", "amit"); > formTester1.select("department", 0); > > > wicketTester.executeAjaxEvent("form:department", "onchange"); > wicketTester.assertComponentOnAjaxResponse("form:employee"); > > formTester1.select("employee", 1); > > formTester1.submit("submit"); > > > > Assert.assertEquals(formTester1.getTextComponentValue("txtName"), > "amit"); > > Assert.assertNotNull(wicketTester.getTagByWicketId("department").getVa > lue()); > > Assert.assertNotNull(wicketTester.getTagByWicketId("employee").getValu > e()); > > DropDownChoice dropDownChoice = (DropDownChoice) > wicketTester.getComponentFromLastRenderedPage( > "form:department"); > > System.out.println(" department " + > formTester1.getForm().get("department")); > Assert.assertEquals((dropDownChoice.getModelObjectAsString()), > "HR"); > } > > > > ** > public class TestPage extends WebPage > { > > private String txtName; > private String department; > private String deptName; > private String deptId; > private String employee; > private DropDownChoice ddc1; > > public TestPage(String id) > { > final Form addressForm = new Form("form", new > CompoundPropertyModel(this)); > addressForm.setOutputMarkupId(true); > add(addressForm); > > /*Address TextField*/ > TextField addressTxtField = new TextField("txtName", > new PropertyModel(this, "txtName"), String.class); > addressTxtField.add(StringValidator.maximumLength(15)); > addressForm.add(addressTxtField); > > List depList = new ArrayList(); > Dept dept = new Dept(); > dept.setDeptId("1"); > dept.setDeptName("HR"); > depList.add(dept); > Dept dept1 = new Dept(); > dept1.setDeptName("AC"); > dept1.setDeptId("2"); > Dept dept2 = new Dept(); > dept2.setDeptName("AD"); > dept2.setDeptId("3"); > depList.add(dept1); > depList.add(dept2); > ChoiceRenderer choiceRendererState = new > ChoiceRenderer("deptName", > "deptId"); > //addressForm.add(new DropDownChoice("department", new > PropertyModel(this, "department"), depList, > //choiceRendererState)); > final DropDownChoice ddc = new DropDownChoice("department", > new PropertyModel(this, "department"), Arrays.asList( > "HR", "IS", "FINANCE/ACCOUNTING")); > addressForm.add(ddc.setOutputMarkupId(true)); > > ddc1 = new DropDownChoice("employee", new PropertyModel(this, > "employee"), Arrays.asList( > "EMP1", "EMP2", "EMP3")); > addressForm.add(ddc1.setOutputMarkupId(true)); > > ddc.add(new AjaxFormComponentUpdatingBehavior("onchange") > { > > @Override > protected void onUpdate(AjaxRequestTarget target) > { > if (ddc.getModelObject() != null) > { > > > target.addComponent(ddc1.setChoices(Arrays.asList("EMP1", > "EMP2"))); > } > } > }); > > > > addressForm.add(new Button("submit") > { > > protected void onSubmit(AjaxRequestTarget target, Form > form) > { > } > }); > > } > > public String getTxtName() > { > return txtName; > } > > public void setTxtName(String txtName) > { > this.txtName = txtName; > } > > public String getDepartment() > { > return department; > } > > public void setDepartment(String department) > { > this.department = department; > } > > public String getDeptName() > { > return deptName; > } > > public void setDeptName(String deptName) > { > this.deptName = deptName; > } > > public String getDeptId() > { > return deptId; > } > > public void setDeptId(String deptId) > { > this.deptId = deptId; > }
Testing with Panels
I'm having a Panel which has some fields. I'm trying to write a test case to test the Panel. I have a form inside the Panel. But When I call formTester.form("submit") It calls the HomePage. It doesn't fail but when I try to get the values of the fields I get null. What is the difference between using a formtester.submit abd wicketTester.submitForm. How to use FormTester with Panels and how to retrieve the values of the fields defined in the Panel. wicketTester.startPanel(MyPanel.class); wicketTester.assertComponent("panel:form:city", TextField.class); wicketTester.assertComponent("panel:form", Form.class); FormTester formTester = wicketTester.newFormTester("panel:form"); formTester.select("country", 0); wicketTester.executeAjaxEvent("panel:form:country", "onchange"); wicketTester.assertComponentOnAjaxResponse("panel:form:state"); DropDownChoice stateDropDownChoice = (DropDownChoice) wicketTester.getComponentFromLastRenderedPage( "panel:form:state"); Assert.assertEquals(stateDropDownChoice.getChoices().size(), 2); formTester.select("state", 1); formTester.setValue("zipCodePanel:zip", "12345"); formTester.setValue("city", "ABC"); System.out.println("zip code *222** " + formTester.getTextComponentValue("panel:form:city")); //wicketTester.submitForm("panel:form"); formTester.submit("save"); System.out.println("zip code *111** " + formTester.getTextComponentValue("city")); Assert.assertEquals(formTester.getTextComponentValue("panel:form:city"), "ABC"); System.out.println("zip code *111** " + formTester.getTextComponentValue("panel:form:city")); Assert.assertNotNull("country"); Assert.assertNotNull("state"); Assert.assertEquals(formTester.getForm().get("state"), 201L);
Wicket and Spring - mocking a particular bean when Wicket is in development mode?
Hi all, This is probably more of a Spring question than a Wicket question, but I'm asking here in the hopes that someone else has done this before. Basically, we have a page that uses the @SpringBean annotation to inject a credit card validation service. At the moment, when we're developing, it's injecting the actual service, that then goes off to our card processor and validates the card etc. For integration testing etc. I want to avoid this, so I've created a simple implementation of the validation service that always returns true. Question I have, is how can I provide this bean instead of the real bean, based on the value of WebApplication.getConfigurationType()? The obvious solution for me would be to do it in the initialization of our WicketApplication - we already have a "if we're in development mode" section where we output component paths and turn on request logging and session size recording etc. is there a way I can programmatically provide my bean at this point? Or am I going about this entirely the wrong way? Many thanks for any advice offered, Regards, Liam Clarke
Re: Wicket and Spring - mocking a particular bean when Wicket is in development mode?
Hi, use a different applicationContext.xml that is used for integration testing. (use maven profiles for using different resource path pointing to different applicationContext.xml files). You cannot use WebApplication.getConfigurationType() as you need a preloaded spring configuration before your WebApplication is instantiated. Best Regards, Ilja Pavkovic Am Donnerstag, 7. Januar 2010 23:05:23 schrieb Liam Clarke-Hutchinson: > Hi all, > > This is probably more of a Spring question than a Wicket question, but I'm > asking here in the hopes that someone else has done this before. Basically, > we have a page that uses the @SpringBean annotation to inject a credit card > validation service. At the moment, when we're developing, it's injecting > the actual service, that then goes off to our card processor and validates > the card etc. For integration testing etc. I want to avoid this, so I've > created a simple implementation of the validation service that always > returns true. Question I have, is how can I provide this bean instead of > the real bean, based on the value of > WebApplication.getConfigurationType()? > > The obvious solution for me would be to do it in the initialization of our > WicketApplication - we already have a "if we're in development mode" > section where we output component paths and turn on request logging and > session size recording etc. is there a way I can programmatically provide > my bean at this point? Or am I going about this entirely the wrong way? > > Many thanks for any advice offered, > > Regards, > > Liam Clarke > -- binaere bauten gmbh · tempelhofer ufer 1a · 10961 berlin +49 · 171 · 9342 465 Handelsregister: HRB 115854 - Amtsgericht Charlottenburg Geschäftsführer: Dipl.-Inform. Ilja Pavkovic, Dipl.-Inform. Jost Becker - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TabbedPanel + authorization strategy
Hi, I'm sorry to put such an old topic up. But I'm searching for a way to secure tabs with wicket-auth-roles and I don't want to display the tabs when the user has no authorization for its content panel. I can't find the source code which is related to. Maybe somone can just add a little code snippet how it works? That would be really great. Best regards, Torben -- View this message in context: http://old.nabble.com/TabbedPanel-%2B-authorization-strategy-tp13949910p27068118.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TabbedPanel + authorization strategy
Can't you just not add the tab if the user doesn't have the role/permission required? On Thu, Jan 7, 2010 at 5:25 PM, toberger wrote: > > Hi, > I'm sorry to put such an old topic up. > But I'm searching for a way to secure tabs with wicket-auth-roles and I > don't want to display the tabs when the user has no authorization for its > content panel. > > I can't find the source code which is related to. Maybe somone can just add > a little code snippet how it works? That would be really great. > > Best regards, > Torben > -- > View this message in context: > http://old.nabble.com/TabbedPanel-%2B-authorization-strategy-tp13949910p27068118.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketTester.executeAjaxEvent not working
I'm trying to write a test case in which I'm having onChange event for the drop down. I also have textfield as well. When I submit the form I don't get the value of the textfield. But if I comment the onChange event call then I'm able to get the value of the Text Field. Any help... @Test public void testDummyPage() throws Exception { TestPage testPage = new TestPage("id"); wicketTester.startPage(testPage); // assert rendered field components wicketTester.assertComponent("form:txtName", TextField.class); wicketTester.assertComponent("form:department", DropDownChoice.class); wicketTester.assertComponent("form:employee", DropDownChoice.class); FormTester formTester1 = wicketTester.newFormTester("form"); formTester1.setValue("txtName", "test"); formTester1.select("department", 0); wicketTester.executeAjaxEvent("form:department", "onchange"); wicketTester.assertComponentOnAjaxResponse("form:employee"); formTester1.select("employee", 1); formTester1.submit(); Assert.assertEquals(formTester1.getTextComponentValue("txtName"), "test"); DropDownChoice dropDownChoice = (DropDownChoice) wicketTester.getComponentFromLastRenderedPage( "form:department"); System.out.println(" dropDownChoice " + dropDownChoice.getModelObjectAsString()); System.out.println(" department " + formTester1.getForm().get("department")); Assert.assertEquals((dropDownChoice.getModelObjectAsString()), "HR"); }
Re: wicketTester.executeAjaxEvent not working
Just dealt with this issue: http://old.nabble.com/WicketTesterNo-Form-onSubmit-when-using-Ajax-DropDownChoice-Component-td27006022.html http://old.nabble.com/WicketTesterNo-Form-onSubmit-when-using-Ajax-DropDownChoice-Component-td27006022.html -- View this message in context: http://old.nabble.com/wicketTester.executeAjaxEvent-not-working-tp27069307p27069445.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Help with Wicket Adoption Numbers
Hi, I am facing a hurdle that need crossing in my final attempt to push Wicket for use in an organization. I have: 1) Prototyped a small size module 2) Did 2-3 presentations on the key features and advantages of wicket No one is disputing my claims about productivity and good OO code that was the result. BUT, the technology evaluation committee is NOT recommending Wicket because of. of all things. - Wicket's Low Adoption Rate Can I find any numbers to blow this away? My alternative is to accept the finding and work with Struts 2. Which will mean the stack will need to expand to DWR (for security). I REALLY don't want to go there, and am even considering not taking part in this project due to the high risk involved, only 9 months to introduce huge changes to a system that has lots of legacy problems (took about 3 years to build). I think a lot of those years were spent wrestling with the monster that is EJB 1.1. The only way I thought the project can even be on time is to scrap the entire presentation layer (aka Struts) and redo it in Wicket with 1 dedicated developer while the rest of the team work on killing the beast that is EJB 1.1 by refactoring the biz code. Sigh, my choices are stark. It's either to keep the job and plough ahead and probably fail spectacularly 9 months later or go hungry and explain to my wife why we need to spend less on the kid.. It's easy to blame the tech committee but they did help me find wicket by rejecting my initial proposal to build the new system on a (JQuery+JSON+REST) framework, which can be very productive as well, if not as "clean" as Wicket. Sorry for rambling so much. Is there any way I can demolish the silly low adoption rate argument (omg I still don't believe it can be so lame)? Lester - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with Wicket Adoption Numbers
The wiki has a list of some web sites that use Wicket. http://cwiki.apache.org/WICKET/websites-based-on-wicket.html A quick search of IBM shows approx 1,080 articles on Wicket: http://www.google.com/search?q=site:ibm.com+wicket Scott On Thu, Jan 7, 2010 at 4:43 PM, Lester Chua wrote: > Hi, > > I am facing a hurdle that need crossing in my final attempt to push Wicket > for use in an organization. > I have: > > 1) Prototyped a small size module > 2) Did 2-3 presentations on the key features and advantages of wicket > > No one is disputing my claims about productivity and good OO code that was > the result. > > BUT, the technology evaluation committee is NOT recommending Wicket because > of. of all things. > - Wicket's Low Adoption Rate > Can I find any numbers to blow this away? > > My alternative is to accept the finding and work with Struts 2. Which will > mean the stack will need to expand to DWR > (for security). I REALLY don't want to go there, and am even considering not > taking part in this project due to the high risk involved, only 9 months to > introduce huge changes to a system that has lots of legacy problems (took > about 3 years to build). I think a lot of those years were spent wrestling > with the monster that is EJB 1.1. The only way I thought the project can > even be on time is to scrap the entire presentation layer (aka Struts) and > redo it in Wicket with 1 dedicated developer while the rest of the team work > on killing the beast that is EJB 1.1 by refactoring the biz code. > > Sigh, my choices are stark. It's either to keep the job and plough ahead and > probably fail spectacularly 9 months later or go hungry and explain to my > wife why we need to spend less on the kid.. > > It's easy to blame the tech committee but they did help me find wicket by > rejecting my initial proposal to build the new system on a > (JQuery+JSON+REST) framework, which can be very productive as well, if not > as "clean" as Wicket. > > Sorry for rambling so much. Is there any way I can demolish the silly low > adoption rate argument (omg I still don't believe it can be so lame)? > > Lester > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with Wicket Adoption Numbers
On the wiki there are some pages to help your cause: http://cwiki.apache.org/WICKET/websites-based-on-wicket.html http://cwiki.apache.org/WICKET/products-based-on-wicket.html as well as blogs talking about Wicket, and lots more useful PR info: http://cwiki.apache.org/WICKET/index.html All the best! cheers, Steve On 08/01/2010, at 11:43 AM, Lester Chua wrote: > Hi, > > I am facing a hurdle that need crossing in my final attempt to push Wicket > for use in an organization. > I have: > > 1) Prototyped a small size module > 2) Did 2-3 presentations on the key features and advantages of wicket > > No one is disputing my claims about productivity and good OO code that was > the result. > > BUT, the technology evaluation committee is NOT recommending Wicket because > of. of all things. > - Wicket's Low Adoption Rate > Can I find any numbers to blow this away? > > My alternative is to accept the finding and work with Struts 2. Which will > mean the stack will need to expand to DWR > (for security). I REALLY don't want to go there, and am even considering not > taking part in this project due to the high risk involved, only 9 months to > introduce huge changes to a system that has lots of legacy problems (took > about 3 years to build). I think a lot of those years were spent wrestling > with the monster that is EJB 1.1. The only way I thought the project can even > be on time is to scrap the entire presentation layer (aka Struts) and redo it > in Wicket with 1 dedicated developer while the rest of the team work on > killing the beast that is EJB 1.1 by refactoring the biz code. > > Sigh, my choices are stark. It's either to keep the job and plough ahead and > probably fail spectacularly 9 months later or go hungry and explain to my > wife why we need to spend less on the kid.. > > It's easy to blame the tech committee but they did help me find wicket by > rejecting my initial proposal to build the new system on a (JQuery+JSON+REST) > framework, which can be very productive as well, if not as "clean" as Wicket. > > Sorry for rambling so much. Is there any way I can demolish the silly low > adoption rate argument (omg I still don't believe it can be so lame)? > > Lester > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with Wicket Adoption Numbers
Thanks for the links. I have already submitted them as part of the evaluation process. I'll take a look at the IBM links from scott. Regards, Lester Steve Swinsburg wrote: On the wiki there are some pages to help your cause: http://cwiki.apache.org/WICKET/websites-based-on-wicket.html http://cwiki.apache.org/WICKET/products-based-on-wicket.html as well as blogs talking about Wicket, and lots more useful PR info: http://cwiki.apache.org/WICKET/index.html All the best! cheers, Steve On 08/01/2010, at 11:43 AM, Lester Chua wrote: Hi, I am facing a hurdle that need crossing in my final attempt to push Wicket for use in an organization. I have: 1) Prototyped a small size module 2) Did 2-3 presentations on the key features and advantages of wicket No one is disputing my claims about productivity and good OO code that was the result. BUT, the technology evaluation committee is NOT recommending Wicket because of. of all things. - Wicket's Low Adoption Rate Can I find any numbers to blow this away? My alternative is to accept the finding and work with Struts 2. Which will mean the stack will need to expand to DWR (for security). I REALLY don't want to go there, and am even considering not taking part in this project due to the high risk involved, only 9 months to introduce huge changes to a system that has lots of legacy problems (took about 3 years to build). I think a lot of those years were spent wrestling with the monster that is EJB 1.1. The only way I thought the project can even be on time is to scrap the entire presentation layer (aka Struts) and redo it in Wicket with 1 dedicated developer while the rest of the team work on killing the beast that is EJB 1.1 by refactoring the biz code. Sigh, my choices are stark. It's either to keep the job and plough ahead and probably fail spectacularly 9 months later or go hungry and explain to my wife why we need to spend less on the kid.. It's easy to blame the tech committee but they did help me find wicket by rejecting my initial proposal to build the new system on a (JQuery+JSON+REST) framework, which can be very productive as well, if not as "clean" as Wicket. Sorry for rambling so much. Is there any way I can demolish the silly low adoption rate argument (omg I still don't believe it can be so lame)? Lester - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with Wicket Adoption Numbers
here is an interesting tidbit wicket is on the front page of nabble http://old.nabble.com/ sorted by activity. we are there along maven, jquery, cxf, tomcat, etc. how is the adoption on those? -igor On Thu, Jan 7, 2010 at 6:19 PM, Lester Chua wrote: > Thanks for the links. > I have already submitted them as part of the evaluation process. > > I'll take a look at the IBM links from scott. > > Regards, > > Lester > > Steve Swinsburg wrote: >> >> On the wiki there are some pages to help your cause: >> http://cwiki.apache.org/WICKET/websites-based-on-wicket.html >> http://cwiki.apache.org/WICKET/products-based-on-wicket.html >> >> as well as blogs talking about Wicket, and lots more useful PR info: >> http://cwiki.apache.org/WICKET/index.html >> >> All the best! >> >> cheers, >> Steve >> >> >> >> On 08/01/2010, at 11:43 AM, Lester Chua wrote: >> >> >>> >>> Hi, >>> >>> I am facing a hurdle that need crossing in my final attempt to push >>> Wicket for use in an organization. >>> I have: >>> >>> 1) Prototyped a small size module >>> 2) Did 2-3 presentations on the key features and advantages of wicket >>> >>> No one is disputing my claims about productivity and good OO code that >>> was the result. >>> >>> BUT, the technology evaluation committee is NOT recommending Wicket >>> because of. of all things. >>> - Wicket's Low Adoption Rate >>> Can I find any numbers to blow this away? >>> >>> My alternative is to accept the finding and work with Struts 2. Which >>> will mean the stack will need to expand to DWR >>> (for security). I REALLY don't want to go there, and am even considering >>> not taking part in this project due to the high risk involved, only 9 months >>> to introduce huge changes to a system that has lots of legacy problems (took >>> about 3 years to build). I think a lot of those years were spent wrestling >>> with the monster that is EJB 1.1. The only way I thought the project can >>> even be on time is to scrap the entire presentation layer (aka Struts) and >>> redo it in Wicket with 1 dedicated developer while the rest of the team work >>> on killing the beast that is EJB 1.1 by refactoring the biz code. >>> >>> Sigh, my choices are stark. It's either to keep the job and plough ahead >>> and probably fail spectacularly 9 months later or go hungry and explain to >>> my wife why we need to spend less on the kid.. >>> >>> It's easy to blame the tech committee but they did help me find wicket by >>> rejecting my initial proposal to build the new system on a >>> (JQuery+JSON+REST) framework, which can be very productive as well, if not >>> as "clean" as Wicket. >>> >>> Sorry for rambling so much. Is there any way I can demolish the silly low >>> adoption rate argument (omg I still don't believe it can be so lame)? >>> >>> Lester >>> >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with Wicket Adoption Numbers
Hi Lester, I don't know if this helps but I work for a large staffing company called Spherion Corporation. Our most recent large applications have been created using Wicket. These projects have been delivered on-time, require low maintenance and have literally saved the company millions of dollars. We're a popular group in the IT department right now :-) Anyway, I am not really here to toot my horn but rather to let you know that the Wicket framework is being used by some serious players. Steve (Man, am I glad I came across the Wicket review at the ServerSide.) -- View this message in context: http://old.nabble.com/Help-with-Wicket-Adoption-Numbers-tp27069702p27070748.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with Wicket Adoption Numbers
Also the "Apache Wicket" LinkedIn group could be used to get a feel of companies using Wicket, at the moment there are 524 members and counting: http://www.linkedin.com/groups?viewMembers=&gid=80181 On Fri, Jan 8, 2010 at 8:30 AM, shetc wrote: > > Hi Lester, > > I don't know if this helps but I work for a large staffing company called > Spherion Corporation. > Our most recent large applications have been created using Wicket. These > projects have been > delivered on-time, require low maintenance and have literally saved the > company millions of > dollars. We're a popular group in the IT department right now :-) Anyway, I > am not really > here to toot my horn but rather to let you know that the Wicket framework > is > being used > by some serious players. > > Steve > (Man, am I glad I came across the Wicket review at the ServerSide.) > -- > View this message in context: > http://old.nabble.com/Help-with-Wicket-Adoption-Numbers-tp27069702p27070748.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Help with Wicket Adoption Numbers
You guys are AWESOME. I'm composing an email to the evaluator-in-charge from the tech committee. Hope all this is persuasive enough. Regards, Lester Peter Thomas wrote: Also the "Apache Wicket" LinkedIn group could be used to get a feel of companies using Wicket, at the moment there are 524 members and counting: http://www.linkedin.com/groups?viewMembers=&gid=80181 On Fri, Jan 8, 2010 at 8:30 AM, shetc wrote: Hi Lester, I don't know if this helps but I work for a large staffing company called Spherion Corporation. Our most recent large applications have been created using Wicket. These projects have been delivered on-time, require low maintenance and have literally saved the company millions of dollars. We're a popular group in the IT department right now :-) Anyway, I am not really here to toot my horn but rather to let you know that the Wicket framework is being used by some serious players. Steve (Man, am I glad I came across the Wicket review at the ServerSide.) -- View this message in context: http://old.nabble.com/Help-with-Wicket-Adoption-Numbers-tp27069702p27070748.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with Wicket Adoption Numbers
ask them for their sources for adoption rates of struts 2, im curious. -igor On Thu, Jan 7, 2010 at 7:47 PM, Lester Chua wrote: > You guys are AWESOME. > I'm composing an email to the evaluator-in-charge from the tech committee. > Hope all this is persuasive enough. > > Regards, > > Lester > > > Peter Thomas wrote: >> >> Also the "Apache Wicket" LinkedIn group could be used to get a feel of >> companies using Wicket, at the moment there are 524 members and counting: >> >> http://www.linkedin.com/groups?viewMembers=&gid=80181 >> >> On Fri, Jan 8, 2010 at 8:30 AM, shetc wrote: >> >> >>> >>> Hi Lester, >>> >>> I don't know if this helps but I work for a large staffing company called >>> Spherion Corporation. >>> Our most recent large applications have been created using Wicket. These >>> projects have been >>> delivered on-time, require low maintenance and have literally saved the >>> company millions of >>> dollars. We're a popular group in the IT department right now :-) Anyway, >>> I >>> am not really >>> here to toot my horn but rather to let you know that the Wicket framework >>> is >>> being used >>> by some serious players. >>> >>> Steve >>> (Man, am I glad I came across the Wicket review at the ServerSide.) >>> -- >>> View this message in context: >>> >>> http://old.nabble.com/Help-with-Wicket-Adoption-Numbers-tp27069702p27070748.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Help with Wicket Adoption Numbers
Just a thought, in my experience a lot of project teams end up choosing Struts2 thinking that it is a simple upgrade from Struts 1 and that existing "in-house expertise" in Struts 1 can be preserved. This line of thinking obviously appeals to "management". Just in case, make it clear that Struts 2 is a completely different framework + learning curve. - Peter On Fri, Jan 8, 2010 at 9:23 AM, Igor Vaynberg wrote: > ask them for their sources for adoption rates of struts 2, im curious. > > -igor > > On Thu, Jan 7, 2010 at 7:47 PM, Lester Chua wrote: > > You guys are AWESOME. > > I'm composing an email to the evaluator-in-charge from the tech > committee. > > Hope all this is persuasive enough. > > > > Regards, > > > > Lester > > > > > > Peter Thomas wrote: > >> > >> Also the "Apache Wicket" LinkedIn group could be used to get a feel of > >> companies using Wicket, at the moment there are 524 members and > counting: > >> > >> http://www.linkedin.com/groups?viewMembers=&gid=80181 > >> > >> On Fri, Jan 8, 2010 at 8:30 AM, shetc wrote: > >> > >> > >>> > >>> Hi Lester, > >>> > >>> I don't know if this helps but I work for a large staffing company > called > >>> Spherion Corporation. > >>> Our most recent large applications have been created using Wicket. > These > >>> projects have been > >>> delivered on-time, require low maintenance and have literally saved the > >>> company millions of > >>> dollars. We're a popular group in the IT department right now :-) > Anyway, > >>> I > >>> am not really > >>> here to toot my horn but rather to let you know that the Wicket > framework > >>> is > >>> being used > >>> by some serious players. > >>> > >>> Steve > >>> (Man, am I glad I came across the Wicket review at the ServerSide.) > >>> -- > >>> View this message in context: > >>> > >>> > http://old.nabble.com/Help-with-Wicket-Adoption-Numbers-tp27069702p27070748.html > >>> Sent from the Wicket - User mailing list archive at Nabble.com. > >>> > >>> > >>> - > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >>> For additional commands, e-mail: users-h...@wicket.apache.org > >>> > >>> > >>> > >> > >> > > > > > > - > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Help with Wicket Adoption Numbers
yup. ibm is into it. i also think it's telling that wicket is a global phenomenon at this point... there are books on wicket in english (3), german (2), japanese (1) and chinese (1). and these are independent books, not localizations of one book. jon p.s. if your group needs advice, i occasionally do architectural consulting and there are also a number of trainers out there now. Scott Swank wrote: > > The wiki has a list of some web sites that use Wicket. > http://cwiki.apache.org/WICKET/websites-based-on-wicket.html > > A quick search of IBM shows approx 1,080 articles on Wicket: > http://www.google.com/search?q=site:ibm.com+wicket > > Scott > > > On Thu, Jan 7, 2010 at 4:43 PM, Lester Chua wrote: >> Hi, >> >> I am facing a hurdle that need crossing in my final attempt to push >> Wicket >> for use in an organization. >> I have: >> >> 1) Prototyped a small size module >> 2) Did 2-3 presentations on the key features and advantages of wicket >> >> No one is disputing my claims about productivity and good OO code that >> was >> the result. >> >> BUT, the technology evaluation committee is NOT recommending Wicket >> because >> of. of all things. >> - Wicket's Low Adoption Rate >> Can I find any numbers to blow this away? >> >> My alternative is to accept the finding and work with Struts 2. Which >> will >> mean the stack will need to expand to DWR >> (for security). I REALLY don't want to go there, and am even considering >> not >> taking part in this project due to the high risk involved, only 9 months >> to >> introduce huge changes to a system that has lots of legacy problems (took >> about 3 years to build). I think a lot of those years were spent >> wrestling >> with the monster that is EJB 1.1. The only way I thought the project can >> even be on time is to scrap the entire presentation layer (aka Struts) >> and >> redo it in Wicket with 1 dedicated developer while the rest of the team >> work >> on killing the beast that is EJB 1.1 by refactoring the biz code. >> >> Sigh, my choices are stark. It's either to keep the job and plough ahead >> and >> probably fail spectacularly 9 months later or go hungry and explain to my >> wife why we need to spend less on the kid.. >> >> It's easy to blame the tech committee but they did help me find wicket by >> rejecting my initial proposal to build the new system on a >> (JQuery+JSON+REST) framework, which can be very productive as well, if >> not >> as "clean" as Wicket. >> >> Sorry for rambling so much. Is there any way I can demolish the silly low >> adoption rate argument (omg I still don't believe it can be so lame)? >> >> Lester >> >> >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > -- View this message in context: http://old.nabble.com/Help-with-Wicket-Adoption-Numbers-tp27069702p27071273.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org