Hi Theodore,

You could have a look at ERDEditDatePopup and its superclass 
ERDEditDatePopupCommon. The date is set on the object during 
takeValuesFromRequest.

Fabian

Am 13.01.2013 um 13:51 schrieb Theodore Petrosky:

> That would be the easiest solution. force them to type in the whole thing.
> 
> But, I want to learn more D2W at the same time so, I created my own component 
> by copying ERMDDatePicker and added a popup wrapped in an AJAX observe field. 
> 
> My idea is that if you click on the textfield for the date part, the user 
> gets the normal date picker. Then they choose the time from the popup. As 
> these are normal business hour meetings, I can limit the list to half hours 
> from 9 am to 6 pm.
> 
> I am stuck. At what point does the component know about the bound attribute? 
> Not in the constructor :(  What I thought I would do is update the time 
> portion of the dateTime when the action if fired in the ObserverField.
> 
> If this works, this component would only be usable in this project as it 
> would refer to entities and attributes that only live here.
> 
> So knowing that there is a two part goal:
> 
> 1. create the interface that limits the user's ability to put in bad data and
> 2. Learn more about D2W.
> 
> will this work? where in the life of the component can I get a handle on the 
> 'object' that is being displayed (objectPropertyValue) so I can munge 
> together my date and time?
> 
> Ted
> 
> 
> 
> 
> --- On Sun, 1/13/13, Paul Hoadley <[email protected]> wrote:
> 
>> From: Paul Hoadley <[email protected]>
>> Subject: Re: D2W and date/time picker
>> To: "Theodore Petrosky" <[email protected]>
>> Cc: "WebObjects Development" <[email protected]>
>> Date: Sunday, January 13, 2013, 3:36 AM
>> On
>> 12/01/2013, at 2:25 AM, Theodore Petrosky <[email protected]>
>> wrote:
>> How are youse guys creating a date picker that
>> allows the user to then type in the time? I was thinking of
>> two textfields. one for the date picker and a second where
>> the user types in the time.
>> 
>> If I put two copies of the date time attribute with
>> displayPropertyKeys, how do I target them so the first is
>> for the date and the second is for the time. Or do I need to
>> create a new component? Does one exist?
>> 
>> I've never found a satisfactory solution to
>> this.  I tend to just use a text field and require the
>> whole timestamp to be typed out in full: '2013-01-13
>> 19:05'.
>> 
>> 
>> -- 
>> Paul Hoadley
>> http://logicsquad.net/
>> 
>> 
>> 
>> 
>> 
>> 
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/lists.fabian%40e-lumo.com
> 
> This email sent to [email protected]


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to