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

Re: Modal Window with Ajax in Firefox

2011-11-09 Thread Jan Ferko
and to find a solution. --**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@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
--**--**- To unsubscribe, e-mail: users-unsubscribe@wicket.**apache.orgusers-unsubscr...@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-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

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

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

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

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] Wicketeers from Czech

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

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

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

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: Configuration of AbstractCalendar

2010-11-09 Thread Jan Ferko
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 it? On 11/06/2010 06:38 PM, Igor Vaynberg wrote: i think its whatever format the yui component expects. -igor On Fri, Nov 5,

Re: Configuration of AbstractCalendar

2010-11-09 Thread Jan Ferko
be available in the formcomponent's model the datepicker is attached to. -igor On Tue, Nov 9, 2010 at 2:27 AM, Jan Ferko 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

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: Fwd: Nested CompoundModel

2010-10-26 Thread Jan Ferko
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 -- Jeremy Thomerson http://wickettraining.com *Need a CMS

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 jer...@wickettraining.com What part is dynamic / dependent on the form? On Sun, Oct 24, 2010 at 3:59 PM, Jan Ferko julyl...@gmail.com wrote: Thanks a lot

Re: Fwd: Nested CompoundModel

2010-10-24 Thread Jan Ferko
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
); MyPanel panel = new MyPanel(panel, new CompoundPropertyModel(data)); parent.add(panel); } Jan Ferko 2010/10/24 Jan Ferko julyl...@gmail.com Thanks a lot, it worked great. I have one more question. I have to create same panel multiple times , based on user output into the form and i have

Fwd: Nested CompoundModel

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