Re: Resource Path
HI, On Thu, May 2, 2013 at 1:55 AM, Hemen wickethe...@gmail.com wrote: I have an image that I access by using the following code: String fullUrl = (String) / + RequestCycle.get().mapUrlFor(new PackageResourceReference(Anchor.class, LOGO_NAME), pp).toString(); The code above creates context-absolute url. I'd suggest to rework it to: String relativeUrl = urlFor(new PackageResourceReference(Anchor.class, LOGO_NAME), pp); String fullUrl = requestCycle.getUrlRenderer().renderFullUrl(Url.parse(relativeUrl)); But usage of full url is not recommended when your application runs behind proxy server. Logo path on my dev == http://host-name/wicket/resource/package.Name.ClassName/logo.png Resource Path on Test == http://host-name/app-ame/wicket/resource/package.Name.ClassName/logo.png The logo get displayed on my dev but when deployed on test, it appends the /app-name/ and wicket fails to find it. Here is the build config inside pom.xml for the project build finalNameapp-name/finalName resources resource directorysrc/main/resources/directory /resource resource directorysrc/main/java/directory includes include**/include /includes excludes exclude**/*.java/exclude /excludes /resource /resources How can I correct this? Thank you Hemen -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Resource-Path-tp4658459.html Sent from the Users forum 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 -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Error SpingComponentInjector
Hello, when I add this to my WicketApllication in method init(): getComponentInstantiationListeners().add(new SpringComponentInjector(this)); I got this Error in my browser. Can you help me please? HTTP ERROR 503 Problem accessing /smwconsole/. Reason: java.lang.reflect.UndeclaredThrowableException Caused by: org.eclipse.jetty.servlet.ServletHolder$1: java.lang.reflect.UndeclaredThrowableException at org.eclipse.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:445) at org.eclipse.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:498) at org.eclipse.jetty.servlet.ServletHolder.doStart(ServletHolder.java:293) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:64) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:739) at org.eclipse.jetty.servlet.ServletHandler.updateMappings(ServletHandler.java:1189) at org.eclipse.jetty.servlet.ServletHandler.setServletMappings(ServletHandler.java:1248) at org.eclipse.jetty.servlet.ServletHandler.addServletMapping(ServletHandler.java:847) at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$2.call(JettyServerImpl.java:195) at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl$2.call(JettyServerImpl.java:191) at org.ops4j.pax.swissbox.core.ContextClassLoaderUtils.doWithClassLoader(ContextClassLoaderUtils.java:60) at org.ops4j.pax.web.service.jetty.internal.JettyServerImpl.addServlet(JettyServerImpl.java:190) at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl$Started.addServlet(ServerControllerImpl.java:275) at org.ops4j.pax.web.service.jetty.internal.ServerControllerImpl.addServlet(ServerControllerImpl.java:110) at org.ops4j.pax.web.service.internal.HttpServiceStarted.registerServlet(HttpServiceStarted.java:137) at org.ops4j.pax.web.service.internal.HttpServiceProxy.registerServlet(HttpServiceProxy.java:56) at org.ops4j.pax.wicket.internal.ServletDescriptor.register(ServletDescriptor.java:73) at org.ops4j.pax.wicket.internal.HttpTracker.registerServletDescriptor(HttpTracker.java:94) at org.ops4j.pax.wicket.internal.HttpTracker.addServlet(HttpTracker.java:122) at org.ops4j.pax.wicket.internal.PaxWicketAppFactoryTracker.addServlet(PaxWicketAppFactoryTracker.java:103) at org.ops4j.pax.wicket.internal.PaxWicketAppFactoryTracker.addApplication(PaxWicketAppFactoryTracker.java:80) at org.ops4j.pax.wicket.internal.PaxWicketAppFactoryTracker.addingService(PaxWicketAppFactoryTracker.java:57) at org.ops4j.pax.wicket.internal.PaxWicketAppFactoryTracker.addingService(PaxWicketAppFactoryTracker.java:39) at org.ops4j.pax.wicket.internal.util.BundleTrackerAggregator.addingService(BundleTrackerAggregator.java:56) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:932) at org.osgi.util.tracker.ServiceTracker$Tracked.customizerAdding(ServiceTracker.java:864) at org.osgi.util.tracker.AbstractTracked.trackAdding(AbstractTracked.java:256) at org.osgi.util.tracker.AbstractTracked.track(AbstractTracked.java:229) at org.osgi.util.tracker.ServiceTracker$Tracked.serviceChanged(ServiceTracker.java:894) at org.apache.felix.framework.util.EventDispatcher.invokeServiceListenerCallback(EventDispatcher.java:934) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDispatcher.java:795) at org.apache.felix.framework.util.EventDispatcher.fireServiceEvent(EventDispatcher.java:544) at org.apache.felix.framework.Felix.fireServiceEvent(Felix.java:4495) at org.apache.felix.framework.Felix.registerService(Felix.java:3503) at org.apache.felix.framework.BundleContextImpl.registerService(BundleContextImpl.java:346) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:310) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean.registerService(OsgiServiceFactoryBean.java:279) at org.springframework.osgi.service.exporter.support.OsgiServiceFactoryBean$Executor.registerService(OsgiServiceFactoryBean.java:95) at org.springframework.osgi.service.exporter.support.internal.controller.ExporterController.registerService(ExporterController.java:40) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.startExporter(DefaultMandatoryDependencyManager.java:320) at org.springframework.osgi.service.dependency.internal.DefaultMandatoryDependencyManager.checkIfExporterShouldStart(DefaultMandatoryDependencyManager.java:261) at
Performance replace panel with AjaxLink.
Hi, I have a problem to replace a panel with Ajax, I use a AjaxLink to replace a panel on the other, as follows. Component current = this.getParent(); current.replaceWith (editorPanel); target.add (editorPanel); The problem I have it because it makes a call undue page builder. Thing I do not want to happen, first because it fails to receive the parameter that was receiving that page and second because even if it worked, would unduly penalize performance. Does anyone know why this call is made? A greeting and thanks advanced. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Performance-replace-panel-with-AjaxLink-tp4658473.html Sent from the Users forum 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: Performance replace panel with AjaxLink.
Hi, On Thu, May 2, 2013 at 12:45 PM, Raul ralva...@netwie.com wrote: Hi, I have a problem to replace a panel with Ajax, I use a AjaxLink to replace a panel on the other, as follows. Component current = this.getParent(); current.replaceWith (editorPanel); target.add (editorPanel); The problem I have it because it makes a call undue page builder. Thing I do I don't understand what you meant above. Please give more details. not want to happen, first because it fails to receive the parameter that was receiving that page and second because even if it worked, would unduly penalize performance. Does anyone know why this call is made? A greeting and thanks advanced. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Performance-replace-panel-with-AjaxLink-tp4658473.html Sent from the Users forum 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 -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Re: Wicket-Bootstrap error when deploying to JBoss AS 7
Hi Martin Thanks for your reply, works a treat add the dependency and the code on the wiki page in the init section of WicketApplication class before bootstrap initialization and all is good. Thanks David On 01/05/13 23:21, Martin Grigorov wrote: https://code.google.com/p/reflections/wiki/JBossIntegration On Wed, May 1, 2013 at 9:24 PM, David Beer david.m.b...@gmail.com wrote: Hi All I have a web project which uses Wicket-Bootstrap for styling and various other functions. Everything appears to run fine in Tomcat, but I am starting to add more Java EE stuff and looking at using JBoss As 7. I can deploy a normal wicket Quickstart with out errors but when I try and deploy a project with Bootstrap added I get the following error: 20:16:04,296 INFO [org.jboss.as.server.**deployment] (MSC service thread 1-4) JBAS015876: Starting deployment of Wicket-Bootstrap-DataTable-1.** 0-SNAPSHOT.war 20:16:06,002 INFO [org.apache.wicket.util.file.**WebXmlFile] (MSC service thread 1-3) web.xml: url mapping found for filter with name wicket.Wicket-Bootstrap-**DataTable: [/*] 20:16:06,185 INFO [org.apache.wicket.**Application] (MSC service thread 1-3) [wicket.Wicket-Bootstrap-**DataTable] init: Wicket core library initializer 20:16:06,193 INFO [org.apache.wicket.**RequestListenerInterface] (MSC service thread 1-3) registered listener interface [RequestListenerInterface name=IBehaviorListener, method=public abstract void org.apache.wicket.behavior.**IBehaviorListener.onRequest()] 20:16:06,195 INFO [org.apache.wicket.**RequestListenerInterface] (MSC service thread 1-3) registered listener interface [RequestListenerInterface name=IFormSubmitListener, method=public abstract void org.apache.wicket.markup.html.**form.IFormSubmitListener.** onFormSubmitted()] 20:16:06,198 INFO [org.apache.wicket.**RequestListenerInterface] (MSC service thread 1-3) registered listener interface [RequestListenerInterface name=ILinkListener, method=public abstract void org.apache.wicket.markup.html.**link.ILinkListener.**onLinkClicked()] 20:16:06,201 INFO [org.apache.wicket.**RequestListenerInterface] (MSC service thread 1-3) registered listener interface [RequestListenerInterface name=IOnChangeListener, method=public abstract void org.apache.wicket.markup.html.**form.IOnChangeListener.** onSelectionChanged()] 20:16:06,213 INFO [org.apache.wicket.**RequestListenerInterface] (MSC service thread 1-3) registered listener interface [RequestListenerInterface name=IRedirectListener, method=public abstract void org.apache.wicket.** IRedirectListener.onRedirect()**] 20:16:06,215 INFO [org.apache.wicket.**RequestListenerInterface] (MSC service thread 1-3) registered listener interface [RequestListenerInterface name=IResourceListener, method=public abstract void org.apache.wicket.** IResourceListener.**onResourceRequested()] 20:16:06,216 INFO [org.apache.wicket.**Application] (MSC service thread 1-3) [wicket.Wicket-Bootstrap-**DataTable] init: Wicket extensions initializer 20:16:06,379 ERROR [org.reflections.Reflections] (MSC service thread 1-3) could not create Vfs.Dir from url. ignoring the exception and continuing: org.reflections.**ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [vfs:/content/Wicket-** Bootstrap-DataTable-1.0-**SNAPSHOT.war/WEB-INF/lib/**jquery-1.9.0.jar/] either use fromURL(final URL url, final ListUrlType urlTypes) or use the static setDefaultURLTypes(final ListUrlType urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType. at org.reflections.vfs.Vfs.**fromURL(Vfs.java:108) [reflections-0.9.8.jar:] at org.reflections.vfs.Vfs.**fromURL(Vfs.java:90) [reflections-0.9.8.jar:] at org.reflections.Reflections.**scan(Reflections.java:165) [reflections-0.9.8.jar:] at org.reflections.Reflections.**init(Reflections.java:94) [reflections-0.9.8.jar:] at de.agilecoders.wicket.webjars.**util.RecentVersionCallable.** collectRecentVersionFor(**RecentVersionCallable.java:72) [wicket-webjars-0.2.0.jar:] at de.agilecoders.wicket.webjars.**util.RecentVersionCallable.** call(RecentVersionCallable.**java:62) [wicket-webjars-0.2.0.jar:] at de.agilecoders.wicket.webjars.**util.RecentVersionCallable.** call(RecentVersionCallable.**java:25) [wicket-webjars-0.2.0.jar:] at java.util.concurrent.**FutureTask$Sync.innerRun(**FutureTask.java:334) [rt.jar:1.7.0_21] at java.util.concurrent.**FutureTask.run(FutureTask.**java:166) [rt.jar:1.7.0_21] at de.agilecoders.wicket.webjars.**util.WebjarsVersion.** recentVersion(WebjarsVersion.**java:50) [wicket-webjars-0.2.0.jar:] at de.agilecoders.wicket.webjars.**util.WebjarsVersion.useRecent(**WebjarsVersion.java:32) [wicket-webjars-0.2.0.jar:] at de.agilecoders.wicket.webjars.**request.resource.** WebjarsJavaScriptResourceRefer**ence.init(** WebjarsJavaScriptResourceRefer**ence.java:28) [wicket-webjars-0.2.0.jar:] at de.agilecoders.wicket.markup.**html.references.**
Re: Performance replace panel with AjaxLink.
Let's see, I have a page that receives a parameter, and since I do a query parameter to the database to load a panel, within that panel there is another panel with a AjaxLink, that when you click I want to be replaced by another panel, everything works fine, ie the panel is replaced, but in my traces get a NullPointerException, ie when you update with Ajax, the AjaxRequestTarget, makes a call to the constructor of the page. received additional setting that always puts me is lib, regardless of the initially received. The problem is that it makes a call to the constructor of the page internally, I do not want it done. My question is why do it? and if you can avoid it to. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Performance-replace-panel-with-AjaxLink-tp4658473p4658481.html Sent from the Users forum 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: Performance replace panel with AjaxLink.
On Thu, May 2, 2013 at 2:12 PM, Raul ralva...@netwie.com wrote: Let's see, I have a page that receives a parameter, and since I do a query parameter to the database to load a panel, within that panel there is another panel with a AjaxLink, that when you click I want to be replaced by another panel, everything works fine, ie the panel is replaced, but in my traces get a NullPointerException, ie when you update with Ajax, the AjaxRequestTarget, makes a call to the constructor of the page. received additional setting that always puts me is lib, regardless of the initially received. The problem is that it makes a call to the constructor of the page internally, I do not want it done. My question is why do it? and if you can avoid it to. Put a breakpoint and see who calls it. Unless you add the page itself in the ajax request target the page should not be repainted. But even in this case its constructor should not be called. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Performance-replace-panel-with-AjaxLink-tp4658473p4658481.html Sent from the Users forum 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 -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Re: Performance replace panel with AjaxLink.
Indeed the page is not repainted, but its constructor is called, How to put a breakpoint?. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Performance-replace-panel-with-AjaxLink-tp4658473p4658484.html Sent from the Users forum 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: Performance replace panel with AjaxLink.
On Thu, May 2, 2013 at 3:47 PM, Raul ralva...@netwie.com wrote: Indeed the page is not repainted, but its constructor is called, How to put a breakpoint?. From Google: http://www.vogella.com/articles/EclipseDebugging/article.html -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Performance-replace-panel-with-AjaxLink-tp4658473p4658484.html Sent from the Users forum 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 -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Re: even issue switching from development to deployment mode
Thanks, i will give it a try and update. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/event-firing-issue-switching-from-development-to-deployment-mode-tp4658450p4658486.html Sent from the Users forum 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
Combining multiple wicket application in single user interface
We have few wicket application used by same user set so I am contemplating to combine them in one single interface from users point of view but they should run as separate independent applications running at separate URLs as they do today. Please lets me know if there is a way to achieve this with plain wicket or outside wicket, what is the best approach to work in this direction. I would like to make it kind of a tabbed application (similar to wicket tabs) but each tab would represent wicket application running at some separate URL. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Combining-multiple-wicket-application-in-single-user-interface-tp4658487.html Sent from the Users forum 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: Combining multiple wicket application in single user interface
Hi, Simple solution is to use iframe for the content. Clicking on a tab will change iframe's src value. A complex solution is to use Portlets. See https://issues.apache.org/jira/browse/WICKET-4019 for integration and issues with it. In both cases prepare to face some problems you haven't had before. On Thu, May 2, 2013 at 4:03 PM, saty satya...@gmail.com wrote: We have few wicket application used by same user set so I am contemplating to combine them in one single interface from users point of view but they should run as separate independent applications running at separate URLs as they do today. Please lets me know if there is a way to achieve this with plain wicket or outside wicket, what is the best approach to work in this direction. I would like to make it kind of a tabbed application (similar to wicket tabs) but each tab would represent wicket application running at some separate URL. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Combining-multiple-wicket-application-in-single-user-interface-tp4658487.html Sent from the Users forum 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 -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Re: Wicket stack on a netbook
Thanks for all the answers! My current laptop is pretty heavy so i'm fixed on the idea of having the lightest and smallest workstation possible despite the potential problems of programming using such little resolution (i will maintain my anvil laptop as a home workstation and use the light netbook to carry around ocassionally, this is also why i don't intend to spend much on it). Anyway, i am very happy to find out that eclipse, tomcat and mysql can indeed be used with the hardware i had in mind. Thanks again, take care! Rafael 2013/4/30 Jorge Gallardo jorgeagalla...@gmail.com I developed a quite large app in wicket using a nice samsung nc10. I had to upgrade when I changed the db from mysql to cassandra. On Fri, Apr 26, 2013 at 2:30 AM, Sven Meier s...@meiers.net wrote: I did my Wicket development on a netbook a few years ago and it worked fine. Running Eclipse on XGA display resolution was a PITA though :(. Sven On 04/25/2013 09:17 PM, Rafael Barrera Oro wrote: Hello everyone! I was wandering if anyone was successful in developing wicket apps from a netbook (atom processor, one or two gigs of ram, etc...) For wicket stack i mean mysql and eclipse (the latter with an inner tomcat instance) Thanks in advance! Rafael --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.org users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jorge Gallardo jorgeagalla...@gmail.com
Re: Saving checked choices from CheckGroup
Well, the first problem is solved :) I just want to be able to check a number of checkboxes and use the list of values that correspond with the values of the Checks in another panel. I currently have the following but does not seem to work. I also do not want to use AjaxFormChoiceUpdatingBehaviour as it otherwise does a post whenever someone checks or unchecks an item. public QuickSearchFilterPanel(String id) { super(id); form = new Form(filterform); types = resultItemHandlerPool.getTypes(); checkGroup = new CheckGroupClasslt;?(checkGroup, new ArrayListClasslt;?()); ListView typesListview = new ListViewClasslt;?(typesList, resultItemHandlerPool.getTypes()) { @Override protected void populateItem(final ListItemClasslt;? item) { Check c = new CheckClasslt;?(check, item.getModel()); item.add(c); item.add(new Label(className, item.getModelObject().getSimpleName())); } }; typesListview.setReuseItems(true); checkGroup.add(typesListview); form.add(checkGroup); add(form); } public ListClasslt;? getSearchableTypes() { return types; } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Saving-checked-choices-from-CheckGroup-tp4658408p4658490.html Sent from the Users forum 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
May Ajax handlers in Wicket 6 slow down rendering?
Since Wicket 6 introduced jQuery as backend for Ajax, there are now rather many jquery-libraries included and there are rather long blocks of Javascript code executed at domready. One of our HTML designers now expressed his concern that on rather complex pages like ours this approach may slow down rendering pages on slow machines (our project is used by people from their workplaces where they - by company policy - have to use old IE browsers on often not exactly fast machines). Since I am not at all an expert in this field, I'm passing on this concern here, maybe any of the gurus around here can comment on this? One of the possible measures our HTMLer mentioned was bundling multiple Javascript-includes to a single one, is this something that can be done for the Javascript library includes added by Wicket? Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= It was hard to code, so it should be hard to understand! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: May Ajax handlers in Wicket 6 slow down rendering?
Hi, On Thu, May 2, 2013 at 4:30 PM, Martin Dietze d...@fh-wedel.de wrote: Since Wicket 6 introduced jQuery as backend for Ajax, there are now rather many jquery-libraries included and there are rather Many JQuery libraries included ? What do you mean with this ? Wicket contirbutes jquery.js, wicket-ajax-jquery.js and wicket-event-jquery.js. In Wicket 1.5 they were the latter two. long blocks of Javascript code executed at domready. This depends on how many Ajax components/behaviors you have in your page and how many OnDomReadyHeaderItems are contributed. If you use JavaScript event delegation with Wicket Ajax Behavior that broadcasts events then you can decrease this dramatically. One of our HTML designers now expressed his concern that on rather complex pages like ours this approach may slow down rendering pages on slow machines (our project is used by people from their workplaces where they - by company policy - have to use old IE browsers on often not exactly fast machines). Since I am not at all an expert in this field, I'm passing on this concern here, maybe any of the gurus around here can comment on this? One of the possible measures our HTMLer mentioned was bundling multiple Javascript-includes to a single one, is this something that can be done for the Javascript library includes added by Wicket? Check http://wicketinaction.com/2012/07/wicket-6-resource-management/ - bundles. Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= It was hard to code, so it should be hard to understand! - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Wasp-Swarm documentation
Can not find any documentation around this, can someone please point to some useful link. I need to disable few links, buttons, radio buttons based on user roles, have not found any suitable material that can help. The goal is to create a read only access to application. The code we have works file at panel lavel hive configuration using {ComponentPermission} render or 'render enable', i dont have any idea how to configure these for individual controls at a given panel. Any help would be appreciated. Thanks -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wasp-Swarm-documentation-tp4658494.html Sent from the Users forum 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: Combining multiple wicket application in single user interface
Thanks martin, i will explore these options. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Combining-multiple-wicket-application-in-single-user-interface-tp4658487p4658495.html Sent from the Users forum 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
[wicket 6] How to get InputStream from ResourceReference ?
In wicket 1.4 I can get InputStream from a ResourceReference : ResourceReference resRef = new ResourceReference(Page.class , xxx.png); InputStream is = resRef.getResource().getResourceStream().getInputStream(); But it seems invalid in wicket 6 I need to build a DynamicImageResource , which returns byte[] in getImageData() ResourceReference resRef = new PackageResourceReference(Page.class , xxx.png); (in fact , the true resRef depends on the attributes parameter) but I am stuck here. I find no way to get InputStream of resRef , so I cannot transform InputStream to byte[]. Any solutions ? Thanks !
Re: [wicket 6] How to get InputStream from ResourceReference ?
Hi, Use org.apache.wicket.core.util.resource.PackageResourceStream directly instead of using ResourceReference On Thu, May 2, 2013 at 5:50 PM, smallufo small...@gmail.com wrote: In wicket 1.4 I can get InputStream from a ResourceReference : ResourceReference resRef = new ResourceReference(Page.class , xxx.png); InputStream is = resRef.getResource().getResourceStream().getInputStream(); But it seems invalid in wicket 6 I need to build a DynamicImageResource , which returns byte[] in getImageData() ResourceReference resRef = new PackageResourceReference(Page.class , xxx.png); (in fact , the true resRef depends on the attributes parameter) but I am stuck here. I find no way to get InputStream of resRef , so I cannot transform InputStream to byte[]. Any solutions ? Thanks ! -- Martin Grigorov Wicket Training Consulting http://jWeekend.com http://jweekend.com/
Re: [wicket 6] How to get InputStream from ResourceReference ?
2013/5/2 Martin Grigorov mgrigo...@apache.org PackageResourceStream Wow , thanks for your rapid response !
Testing AjaxFallbackDefaultDataTable with WicketTester
Hello everyone, I have a simple form and an AjaxFallbackDefaultDataTable (like a search form and a corresponding result table). When the form is submitted the page refreshes and the table is getting updated successfully. It works in the browser but I am not able to test the table with WickedTester (tester.debugComponentTrees() shows [No Records Found], but I was able to debug the wicket code and the data was added to the table as expected). Greetings Torben Rebhan PRINOVIS Torben Rebhan APPLICATION DEVELOPMENT Fon +49 40 570130-9266 Fax +49 40 570130-9666 torben.reb...@prinovis.com Prinovis Ltd. Co. KG · Gasstraße 18 · 22761 Hamburg Handelsregistereintrag: HRA 101760 · Amtsgericht Hamburg · Sitz Hamburg Umsatzsteuer-Identifikationsnummer: DE 81 44 46 223 Komplementärin: Prinovis Ltd. · Company Register Nr. 05318602 · Sitz London Chief Executive Officer: Dr. Bertram Stausberg Board of Directors (Ltd.): Dr. Thomas Rabe (Chairman), Dr. Immanuel Hermreck, Dr. Bertram Stausberg, Dr. Andreas Wiele www.prinovis.com
Re: May Ajax handlers in Wicket 6 slow down rendering?
Than you for your help! On Thu, May 02, 2013, Martin Grigorov wrote: long blocks of Javascript code executed at domready. This depends on how many Ajax components/behaviors you have in your page and how many OnDomReadyHeaderItems are contributed. If you use JavaScript event delegation with Wicket Ajax Behavior that broadcasts events then you can decrease this dramatically. That sounds interesting, but - forgive me my ignorance - this is the first time I hear about this kind of thing. Can you hint me at some example? Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Katz' Law: Man and nations will act rationally when all other possibilities have been exhausted. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: May Ajax handlers in Wicket 6 slow down rendering?
Martin-G elaborated a bit on this last year: http://mail-archives.apache.org/mod_mbox/wicket-users/201209.mbox/%3ccamomwmqdf3ytlstb_kbnvn9t1pump_-+npdtmtvyt+ac6ec...@mail.gmail.com%3E I think the gist is that you can avoid attaching listeners to each child with a single listener on the parent with enough smarts to figure out which child generated the event. On Thu, May 2, 2013 at 3:25 PM, Martin Dietze d...@fh-wedel.de wrote: Than you for your help! On Thu, May 02, 2013, Martin Grigorov wrote: long blocks of Javascript code executed at domready. This depends on how many Ajax components/behaviors you have in your page and how many OnDomReadyHeaderItems are contributed. If you use JavaScript event delegation with Wicket Ajax Behavior that broadcasts events then you can decrease this dramatically. That sounds interesting, but - forgive me my ignorance - this is the first time I hear about this kind of thing. Can you hint me at some example? Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Katz' Law: Man and nations will act rationally when all other possibilities have been exhausted. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: May Ajax handlers in Wicket 6 slow down rendering?
Any demos of this with Wicket form components or simple click listeners ? I'd much rather a repeater have a single listener for grouped events (or maybe at the column level for tables) N On May 2, 2013 6:10 PM, Dan Retzlaff dretzl...@gmail.com wrote: Martin-G elaborated a bit on this last year: http://mail-archives.apache.org/mod_mbox/wicket-users/201209.mbox/%3ccamomwmqdf3ytlstb_kbnvn9t1pump_-+npdtmtvyt+ac6ec...@mail.gmail.com%3E I think the gist is that you can avoid attaching listeners to each child with a single listener on the parent with enough smarts to figure out which child generated the event. On Thu, May 2, 2013 at 3:25 PM, Martin Dietze d...@fh-wedel.de wrote: Than you for your help! On Thu, May 02, 2013, Martin Grigorov wrote: long blocks of Javascript code executed at domready. This depends on how many Ajax components/behaviors you have in your page and how many OnDomReadyHeaderItems are contributed. If you use JavaScript event delegation with Wicket Ajax Behavior that broadcasts events then you can decrease this dramatically. That sounds interesting, but - forgive me my ignorance - this is the first time I hear about this kind of thing. Can you hint me at some example? Cheers, M'bert -- --- / http://herbert.the-little-red-haired-girl.org / - =+= Katz' Law: Man and nations will act rationally when all other possibilities have been exhausted. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Atmosphere NPE
Hi all, I have issue with atmosphere, below is the log: 2013-05-01 19:11:32.880602500 INFO - AtmosphereBehavior - Resuming the streaming response from ip 127.0.0.101:41704 2013-05-01 19:11:32.880714500 INFO - AtmosphereBehavior - streaming connection dropped from ip 127.0.0.101:41704 2013-05-01 19:11:32.886105500 ERROR - AtmosphereBehavior - 2013-05-01 19:11:32.886106500 java.lang.NullPointerException 2013-05-01 19:11:32.886106500 at org.apache.wicket.atmosphere.EventBus.get(EventBus.java:87) Also I found that this issue make my application become unresponsive and cause tomcat shut down. Did anybody ever experiencing this? Any help will be appreciated. Thank you. Below is my web.xml context-param param-namecontextConfigLocation/param-name param-valueclasspath:applicationContext.xml/param-value /context-param listener listener-classorg.springframework.web.context.ContextLoaderListener/listener-class /listener servlet descriptionwicket.admin/description servlet-namewicket.admin/servlet-name servlet-classorg.atmosphere.cpr.AtmosphereServlet/servlet-class init-param param-nameapplicationClassName/param-name param-valuecom.admin.WicketApplication/param-value /init-param init-param param-nameconfiguration/param-name param-valuedeployment/param-value /init-param init-param param-nameorg.atmosphere.useWebSocket/param-name param-valuetrue/param-value /init-param init-param param-nameorg.atmosphere.useNative/param-name param-valuetrue/param-value /init-param init-param param-nameorg.atmosphere.cpr.sessionSupport/param-name param-valuetrue/param-value /init-param init-param param-namefilterMappingUrlPattern/param-name param-value/*/param-value /init-param init-param param-nameorg.atmosphere.websocket.WebSocketProtocol/param-name param-valueorg.atmosphere.websocket.protocol.EchoProtocol/param-value /init-param init-param param-nameorg.atmosphere.cpr.broadcastFilterClasses/param-name param-valueorg.apache.wicket.atmosphere.TrackMessageSizeFilter/param-value /init-param load-on-startup0/load-on-startup /servlet servlet-mapping servlet-namewicket.admin/servlet-name url-pattern/*/url-pattern /servlet-mapping