Re: [Wicket-user] AjaxLink not updating Image

2007-07-04 Thread Sven Schliesing
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

Re: [Wicket-user] jUnit-testing and not existing images

2007-06-14 Thread Sven Schliesing
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

Re: [Wicket-user] jUnit-testing and not existing images

2007-06-13 Thread Sven Schliesing
> 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

[Wicket-user] jUnit-testing and not existing images

2007-06-12 Thread Sven Schliesing
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 {

Re: [Wicket-user] Tree testing

2007-06-08 Thread Sven Schliesing
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

[Wicket-user] Tree testing

2007-06-08 Thread Sven Schliesing
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

[Wicket-user] Configuration Interceptor

2007-06-07 Thread Sven Schliesing
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

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Sven Schliesing
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

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Sven Schliesing
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

Re: [Wicket-user] Map.Entry and serialization

2007-05-30 Thread Sven Schliesing
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

Re: [Wicket-user] Map.Entry and serialization

2007-05-29 Thread Sven Schliesing
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

Re: [Wicket-user] Map.Entry and serialization

2007-05-29 Thread Sven Schliesing
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

[Wicket-user] Map.Entry and serialization

2007-05-29 Thread Sven Schliesing
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)