Re: Do not cache pages, nor in application, nor in browser

2013-01-16 Thread Martin Grigorov
Hi, On Tue, Jan 15, 2013 at 7:59 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: I use these code in order to avoid web page cache, in browser and in wicket application; also I want to avoid disk caching and serialization I'm using Wicket6 ¿ Do you see this code correct ? ¿ Is there any

Testing DropDownChoice with Ajax

2013-01-16 Thread RalfButler
Hi there, I'm using Wicket 6.4 and try to test a super simple form: public final class MyForm extends WebPage { public MyForm() { super(); Form form = new Form(form); TextField textField = new TextField(textfield); textField.setRequired(true);

Re: Testing DropDownChoice with Ajax

2013-01-16 Thread Martin Grigorov
Hi, On Wed, Jan 16, 2013 at 10:02 AM, RalfButler ralf.but...@web.de wrote: Hi there, I'm using Wicket 6.4 and try to test a super simple form: public final class MyForm extends WebPage { public MyForm() { super(); Form form = new Form(form); TextField

Re: Make URLs (i.e. mount paths) case insensitive for Wicket 6

2013-01-16 Thread Martin Grigorov
Hi, This is not supported at the moment. Please file a ticket to improve it. On Tue, Jan 15, 2013 at 6:14 PM, Yuci G EBI ygou@gmail.com wrote: Hello, Wonder how to make URLs (i.e. mount paths) case insensitive for Wicket 6? For example, make these two URLs do the same thing:

Re: Testing DropDownChoice with Ajax

2013-01-16 Thread RalfButler
Thanks a lot Martin for that super quick reply! Yes, obviously I was wrong on the AJAX part. But even if I using the test method like this: @Test public void enterData(){ tester.startPage(MyForm.class); FormTester formTester = tester.newFormTester(form);

Re: Testing DropDownChoice with Ajax

2013-01-16 Thread Martin Grigorov
Your test looks pretty much like org.apache.wicket.FormDispatchEventTest#dropDownEvent() in wicket-core/src/test/java FormDispatchEventTest#dropDownEvent() passes OK. On Wed, Jan 16, 2013 at 10:20 AM, RalfButler ralf.but...@web.de wrote: Thanks a lot Martin for that super quick reply! Yes,

Re: Do not cache pages, nor in application, nor in browser

2013-01-16 Thread Oscar Besga Arcauz
I've made a class, extending the DefaultPageManagerProvider to avoid Wicket page store (in order recreate every page at every request from users) I'm testing it, and found no problems - for now. Take a look; I'm thinking about sending it to JIRA as an improvement /**  * User: obesga  * Date:

Re: Do not cache pages, nor in application, nor in browser

2013-01-16 Thread Martin Grigorov
These impls are quite simple ... No one so far ever needed something like this On Wed, Jan 16, 2013 at 1:14 PM, Oscar Besga Arcauz obe...@isdefe.eswrote: I've made a class, extending the DefaultPageManagerProvider to avoid Wicket page store (in order recreate every page at every request from

Re: Wicket getLocalizer().getString(.. Issue

2013-01-16 Thread vijay
Hi, I can't add any break points coz the war file is deployed on weblogic server (dev server) running on Linux environment and we can simply view the logs by adding loggers, whcih have already checked. It's a large application and am not able to fix this issue. -- View this message in

Re: Wicket getLocalizer().getString(.. Issue

2013-01-16 Thread vijay
Hi, I can't add any break points coz the war file is deployed on weblogic server (dev server) running on Linux environment and we can simply view the logs by adding loggers, whcih have already checked. It's a large application and am not able to fix this issue. Pls help... -- View this

Re: Wicket getLocalizer().getString(.. Issue

2013-01-16 Thread Martin Grigorov
On Wed, Jan 16, 2013 at 1:32 PM, vijay sevijay@gmail.com wrote: Hi, I can't add any break points coz the war file is deployed on weblogic server (dev server) running on Linux environment and we can simply view the logs by adding loggers, whcih have already checked. It's a large

Suggestion: Add static files serving servlet to wicket-core?

2013-01-16 Thread Ondrej Zizka
Hi all, A need to serve static files alongside the app, often from a root context, is quite common. What if a simple serving servlet was added to wicket-core, so people wouldn't need to add it extra to their app? E.g. this one is quite good:

Re: How to avoid this error TypeError: $(...) is null

2013-01-16 Thread saty
The exact error (javascript) is TypeError: $(...) is null As per the Widget documents i need to invoke below to activate the multiselect. $(document).ready(function(){ $(#myselect).multiselect(); }); So it can not find #myselect in this case, i put a alert on this and it prints null, but

Re: how to fix this error in wicket app

2013-01-16 Thread Thijs
Have you ever fixed this problem? We are seeing the same issues with our application. Thijs On 28-11-2012 0:03, saty wrote: continued from above... /wicket:panel/div div class=imxt-a imxt-nowrap0/div div class=imxt-a imxt-nowrap0.2001/div div class=imxt-a imxt-nowrap/div

Re: How to avoid this error TypeError: $(...) is null

2013-01-16 Thread saty
finally manged to got this working this morning. The code that worked: $.noConflict(); jQuery(document).ready(function($) { $(document.getElementById(multiSelectId)).multiselect(); }); for some reason $(#multiSelectId).multiselect(); does not work. I had to hardcode

Re: Image does not appears not always

2013-01-16 Thread Delange
When things go well div class=opdoms ./?6-IResourceListener-opdrachten-1-image divtest/div /div When wrong (when no picture is found) div class=opdoms ./?1-IResourceListener-opdrachten-1-image

Re: Image does not appears not always

2013-01-16 Thread Delange
I show that the text was changed, here again, i remove the start end html characters With a good result div class=opdoms img src=./?20-IResourceListener-opdrachten-1-image class=opdimage width=75 height=50/ divtest/div /div When bad:

Re: urls with localization

2013-01-16 Thread divad91
Hi, Do you think it's possible to replace the url language part /en/ , /fr/ by other english or french url ? Instead of having /fr/home /en/home could we have /frenchCompanyName/home /englishCompanyName/home I changed the LocaleUrlCodingStrategyDecorator class to do so but I have lots of

Re: how to fix this error in wicket app

2013-01-16 Thread Thijs Vonk
That's great! Thanks On 16/1/13 17:25, saty wrote: Yes, this has been fixed in wicket 6.4.0 See below for more on this fix. http://apache-wicket.1842946.n4.nabble.com/understanding-ajax-response-td4654310.html#a4654715 -- View this message in context:

Re: Testing DropDownChoice with Ajax

2013-01-16 Thread RalfButler
Yes, indeed, it looks similar, except that I receive the same error messages as before if the requirement of dropdown is set to true in MockPageWithForm: dropDown.setRequired(true); and add assertNoErrorMessage to FormDispatchEventTest#dropDownEvent(): ... FormTester formTester =

Re: Setting Expires header on mountResource

2013-01-16 Thread Martin Grigorov
Hi, This way the default (global) cache settings are applied. See org.apache.wicket.settings.IResourceSettings#getDefaultCacheDuration You will need custom ResourceReference that uses custom IResource to set specific cache settings just for it. Hint: you can extend PackageResRef/PackageResource