Re: Validating a PropertyListView

2013-05-28 Thread madmax108
Ah... cool! :) Will try this and let you know! The code u sent is very similar to what I have, and just reminded me of a way I can get this done Thanks again... will get back with the results :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Validating-a-PropertyL

Validating a PropertyListView

2013-05-27 Thread madmax108
Hi, I have a bunch of properties and I want to provide the user a form to override the properties, but the issue is that some of these properties are range bound (eg. value can be between 10 and 100), some of them are range bound on a single side (eg. value can only be greater than 5), and some of

How to Perform LessThan or GreaterThan Validations Effectively?

2013-04-30 Thread madmax108
Hi, I have a form in which I'm taking in numeric values from the user, let's say 1,2,3,4,5. Now, I also have defaults specifying the maximum or minimum values for the entered numbers (eg. 1,2,3 should be greater than x,y,and z respectively (with no upper limit), while 4 and 5 should be less than a

Re: Custom Error Message with StringValidator.length Between

2013-04-25 Thread madmax108
Thanks! :) I'm on Wicket 6.5 -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Custom-Error-Message-with-StringValidator-length-Between-tp4658184p4658286.html Sent from the Users forum mailing list archive at Nabble.com. --

Custom Error Message with StringValidator.length Between

2013-04-23 Thread madmax108
Hi, I'm validating a field with StringValidator.lengthBetween, but somehow, it only displays the default error message rather than one I've defined in a properties file. My validator checks length of input between 8 and 20, and I've defined it as myField.add(StringValidator.lengthBetween(8,20)

Re: Wicket free guide updated.

2013-04-09 Thread madmax108
Thanks Andrea this is really helpful! :) -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-free-guide-updated-tp4657809p4657841.html Sent from the Users forum mailing list archive at Nabble.com. --

Re: How to mock Session using Mockito for a Wicket application?

2013-04-08 Thread madmax108
Wow, that helped... thanks a lot! Just another question. I now have to use this id to get a database request. I just realised that even that needs to be mocked as well, using a similar method. Assuming the db call function to be mocked is makeDBcall(int userid){ } How do I mock this to return a

How to mock Session using Mockito for a Wicket application?

2013-04-08 Thread madmax108
Hi there, I'm using Wicket+Spring+Mockito for an application and am trying to work alongside a set of well defined test code. For a feature I'm working on, I need to get the userid of a given user, which is stored by Wicket in the user session, and need to test out the feature using WicketTester

Best Way to Perform a Quick Test

2013-04-01 Thread madmax108
Hi, I'm just beginning with Wicket Development. I've been used to Java development where, when I want to perform a quick test, I simply add a sysout to see if a certain code segment is being reached eg. System.out.println("Segment 1 reached") or to find out what is being returned by a database call