Re: Log bookmarkable page link execution

2011-08-19 Thread Mike Mander
Thanks Dan, my intention is to track ux with our shop. We have for instance a link you can configure how many products you see per page. Because we don't know what is the best view size we want to check if users use our preselection or always change it to other values. I will try your

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread aabfattah
They both have the same version 1.5RC-1 On 19 August 2011 03:06, Dan Retzlaff [via Apache Wicket] ml-node+3754040-2070811322-260...@n4.nabble.com wrote: It looks like you have multiple versions of the Wicket JARs on your classpath. Since that function was removed in

RE: Log bookmarkable page link execution

2011-08-19 Thread Chris Colman
Not sure if this is the same as what you want but we've made all our page classes derive from a common base which performs the logging function in the constructor so that you can't miss a log. You can do some reflection to grab the name of the page class instance or create a method that is

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread aabfattah
Hmm wait they are different versions . I fixed that but now I get a compile error ! Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project mainpage2: Compilation failure [ERROR] Unable to locate the Javac Compiler in: [ERROR]

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread aabfattah
Sorry for posting a lot , I just made a new project to work around the problem but now I get an exception and that's seem a *bug from the code* Unexpected RuntimeException Last cause: null WicketMessage: Error attaching this container for rendering: [WebMarkupContainer [Component id = body]]

Strange error

2011-08-19 Thread Martin Makundi
Hi! What can be the cause of this error, how can there be concurrent modification to a item on a page being serialized? ** Martin java.util.ConcurrentModificationException        at java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1100)        at

Re: How to Handle ResourceStreamNotFoundException

2011-08-19 Thread hfriederichs
Hi Dan, This is /exactly/ what I was looking for! A simple solution for a simple problem. I used a (subclass) of a WebResource before for another use case, and that worked fine, so I got blinded by wanting to reuse the same solution, at least that is what I think has happened. Whatever. Thank

