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
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 *
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
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
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
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
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)
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
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.
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
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
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
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
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/
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
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)
...
...
...
...
...
...
...
...
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
17 matches
Mail list logo