[Wicket-user] Problem in unit tests

2005-10-30 Thread Iman RahmatiZadeh
Argh ! Unit testing is way too hard in wicket. I'm using a custom implementation of WebSession in my application. The problem arises when I use the MockWebApplication class for testing, which creates and uses WebSession for tests and my page classes which depend on my implementation of WebSession

Re: [Wicket-user] Problem with multiple submit buttons in form

2005-10-30 Thread Dan Gould
Thanks Andrew (and everyone) -- my dumb mistake. [I'm in the cleanup phase of the beta for my new app; I'll send a link to wicket-user pretty soon to try out.] --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today *

Re: [Wicket-user] Problem in unit tests

2005-10-30 Thread Juergen Donnerstag
On 10/30/05, Iman RahmatiZadeh [EMAIL PROTECTED] wrote: Argh ! Unit testing is way too hard in wicket. I'm using a custom implementation of WebSession in my application. The problem arises when I use the MockWebApplication class for testing, which creates and uses WebSession for tests and my

Re: [Wicket-user] Problem in unit tests

2005-10-30 Thread Iman RahmatiZadeh
Ok, Thanks. My mistake. In fact I was looking for something like the one you suggested, delegating the whole scenario to my application object. One more question, what's your strategy for unit testing ? From what I saw in SortableTableHeadersTest ,would it be: 1- Setup the application, page and

Re: [Wicket-user] Problem in unit tests

2005-10-30 Thread Juergen Donnerstag
Please see if WicketTester is more appropriate for you. An other choice could be jWebUnit. But it requires a servlet container and is pure html validation Juergen On 10/30/05, Iman RahmatiZadeh [EMAIL PROTECTED] wrote: Ok, Thanks. My mistake. In fact I was looking for something like the one you

[Wicket-user] Filtering double messages

2005-10-30 Thread Ralf Ebert
Hi, is there a way to show feedback messages which are duplicate (same text) only once to the user? I looked at the IFeedbackMessageFilter but this seems to be unusable for this kind of filtering because you can only decide message-by-message, it also can't be achieved by using a derived

[Wicket-user] Tab / Tabed-Page /Tabview Component?

2005-10-30 Thread David Liebeherr
Hi all, is there a Tabed-Page component for Wicket avaiable? Just like this: http://209.61.157.8:8080/taglibs/ ... Thanks, Dave -- Rent-a-Developer David Liebeherr Tel.: 0721 3504990 mail: [EMAIL PROTECTED] SUN Certified Java Associate (SCJA)

[Wicket-user] Re: Tab / Tabed-Page /Tabview Component?

2005-10-30 Thread Stefan Lindner
Dear Dave, dear wicket developers, I had the same question some weeks ago. There once was an example called TabPage and is still available in a silent corner of the CVS. But the Example no longer works with Wicket 1.1. I think a tabbed page is a core component for web development and should be

[Wicket-user] Validating two components

2005-10-30 Thread Nick Heudecker
Does Wicket provide a mechanism to validate two components? For instance, I'm taking credit card info and need to validate that the expiration month and year, both represented by individual select lists, are valid.

Re: [Wicket-user] Validating two components

2005-10-30 Thread Igor Vaynberg
You can do this in your onsubmit handler. ie Form...onSubmit() { CreditCardInfo=(CreditCardInfo)getModelObject(); if (.validation failed test) { error(something is wrong); } } Does this make sense? -Igor On 10/30/05, Nick Heudecker [EMAIL PROTECTED] wrote: Does Wicket provide a

Re: [Wicket-user] Validating two components

2005-10-30 Thread Nick Heudecker
Thanks. I knew I could do that, but I was hoping to be able to put that into a CustomValidator subclass.On 10/30/05, Igor Vaynberg [EMAIL PROTECTED] wrote:You can do this in your onsubmit handler. ie Form...onSubmit() { CreditCardInfo=(CreditCardInfo)getModelObject(); if (.validation

Re: [Wicket-user] Validating two components

2005-10-30 Thread Igor Vaynberg
I dont think there is anything preventing you from doing that. ie TextField td1=new TextField(...); TextField td2=new TextField(...); td2.add(new MyValidator(td1, td2)); -Igor On 10/30/05, Nick Heudecker [EMAIL PROTECTED] wrote: Thanks. I knew I could do that, but I was hoping to be able to put

Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?

2005-10-30 Thread Johan Compagner
why is it a core component? It is mostly a design issue if you ask me. Because under neath it are just links that are setting a panel (or switching visibility) How would such a component look like? On 10/30/05, Stefan Lindner [EMAIL PROTECTED] wrote: Dear Dave, dear wicket developers,I had the

Re: [Wicket-user] Re: Tab / Tabed-Page /Tabview Component?

2005-10-30 Thread Andrew Berman
I agree with Johan. Tabs are by no means a core component. In fact, you can accomplish tabs easily using a ListView and some CSS, so it's definitely a design issue as Johan mentioned. See these for the CSS to create tabs: http://www.alistapart.com/articles/slidingdoors/

Re: [Wicket-user] replace ognl.

2005-10-30 Thread Matej Knopp
In my opinion, there's no need for another indirection. From what I've seen, new users are already confused about models, making them even more complicated isn't imho the way to go. I think that Ognl models should be separated from the core and put to extensions. That would also get rid of

[Wicket-user] Discussion about strategy

2005-10-30 Thread wang lei
I use wicket for over months and develop one project with it. So i have a suggestion for wicket core or wicket-stuff. All of us know,ACL is necessary for a project. Just a simple example, name here is user name Password(label) here is user password(TextField) ... ... ... ... ... ... ... ...

Re: [Wicket-user] replace ognl.

2005-10-30 Thread Eelco Hillenius
I agree with Matej. Eelco On 10/30/05, Matej Knopp [EMAIL PROTECTED] wrote: In my opinion, there's no need for another indirection. From what I've seen, new users are already confused about models, making them even more complicated isn't imho the way to go. I think that Ognl models should