how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
Hi all, I have a form with a Radiogroup : In my form, I have a radiogroup like this : RadioGroupString genre = new RadioGroupString(genreDestinataire); genre.setRequired(true); genre.setLabel(new ModelString(Genre destinataire)); genre.add(new RadioString(femme,

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 14:21, schrieb Mathilde Pellerin: Hi all, I have a form with a Radiogroup : In my form, I have a radiogroup like this : RadioGroupString genre = new RadioGroupString(genreDestinataire); genre.setRequired(true); genre.setLabel(new ModelString(Genre

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
Thank you for your answer Mike. I didn't find out how could I try with Radio.onComponentTag, so I tried with tagTester. I think it could be a good solution, so I did that : TagTester tagFemme = tester.getTagByWicketId(formCreationQuestionnaire:genre:femme); TagTester tagHomme =

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 15:35, schrieb Mathilde Pellerin: Thank you for your answer Mike. I didn't find out how could I try with Radio.onComponentTag, so I tried with tagTester. I think it could be a good solution, so I did that : TagTester tagFemme =

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
I add WicketTester.debugComponentTrees() in my test juste before assertNotNull which failed like this : TagTester tagFemme = tester.getTagByWicketId(formCreationQuestionnaire:genre:femme); TagTester tagHomme = tester.getTagByWicketId(formCreationQuestionnaire:genre:homme);

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Mander
Am 19.08.2011 16:38, schrieb Mathilde Pellerin: I add WicketTester.debugComponentTrees() in my test juste before assertNotNull which failed like this : TagTester tagFemme = tester.getTagByWicketId(formCreationQuestionnaire:genre:femme); TagTester tagHomme =

Re: Log bookmarkable page link execution

2011-08-19 Thread Dan Retzlaff
Mike, since I didn't really understand your use case, I'm not sure a site-wide link decorator is the best way to go. You might keep it simple and just print a log statement when certain actions are performed, then periodically grep through your log files to generate statistics. My suggestion

Re: Highlight 2 Fields as Errors, but only 1 Error in FeedbackPanel

2011-08-19 Thread Martin Grigorov
see IFormValidator On Fri, Aug 19, 2011 at 5:57 PM, eugenebalt eugeneb...@yahoo.com wrote: Is there a way to have a validator that will highlight two fields, but only show the error in the FeedbackPanel once? Thanks -- View this message in context:

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread Dan Retzlaff
Hi Ahmed, I recommend running Wicket in an IDE with a debugger and stepping through your code. Personally I deploy my Wicket applications into an Apache Tomcat server set up within Eclipse. There are many other servlet containers and IDEs that will work though. Dan On Fri, Aug 19, 2011 at 1:16

Re: Highlight 2 Fields as Errors, but only 1 Error in FeedbackPanel

2011-08-19 Thread eugenebalt
Yeah, I can do error() on individual components in a form, but how do I do a *single* error, while *highlighting* several fields? Is there a separate highlight method? -- View this message in context:

Re: Strange error

2011-08-19 Thread Dan Retzlaff
How reproducible is this? I don't know how the serialization process itself would cause this, but if it's intermittent then maybe there's a threading / synchronization bug somewhere. On Fri, Aug 19, 2011 at 1:59 AM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: Hi! What can be the

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread aabfattah
I did so but it's a bit confusing . Is there any book or a tutorial that describes the sequence of calls of the framework ? And how should my code flow ? On 19 August 2011 17:04, Dan Retzlaff [via Apache Wicket] ml-node+3755408-1624030309-260...@n4.nabble.com wrote: Hi Ahmed, I recommend

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread Martin Grigorov
The problem is clear: java.lang.NullPointerException at com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:21) at com.ahmed.task.main3.UserProvider$SortableDataProviderComparator.compare(UserProvider.java:1) at

Re: Unexpected RuntimeException when trying a project with a DataTable

2011-08-19 Thread Dan Retzlaff
If you put a breakpoint where the NullPointerException is thrown, your debugger should show you the call stack which tells you the sequence of calls that got you there. In your particular case, the crux is the Collections.sort(newList, comparator) call which sorts newList using your custom

Re: Strange error

2011-08-19 Thread Martin Makundi
Hi! I don't know how to reproduce it... and I wonder, because there is pagemap lock, what else can be modifying stuff during page serialization? ** Martin 2011/8/19 Dan Retzlaff dretzl...@gmail.com: How reproducible is this? I don't know how the serialization process itself would cause this,

Re: Strange error

2011-08-19 Thread Dan Retzlaff
I tend to agree that odds of a Wicket bug in this area are small. Can you think of a case in your application where a component has a HashMap of objects which have a TreeMap of objects? Maybe the source of this collection within your application is the problem. On Fri, Aug 19, 2011 at 8:50 AM,

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mathilde Pellerin
hum, yes and no... I mean, page is loaded by an ajax response (AjaxLink), but then there is no Ajax. This is the entire test, maybe it can help : @SuppressWarnings(unchecked) @Test @Transactional @Rollback public void testStory23_TA21_VerificationInitialisationBoutonsRadio(){

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Mike Müller
If i'm not completely wrong is tester.clickLink(path) a wrapper for tester.clickLink(path, isAjax = true). So you get an ajax response. You can check that by calling tester.dumpPage(). The problem is that wicket tester only works on page markup. It is not working on ajax response markup (at

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Shunmuga Raj
Hi all, I'm new to Wicket. Can you help me to know what is wicket how it works? pls ppl's mail me the links for it's tutorials and learning path. Now i'm using Netbeans 6.9,7.0 so pls share the plugins for it too, Thanks in advance On Fri, Aug 19, 2011 at 11:28 PM, Mike Müller

Re: how to test what radio is checked in a radiogroup?

2011-08-19 Thread Per Newgro
Welcome to wicket Shunmuga Did you check the website http://wicket.apache.org already. It's all there. Check the wiki, component examples and books section. Hope you have fun with wicket Cheers Per - To unsubscribe, e-mail:

Wicket Basics.

2011-08-19 Thread Shunmuga Raj
Hi Per Newgro, Thanks for your valuable information. I dont know wicket basics also. If u have any tuorials or tutorial links means pls send me. I downloaded some files for netbeans plugin from IDE Plugins link. But i dont know how to install it. Do you small program to

Re: Log bookmarkable page link execution

2011-08-19 Thread Martijn Dashorst
Why not use the RequestLogger? (see chapter 14 of Wicket in Action) Martijn On Thu, Aug 18, 2011 at 1:51 PM, Mike Mander wicket-m...@gmx.de wrote: Hi, i would like to log execution of bookmarkable page links. I know that they are only renderered in markup and call the page from the browser.

Re: Strange error

2011-08-19 Thread Martin Makundi
I believe there are numerous such Maps, but what can be the cause of concurrent modification? Wicket should be allowing only single thread operating on the object? ** Martin 2011/8/19 Dan Retzlaff dretzl...@gmail.com: I tend to agree that odds of a Wicket bug in this area are small. Can you