Re: How do I mock a Wicket component?

2016-09-02 Thread Jan Ferko
Hi Jonathan, Take a look at method WicketTester.assertVisible("path-to-modal"). That way you can use plain modal window without any mocking, stubing or spying in your tests. I hope this helped. Jan On 2.9.2016 11:24, Jonathan Eenkhoorn wrote: I am trying to unittest a wicket panel with the

Unit Testing Application with custom HttpServletResponse

2011-10-03 Thread Jan Ferko
Hi everyone, We use proxy around HttpServletResponse in our application. I would like to test components/pages using WicketTester, but when WicketTester tries to startPage it throws following exception: java.lang.ClassCastException: myPackage.HttpServletResponseProxy cannot be cast to org.ap

Re: Unit Testing Application with custom HttpServletResponse

2011-10-13 Thread Jan Ferko
(mockResponse); mockCycle.setRequest(request); mockCycle.setResponse(response); return mockCycle; } On 10/03/2011 01:16 PM, Jan Ferko wrote: Hi everyone, We use proxy around HttpServletResponse in our application. I would like to test components/pages using WicketTester, but

Modal Window with Ajax in Firefox

2011-10-26 Thread Jan Ferko
Hi, I have problem with form processing in modal window. I have form in modal window which is submitted by AjaxButton. User choose one of possible combinations and if combination is still available reservation process continue if not combination is removed from listview and user can choose an

Re: Modal Window with Ajax in Firefox

2011-10-26 Thread Jan Ferko
Thanks for quick reply. I close modal window in onError method of AjaxButton. Here is code: public class MyModal extends ModalWindow { public MyModal(String id) { super(id); MyPanel panel = new MyPanel(getContentId()) { public void onError(AjaxRequest

Re: Modal Window with Ajax in Firefox

2011-10-31 Thread Jan Ferko
Hi, i am sorry that i didnt reply earlier. I forgot to mention that, when I close modal window with form, I show other modal window and it seems that javascript opens first window instead of new one. On 10/27/2011 12:36 AM, Andrea Del Bene wrote: Hi, I've tried to reproduce your issue but w

Re: Modal Window with Ajax in Firefox

2011-11-09 Thread Jan Ferko
to > find a solution. > > --**--**- > To unsubscribe, e-mail: > users-unsubscribe@wicket.**apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Jan Ferko, julyl...@gmail.com

Re: Modal Window with Ajax in Firefox

2011-11-09 Thread Jan Ferko
>>> users-unsubscribe@wicket.**apa**che.org<http://apache.org> >>> >>> > >>> >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> > > --**--**- > To unsubscribe, e-mail: > users-unsubscribe@wicket.**apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Jan Ferko, julyl...@gmail.com

Fwd: Nested CompoundModel

2010-10-22 Thread Jan Ferko
solve this? Thanks for help Jan Ferko

Re: Fwd: Nested CompoundModel

2010-10-24 Thread Jan Ferko
> > MyPanel want's to utilize a CompoundPropertyModel (because it doesn't set > > the model on its contained components), it should set it up by itself. > > > > HTH > > > > Sven > > > Sven is spot-on, and this method he showed you above will absolutely save > you some bugs down the road! > > Thanks Sven!! > > -- > Jeremy Thomerson > http://wickettraining.com > *Need a CMS for Wicket? Use Brix! http://brixcms.org* > -- Jan Ferko, julyl...@gmail.com

Re: Fwd: Nested CompoundModel

2010-10-24 Thread Jan Ferko
ata); MyPanel panel = new MyPanel("panel", new CompoundPropertyModel(data)); parent.add(panel); } Jan Ferko 2010/10/24 Jan Ferko > Thanks a lot, it worked great. > > I have one more question. I have to create same panel multiple times , > based on user output into th

Re: Fwd: Nested CompoundModel

2010-10-25 Thread Jan Ferko
well, I have all fields which have to be create dynamicaly grouped in one panel. So whole panel is 2010/10/25 Jeremy Thomerson > What part is dynamic / dependent on the form? > > On Sun, Oct 24, 2010 at 3:59 PM, Jan Ferko wrote: > > > Thanks a lot, it worked great. >

Re: Fwd: Nested CompoundModel

2010-10-26 Thread Jan Ferko
Thanks a lot everyone On 10/26/2010 03:17 AM, Pedro Santos wrote: If you have n MyPanelData on a page, you will be fine with the RepeatingView. Otherwise use the Listview to generate the correct number of items with MyPanel each render. On Mon, Oct 25, 2010 at 8:19 PM, Jan Ferko wrote

Configuration of AbstractCalendar

2010-11-05 Thread Jan Ferko
Hi, Can anyone tell me what is format of map for AbstractCalendar.configureWidgetProperties(Map map) ? For example I want to set navigator property to true, but map.put("navigator", true) doesn't work. thanks for answer Jan

Re: Configuration of AbstractCalendar

2010-11-09 Thread Jan Ferko
, 2010 at 9:25 AM, Jan Ferko wrote: Hi, Can anyone tell me what is format of map for AbstractCalendar.configureWidgetProperties(Map map) ? For example I want to set navigator property to true, but map.put("navigator", true) doesn't work. thanks

Re: Configuration of AbstractCalendar

2010-11-09 Thread Jan Ferko
the formcomponent's model the > datepicker is attached to. > > -igor > > > On Tue, Nov 9, 2010 at 2:27 AM, Jan Ferko wrote: > > Thanks, > > > > I figured it out. I have one more question ... can i use wicket behaviour > to > > retrieve selected date from cal

Re: Configuration of AbstractCalendar

2010-11-12 Thread Jan Ferko
r On Tue, Nov 9, 2010 at 2:27 AM, Jan Ferko mailto:julyl...@gmail.com>> wrote: > Thanks, > > I figured it out. I have one more question ... can i use wicket behaviour to > retrieve selected date from calendar or i have to write some JS hacks to do

IValidator vs IFormValidator

2011-01-19 Thread Jan Ferko
both interfaces which leeds mostly to lot of duplicit code. So i was wondering is there any particular reason that FormValidators and Validators are separated? Thanks for respond. Jan Ferko

Re: FormComponentPanel and CompoundPropertyModels

2011-01-20 Thread Jan Ferko
Hi, id of your TextFields should match name of property in Address model. something like that.. public class Address { private String address1; private String address2; private String city; //getters public String getAddress1(){} ... } Jan Ferko On 01/20/2011 12:45

Checkgroup and PagingNavigator

2011-02-02 Thread Jan Ferko
Hi, I am using PagingNavigator on my dataview. Every item in dataview has checkbox to delete item from persistent layer. Problem is that when i change page I loose information about which checkbox on previous page was selected. I implemented AjaxEventBehavior for every Check which manualy sto

Converter for interface

2011-02-04 Thread Jan Ferko
Hi, I wrote custom converter for entity class. convertToObject() works fine, but I have problem with convertToString(). Since i have different implementations for my entity (immutable and mutable version) I work with their common interface in my web layer and wicket seems not to recognize tha

RE: [OT] Wicketeers from Czech rep.

2011-02-22 Thread Jan Ferko
yes, there are a few.:) On Tue, 2011-02-22 at 20:32 +0100, Ladislav DANKO wrote: > yes, a lot of ;-) > > > > > -Original Message- > > From: danisevsky [mailto:danisev...@gmail.com] > > Sent: Tuesday, February 22, 2011 4:52 PM > > To: users@wicket.apache.org > > Subject: [OT] Wicketeer