Modal window issue
Hi All, In my current application there is a need to open a Modal window with in a Modal window and close the parent Modal window, once the child Modal window opens. Currently from one page on click of a icon the Modal window 1 is opening. Modal window 1 has few other components along with few buttons. On click of a create button another Modal window Modal window 2 opens. 1. The need is to close the Modal window 1 when the Modal window 2 opens. But for Modal window 2, the parent is Modal window 1. So if I close the Modal window 1, Modal window 2 does not open. *Is there a way by which I can close Modal window 1, when Modal window 2 open.* 2. If I can not close the parent Modal window, I want to hide the Modal window 1, when the Modal window 2 open. I tried the setVisible() for Modal window 1. but it did not work. *Is there a way by which I can hide the Modal window 1 or at least deactivate the Modal window 1, when the Modal window 2 opens.* Both the Modal windows uses Panel. I am using wicket 1.4. - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Modal-window-issue-tp3731060p3731060.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Model window issue
Hi All, I need some help regarding the model window. My web page contains some components. On click of a icon a model window 1 opens. Model window 1 extends a panel. Model window 1 has a create button, on click of which another model window i.e. the Model window 2 opens. On open of Model window 2, I want to hide the Model window 1 or make it inactive so that it will not be selected. Can I do that any way. I have tried to close() and setVisible() for the Model window 1. It did not work. Thanks in advance. - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3727688.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Model window issue
In my application both the model windows are pretty much of same size. So when one model window opens on the other one, it looks very odd. for that reason I need to some how make the underneath model window inactive or hidden, so that it will not look odd. I can not close the Model window 1 as it is the parent one. If I close it the child i.e. Model window 2 will not open. Please give me some suggestions on this. - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Model-window-issue-tp3727688p3728161.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice updates onchange event.
The savedReportsDropDownList Arraylist contains a collection of SelectedTrackProfileVO. trackingProfileVO is a type of TrackingProfileVO, which contains the selected object which is of type SelectedTrackProfileVO. profileDropDown is of type SelectedTrackProfileVO. TrackingProfileVO is added to the form. - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3702308.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice updates onchange event.
I mean to say before the onUpdate was executed the DropDownChoice contains in the order of (A, B, C, D). But after the execution of onUpdate() the DropDownChoice contains in the order of (D, B, A, C) which is totally a new order. I have not updated the sequence of the elements. But still the order changed. How can I make the DropDownChoice to diaplay the elements in the order of (A, B, C, D). - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699383.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice updates onchange event.
I am using a List. - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699387.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice updates onchange event.
I am using a Arraylist. - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699493.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice updates onchange event.
(); } }; } }); - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699847.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice updates onchange event.
); return scriptBuffer.toString(); } }; } }); - Thanks Regards, Archana -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DropDownChoice-updates-onchange-event-tp3699271p3699850.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Date Field Validation
Hi, I am working on date fields and have problems with the validation. I have referred to the link below which helped me. http://www.nabble.com/Strict-4-digit-year-for-DateTextField--td18656889. html So I have subclassed the PatternDateConverter and have set the pattern as, dateFormat = ^(\\d{1,2})/(\\d{1,2})/(\\d{4})$; I have 2 date fields, start_date and end_date. The start_date is a required field and the end_date is not. some code pdc = new StrictPatternDateConverter(DateUtil.getDateFormatOnLocale(getLocale()), false); more code startDateField = DateTextField.withConverter(startDate, new PropertyModel(this, startDate), pdc); startDateField.add(new TMPDatePicker()); form.add(startDateField); endDateField = DateTextField.withConverter(endDate, new PropertyModel(this, endDate), pdc); endDateField.add(new TMPDatePicker()); form.add(endDateField); more code This works fine ie it does not allow entry of 03/03/09 or 03/03/-2009 BUT, the end_date becomes a required field. I have to enter the end_date to click 'Save'. Else it complains that an invalid date has been entered. But my end_date is not a required field. So if I replace it with, endDateField = DateTextField.forDatePattern(endDate, DateUtil.getDateFormatOnLocale(getLocale())); endDateField.withConverter(endDate, pdc); endDateField.add(new TMPDatePicker()); It allows, 03/03/-2009 and 03/03/09. Why does it allow the '-' sign. It computes it to a value and displays a year. My application has several date fields and I need to validate them. I am a newbie to Wicket and have looked up the archive quite a bit to find a solution. Can someone please tell me a solution to my date validation problem? Thanks very much
Wicket Date Field Validation
Hi, I am working on date fields and have problems with the validation. I have referred to the link below which helped me. http://www.nabble.com/Strict-4-digit-year-for-DateTextField--td18656889. html So I have subclassed the PatternDateConverter and have set the pattern as, dateFormat = ^(\\d{1,2})/(\\d{1,2})/(\\d{4})$; I have 2 date fields, start_date and end_date. The start_date is a required field and the end_date is not. some code pdc = new StrictPatternDateConverter(DateUtil.getDateFormatOnLocale(getLocale()), false); more code startDateField = DateTextField.withConverter(startDate, new PropertyModel(this, startDate), pdc); startDateField.add(new TMPDatePicker()); form.add(startDateField); endDateField = DateTextField.withConverter(endDate, new PropertyModel(this, endDate), pdc); endDateField.add(new TMPDatePicker()); form.add(endDateField); more code This works fine ie it does not allow entry of 03/03/09 or 03/03/-2009 BUT, the end_date becomes a required field. I have to enter the end_date to click 'Save'. Else it complains that an invalid date has been entered. But my end_date is not a required field. So if I replace it with, endDateField = DateTextField.forDatePattern(endDate, DateUtil.getDateFormatOnLocale(getLocale())); endDateField.withConverter(endDate, pdc); endDateField.add(new TMPDatePicker()); It allows, 03/03/-2009 and 03/03/09. Why does it allow the '-' sign. It computes it to a value and displays a year. My application has several date fields and I need to validate them. I am a newbie to Wicket and have looked up the archive quite a bit to find a solution. Can someone please tell me a solution to my date validation problem? Thanks very much