Wicket 6.0.0 + Netbeans + Atmosphere

2012-08-27 Thread Mats
Hi, I just tried to get Atmosphere up and running in Wicket 6.0.0-beta3 using Netbeans 7.2... I have just added the jars needed one by one. Still I get some runtime error at startup; @Override public void init() { super.init(); eventBus = new EventBus(this); SEVERE:

Re: Wicket 6.0.0 + Netbeans + Atmosphere

2012-08-27 Thread Martin Grigorov
Hi, There must be a more detailed exception in the logs explaining what exactly is the problem. There were several fixes to wicket-atmosphere since beta3. Create a quickstart with 6.0-SNAPSHOT from http://wicket.apache.org/start/quickstart.html and then add your Atmosphere related code. Wicket

Re: Wicket Render speed

2012-08-27 Thread steven.li
Thanks. Found out the root cause by jprofiler. It's the model problem, too many times to read database directly in the model. Thanks for your help very much ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Render-speed-tp4651489p4651523.html Sent from

Re: Wicket 6.0.0 + Netbeans + Atmosphere

2012-08-27 Thread Emond Papegaaij
You probably did not setup Atmosphere. Wicket-Atmosphere requires Atmosphere to be available in your web application. Please consult the documentation of Atmosphere for instructions. You can also take a look at wicket-examples (especially web.xml and atmosphere.xml), which includes a working

Re: Interpolate response with IResponseFilter

2012-08-27 Thread guillaume.mary
Thanks for the tip Sven, I will give it a try. For now I have another issue about the AbstractTransformerBehavior: as soon as I add it to my Page, I get encoding problems of characters into my page, this is weird. Here is my very simple transformer: new AbstractTransformerBehavior() { public

Mounting URLs with locale prefix

2012-08-27 Thread Adriano dos Santos Fernandes
Hi! I do want to mount our application URLs as following: /${locale}/PageName So I can access Page1 as: /pt-br/Page1 /en-us/Page1 The application is a simple website with not so many dynamic content, so in most cases it directly uses a href=... /, img src=... / without wicket:id. That's fine.

Re: Interpolate response with IResponseFilter

2012-08-27 Thread guillaume.mary
After searching a bit, I found that AbstractTransformerBehavior replaces the RequestCycle.response temporarly to put its own, between beforeRender en afterRender methods, whereas other classes manipulates the response during that phase, so when AbstractTransformerBehavior puts back the original

Re: Mounting URLs with locale prefix

2012-08-27 Thread Martin Grigorov
Hi, Check http://www.wicket-library.com/wicket-examples/mappers/en_US example. It shows how to do this with LocaleFirstMapper.java On Mon, Aug 27, 2012 at 2:20 PM, Adriano dos Santos Fernandes adrian...@gmail.com wrote: Hi! I do want to mount our application URLs as following:

Re: Performance tuning Wicket[1.5]...

2012-08-27 Thread Martin Grigorov
Fire Yourkit/JProfiler and see what they say. On Mon, Aug 27, 2012 at 2:45 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Im seeing a load on our server. Tried these settings in wicketapplication: getPageSettings().setVersionPagesByDefault(false);

Re: Performance tuning Wicket[1.5]...

2012-08-27 Thread nino martinez wael
Yup, I'll do that another round.. Although I'll use visualvm... 2012/8/27 Martin Grigorov mgrigo...@apache.org Fire Yourkit/JProfiler and see what they say. On Mon, Aug 27, 2012 at 2:45 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Im seeing a load on our server.

Best practices for passing configurations, such as Facebook app_id, to JavaScript

2012-08-27 Thread Alec Swan
Hello, We deploy our web app on different domains which means that JavaScript Facebook integration needs to use different app_id values. I am planning to store these values in a configuration file and wonder how to expose them to JavaScript. I would also like to write a unit test that verifies

Re: Which RENDER_STRATEGY is best for clustered setup?

2012-08-27 Thread sudeivas
Though I am using 'ONE_PASS_RENDER' strategy, I am still getting the below warning, WARN http-8000-2 [org.apache.wicket.request.handler.render.WebPageRenderer] - Falling back to Redirect_To_Buffer render strategy because none of the conditions matched. Am I missing something? I am worried that

Re: Mounting URLs with locale prefix

2012-08-27 Thread asfernandes
Martin, Thanks for the Mapper hint, but things still don't work well in my case (html files without wicket:id tags). I had it almost working, but I need to call getMarkupSettings().setAutomaticLinking(true), but this caused another problem: Wicket is putting an onclick in tags inside