Related wiki entry
http://cwiki.apache.org/confluence/display/WICKET/Type-safe+testing+in+wicket
**
Martin
-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail:
The golden rule of DropDownChoice is that the values in the list must be
the same as the property you are trying to set. In your case, if you
want basicDemographicInfo.gender to be set to m or f, you must pass
the DropDownChoice the list [ m, f ]. You'll then need a renderer
that produces the
This may confuse the web user quite a bit. It's preferred to send the request
each time or cache it maybe.
Form form = new Form( form );
List SITES = Arrays.asList(new String[] { The Server Side,
Java Lobby,
Java.Net });
final ListString values = new
After changing genders from ListGender to ListString, I'm seeing the
opposite behaviour. The values are coming across as ['m','f'] but the id's
are ['0','1']
Overriding getIdValues() instead of getDisplayValues() seems to work.
John Krasnay wrote:
The golden rule of DropDownChoice is that
Hi,
I currently made this simple tab application just to try out how things
work. I created Index.java and .html files. Java contains basicaly this:
public Index(final PageParameters parameters) {
tabs.add(new AbstractTab(new Model(Index)) {
public Panel getPanel(String
It looks like you are using the standard wicket quickstart archetype,
and you've changed the HomePage (or perhaps deleted it entirely) but
haven't altered the corresponding sample test in
src/test/java/**/TestHomePage.java, which is expecting to find the
Label that the default quickstart puts in
Thank you for your reply,
I just chcecked the test but it seems OK
public void testRenderMyPage()
{
//start and render the test page
tester.startPage(Index.class);
//assert rendered page class
tester.assertRenderedPage(Index.class);
//assert rendered
assertLabel is looking for a top-level label component with wicket:id
label and it's not finding one. You'll need to post Index.html if
you want me to tell you why, but I'm guessing you could look at
Index.html and see if it has a message label contained by no other
wicket components, and also
Why do you care what the id's are? Wicket doesn't store the ID anywhere,
it just uses the ID to look up the list element to put into the model.
jk
On Sun, May 10, 2009 at 08:08:30AM -0700, Oblivian wrote:
After changing genders from ListGender to ListString, I'm seeing the
opposite
Ben Tilford wrote:
Have you looked at selenium? Your not really unit testing here.
Hi Ben,
What do you mean Your not really unit testing here. ?
MSi
On Sat, May 9, 2009 at 7:41 AM, Marko Sibakov marko.siba...@ri.fi wrote:
Like Martijn said i also strongly recommend to take a look at
I'm trying to use ObjectAutoComplete from wicketstuff on a form where
the model is a CompoundPropertyModel.
The auto compete field doesn't seem to be setting its value on the
form model at all during a submit.
I've looked at the examples for this component and not a single one
actually
unit testing is about testing small isolated bits of functionality in isolation
lets say that you want to test foo(p) { return a(b(c(p))); }
what martin is trying to do is to test that foo(q) yields the desired
value w, what he should do instead is
test a() in isolation to make sure it works
12 matches
Mail list logo