Re: SpringWicketTester code (tested with Wicket 1.4 and spring-wicket)

2009-12-13 Thread Peter Gardfjell
Great post! I had difficulties getting the wicket tester up and running with my Spring-enabled app but your class worked like a charm. Wouldn't it be a good idea to contribute that code to the wicket-spring subproject? best regards, Peter -- View this message in context:

Re: How to add cookies to WicketTester?

2008-12-01 Thread Peter Gardfjell
) public final Page startPage(final Page page) instead of wicketTester.startPage(FooPage.class); and also you should use wicket tester's request for adding cookies: wicketTester.getServletRequest() have not tried it though. Vitek Peter Gardfjell wrote: Hi all, does anyone know

How to add cookies to WicketTester?

2008-11-28 Thread Peter Gardfjell
Hi all, does anyone know of some easy way of adding cookies to WicketTester prior to having it visit page? That is something along the line of WicketTester wicketTester = new WicketTester(new MyApplication()); Cookie cookie = new Cookie(name, value);

Can a Panel's id be re-assigned after construction?

2008-06-09 Thread Peter Gardfjell
Hi, a quick question. Is it possible to assign a new id to a Panel after it has been constructed? Something similar to: public Panel createPanel() { return new MyPanel(dummyID, ...); } ... ... Panel myPanel = createPanel(); myPanel.setId(newID); I would like to have a component

Re: Can a Panel's id be re-assigned after construction?

2008-06-09 Thread Peter Gardfjell
done so, implicitly... :-). Just to make things absolutely clear: can a Panel only be assigned an identifier at the time its constructor is called? /Peter igor.vaynberg wrote: pass the id into the createPanel method -igor On Mon, Jun 9, 2008 at 11:51 AM, Peter Gardfjell [EMAIL

Re: Problems toggling visibility on nested borders

2008-05-30 Thread Peter Gardfjell
a reasonable workaround to you or would you suggest a different approach? /Peter igor.vaynberg wrote: yep, and if you can actually merge it into a project generated by archetype it will make it that much easier for us to work with. -igor On Thu, May 29, 2008 at 10:55 PM, Peter Gardfjell

Problems toggling visibility on nested borders

2008-05-29 Thread Peter Gardfjell
Hi all, I am trying to implement a reusable CollapsableBorder component. I intend to use it to create collapsable sections on my web page (clicking a link collapses/expands the section, i.e. the border contents). The component seems to work just fine for basic usage. The problem, however, occurs