[ANN] AjaxDatePicker and AjaxDefaultSubmitButton
[ANN] AjaxDatePicker and AjaxDefaultSubmitButton
- Subject: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
- From: Chuck Hill <email@hidden>
- Date: Tue, 24 Mar 2009 13:59:07 -0700
In the interests of keeping folks up to date with what is getting
added to Wonder...
AjaxDatePicker
Shameless port and adoption of Rails Date Kit (Swazz Calendar with
extra goodness). This input understands the format symbols %d, %e, %b,
%m, %B, %y, and %Y. See the NSTimestampFormatter for what these
symbols do. This component can also understand the corresponding
symbols from java.text.SimpleDateFormat. You can use any date format
allowed by these symbols. The translation from SimpleDateFormat
symbols to NSTimestampFormatter symbols may have some defects.
Localization is also supported. The AjaxExamples page shows a French
version.
NOTE: the AjaxDatePicker does NOT play nice with the
AjaxModalDialogOpener. There is some sort of initialization conflict
(I think) with Prototype that leaves you with a blank page and the
browser waiting forever for something (and I have not been able to
determine what it is) as soon as calendar.js loads and initialized. It
will work if the page the AMD appears on explicitly loads the
calendar.js in it's HEAD:
public void appendToResponse(WOResponse response, WOContext context) {
super.appendToResponse(response, context);
ERXResponseRewriter.addScriptResourceInHead(response, context(),
"Ajax", "calendar.js");
}
Full details in JavaDoc.
AjaxDefaultSubmitButton
Invisible form submit button that can be included as the first element
in an Ajax submitted form so that hitting enter performs the action
bound to this button. It supports most of the other AjaxSubmitButton
bindings.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden