Done: https://issues.apache.org/jira/browse/WICKET-720
But unfortunately the TestCase works as expected, while the "in the wild"
test fails.
--
View this message in context:
http://www.nabble.com/AjaxLink-not-updating-Image-tf3915168.html#a11425908
Sent from the Wicket - User mailing list archi
Done: https://issues.apache.org/jira/browse/WICKET-646
> Can you please create a new issue?
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XM
> As a quick workaround you can do this:
>
> tester.startPage(WebTestPage.class);
>
> Does it work?
This results in:
junit.framework.AssertionFailedError: page was null
at
org.apache.wicket.util.tester.WicketTester.assertResult(WicketTester.java:499)
at
org.apache.wicket.util
Hi,
I just came across the following error:
junit.framework.AssertionFailedError: expected: but
was:
To narrow it down I created a simple Testclass with the according html.
I also added a test case. Here we go:
WebTestPage.java:
-
[...]
public class WebTestPage extends WebPage {
Thanks Frank, thanks Ingram!
Didn't know that I could just access the links like that. But it seems
quite logical.
Everything works as expected now.
Thanks again!
Sven
-
This SF.net email is sponsored by DB2 Express
Down
Hi,
I'm trying to heavily rely on test driven development while building my
application.
Fortunately wicket does a really good job for unit-testing. But
unfortunately I do not succeed in simulating a "click" on a node in a
Tree with AjaxLinks.
I already searched the svn for a test already han
Hi,
I'm trying to build a "ConfigurationInterceptor" for my wicket-application.
Goal of this is the easy configuration file handling even when updating
the application.
The Application is started and looks if it has a property file
"configFileLocation.properties" (this just contains the name o
Ah, perfect :)
Thank you so much for your help!
Johan Compagner wrote:
> Model model = new Model(map)
> {
> getObject()
> {
> return new List(map.entries())
> }
> }
>
> ListView lv = new ListView(x,model);
> johan
I tried that already. But I ran into the following problem:
Caused by: java.lang.ClassCastException: java.util.HashMap cannot be
cast to java.util.List
at
org.apache.wicket.markup.html.list.ListView.getList(ListView.java:174)
at
org.apache.wicket.markup.html.list.ListView.getView
Changing the code to:
new ListView("list", new ArrayList>(map.entrySet())) {
public void populateItem(ListItem listItem) {
Map.Entry entry = (Map.Entry)
listItem.getModelObject();
...
}
};
doesn't fix the problem. Furthermore
http://java.sun.com/j2se/1.5.0/docs/api/java/util/M
So the problem isn't the final keyword but the fact that Maps aren't
serializable, right?
Johan Compagner wrote:
> remove the final keyword of the entry variable.
> You shouldn't keep entry objects like that then it will become members
> and an Map.Entry isn't serializeable
> because the HashMap
Btw: I'm using 1.3.0-incubating-SNAPSHOT if that matters.
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to g
Hi,
I just ran into problems with a List view. The Model used for this is
actually a Map so I put in a entrySet() from the map in the ListView:
new ListView("list", new ArrayList>(map.entrySet())) {
public void populateItem(final ListItem listItem) {
final Map.Entry entry = (Map.Entry)
13 matches
Mail list logo