• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton


  • Subject: Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
  • From: Ramon Havermans <email@hidden>
  • Date: Thu, 26 Mar 2009 15:51:16 +0100

Hi there,

I want to use the AjaxDatePicker, but i am using the AjaxModalDialogOpener... The note from chuck is needed to get things going.

There is an other issue as well. If you open the datepicker and don't choose a value and then close the dialog with the x button, you will see the datepicker on the page which opened the AMD (without any style, because the stylesheet isn't loaded there).

Maybe the days and months translation could be better. I think it could lookup the values with ERXLocalizer and the English word as a value? Than you could just put in the days and months translation in your own Localizable.strings and it would work.

Ramon
-00-


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

_______________________________________________ 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
  • Follow-Ups:
    • Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
      • From: Chuck Hill <email@hidden>
References: 
 >[ANN] AjaxDatePicker and AjaxDefaultSubmitButton (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: WONoVA Web/Pod/Broadcast
  • Next by Date: Re: WONoVA Web/Pod/Broadcast
  • Previous by thread: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
  • Next by thread: Re: [ANN] AjaxDatePicker and AjaxDefaultSubmitButton
  • Index(es):
    • Date
    • Thread