DateTimeRangePicker
Hi, Is There a DateTimePicker component for Wicket as below: http://www.7thweb.net/wicket-jquery-ui/plugins/datepicker/RangeDatePickerTextFieldPage?1 The Component mentioned above has only Date Component i want to know is there a Date Range Picker along with Time Component. Thanks in Advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateTimeRangePicker-tp4667763.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: DateTimeRangePicker
Hi, I haven't seen such JavaScript widget so far. Do you know one ? If it supports Bootstrap (getbootstrap.com) then I'll be glad to add integration for it to https://github.com/l0rdn1kk0n/wicket-bootstrap Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 30, 2014 at 1:48 PM, manoj kumar malathkarma...@gmail.com wrote: Hi, Is There a DateTimePicker component for Wicket as below: http://www.7thweb.net/wicket-jquery-ui/plugins/datepicker/RangeDatePickerTextFieldPage?1 The Component mentioned above has only Date Component i want to know is there a Date Range Picker along with Time Component. Thanks in Advance. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DateTimeRangePicker-tp4667763.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: AjaxFormChoiceComponentUpdatingBehavior CheckGroup and CheckGroupSelector
Martin Grigorov-4 wrote I'd write a custom selector that changes the checkboxes's state to 'selected' and then uses ajax to make a batch update. Hi, Could you expand on this, please? I have the exact same problem. Thanks, Luis Pureza -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxFormChoiceComponentUpdatingBehavior-CheckGroup-and-CheckGroupSelector-tp4641921p4667765.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
FormValidators and messages property file
Hi, I have created form validator classes as shown below. The problem is that the code is not picking up messages from the corresponding 'FromDateBeforeToDate.properties' file in the same package. It works if the messages are in the page.properties or application.properties file. I can see works OK for class implementing IValidator but can't seem to make it work for class extending AbstractFormValidator.Are my expectations wrong? If not then please tell me how I can fix the code. public class FromDateBeforeToDate extends AbstractFormValidator { /** * */ private static final long serialVersionUID = 3503966266288025266L; DateField fromDateFormComponent; DateField toDateFormComponent; public FromDateBeforeToDate( DateField fromDateFormComponent, DateField toDateFormComponent) { if (fromDateFormComponent == null) { throw new IllegalArgumentException(Argument dateFromFormComponent cannot be null); } this.fromDateFormComponent = fromDateFormComponent; if (toDateFormComponent == null) { throw new IllegalArgumentException(Argument dateToFormComponent cannot be null); } this.toDateFormComponent = toDateFormComponent; } @Override public FormComponent?[] getDependentFormComponents() { return new FormComponent?[] { fromDateFormComponent, toDateFormComponent, }; } @Override public void validate(Form? form) { Date fromDate = fromDateFormComponent.getConvertedInput(); Date toDate = toDateFormComponent.getConvertedInput(); if (fromDate != null toDate != null fromDate.after(toDate)) { //error(fromDateFormComponent, fromDateAfterToDate); ValidationError error = new ValidationError(); error.addMessageKey(getClass().getSimpleName() + . + fromDateAfterToDate); fromDateFormComponent.newValidatable().error(error); //this.error(fromDateFormComponent); } } } FromDateBeforeToDate.properties #fromDateAfterToDate=Invalid input: The '${label}' date is after the '${label}' date FromDateBeforeToDate.fromDateAfterToDate=Invalid input: The '${label}' date is after the '${label}' date Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FormValidators-and-messages-property-file-tp4667767.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: AjaxSubmitLink not working when fileUpload in Form
Hello, Thank you for your feedback. So I took the example and started adding my code and it works ! After multiple comparisons and some tests I found out that the problem is in the HTML and arises when the input type=submit name=submit/ is inside the form /form tags. So no issue whatsoever having the submit in the form, unless there is a fileUpload. That's still a bit weird. But anyway, problem solved, so thanks again ! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/AjaxSubmitLink-not-working-when-fileUpload-in-Form-tp4667740p4667766.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: FormValidators and messages property file
Hi, According to https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/resource/loader/ValidatorStringResourceLoader.java#L62 it should work ! There is even a test for this: https://github.com/apache/wicket/tree/master/wicket-core/src/test/java/org/apache/wicket/resource/loader Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Tue, Sep 30, 2014 at 9:36 PM, msalman mohammad_sal...@yahoo.com wrote: Hi, I have created form validator classes as shown below. The problem is that the code is not picking up messages from the corresponding 'FromDateBeforeToDate.properties' file in the same package. It works if the messages are in the page.properties or application.properties file. I can see works OK for class implementing IValidator but can't seem to make it work for class extending AbstractFormValidator.Are my expectations wrong? If not then please tell me how I can fix the code. public class FromDateBeforeToDate extends AbstractFormValidator { /** * */ private static final long serialVersionUID = 3503966266288025266L; DateField fromDateFormComponent; DateField toDateFormComponent; public FromDateBeforeToDate( DateField fromDateFormComponent, DateField toDateFormComponent) { if (fromDateFormComponent == null) { throw new IllegalArgumentException(Argument dateFromFormComponent cannot be null); } this.fromDateFormComponent = fromDateFormComponent; if (toDateFormComponent == null) { throw new IllegalArgumentException(Argument dateToFormComponent cannot be null); } this.toDateFormComponent = toDateFormComponent; } @Override public FormComponent?[] getDependentFormComponents() { return new FormComponent?[] { fromDateFormComponent, toDateFormComponent, }; } @Override public void validate(Form? form) { Date fromDate = fromDateFormComponent.getConvertedInput(); Date toDate = toDateFormComponent.getConvertedInput(); if (fromDate != null toDate != null fromDate.after(toDate)) { //error(fromDateFormComponent, fromDateAfterToDate); ValidationError error = new ValidationError(); error.addMessageKey(getClass().getSimpleName() + . + fromDateAfterToDate); fromDateFormComponent.newValidatable().error(error); //this.error(fromDateFormComponent); } } } FromDateBeforeToDate.properties #fromDateAfterToDate=Invalid input: The '${label}' date is after the '${label}' date FromDateBeforeToDate.fromDateAfterToDate=Invalid input: The '${label}' date is after the '${label}' date Thanks. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/FormValidators-and-messages-property-file-tp4667767.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: how to connect elements - label and input (checkbox)
wow this is the strangest thing. i searched for the same thing a year later (to the day almost) and again its a silly agree to terms checkbox and guess what... wicket 6.17.0 seems to have the same problem... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/how-to-connect-elements-label-and-input-checkbox-tp4650304p4667770.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