Hi all, How do you deal with TimeStamp ? For Date we have #addDateInputFieldAspect:for:, but for
TimeStamp ? Is there any web control or javascript for TimeStamp ? May be the best way is to create 2 components, one calendar
and one text field… How do you deal with TimeStamp ? Regards, Bruno _______________________________________________ Aida mailing list [hidden email] http://lists.aidaweb.si/mailman/listinfo/aida |
Hi Bruno,
I so far didn't need to have a timestamp specific input fields. If really needed, I use two fields, one for a dite, another for a time. Best regards Janko On 07. 12. 2009 19:09, Bruno Buzzi Brassesco wrote: > Hi all, > > > > How do you deal with TimeStamp ? > > > > For Date we have #addDateInputFieldAspect:for:, but for TimeStamp ? > > > > Is there any web control or javascript for TimeStamp ? > > > > May be the best way is to create 2 components, one calendar and one text > field… > > > > How do you deal with TimeStamp ? > > > > Regards, > > Bruno > > > > > > _______________________________________________ > Aida mailing list > [hidden email] > http://lists.aidaweb.si/mailman/listinfo/aida -- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si _______________________________________________ Aida mailing list [hidden email] http://lists.aidaweb.si/mailman/listinfo/aida |
Janko,
Great, now i have my TimeStamp component: WebDateTimeInputField subclass of: WebInputField. Plus support classes: WebDateInputFieldForTimeStamp subclass of WebDateInputField, and: WebInputFieldForTimeStamp subclass of WebInputField. It display TimeStamp value of an object aspect, but still not set and object with the contents of web panels, I think I have to add some other method, but it is easily to achieve. AIDA did it again, that was quick and easy! WebDateTimeInputField aspect: aSymbol for: anObject super aspect: aSymbol for: anObject. dateInputField := self add: (WebDateInputFieldForTimeStamp aspect: aSymbol for: anObject). timeInputField := self add: (WebInputFieldForTimeStamp aspect: aSymbol for: anObject). elements := OrderedCollection with: dateInputField with: timeInputField /********************************************************/ printHTMLPageOn: aStream for: aRequest on: aSession dateInputField printHTMLPageOn: aStream for: aRequest on: aSession. aStream nextPutAll: '<br></br> '. timeInputField printHTMLPageOn: aStream for: aRequest on: aSession. /********************************************************/ WebDateInputFieldForTimeStamp prepareAttributesToPrintOn: aSession self value notNil ifTrue: [self attributesAt: #value put: (WebFormElement autoConvertAndEncodeValue: self value date)] /********************************************************/ WebInputFieldForTimeStamp prepareAttributesToPrintOn: aSession self value notNil ifTrue: [self attributesAt: #value put: (WebFormElement autoConvertAndEncodeValue: self value time)] -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Janko Mivšek Sent: Monday, December 07, 2009 6:47 PM To: [hidden email] Subject: Re: [aida] TimeStamp control Hi Bruno, I so far didn't need to have a timestamp specific input fields. If really needed, I use two fields, one for a dite, another for a time. Best regards Janko On 07. 12. 2009 19:09, Bruno Buzzi Brassesco wrote: > Hi all, > > > > How do you deal with TimeStamp ? > > > > For Date we have #addDateInputFieldAspect:for:, but for TimeStamp ? > > > > Is there any web control or javascript for TimeStamp ? > > > > May be the best way is to create 2 components, one calendar and one text > field. > > > > How do you deal with TimeStamp ? > > > > Regards, > > Bruno > > > > > > _______________________________________________ > Aida mailing list > [hidden email] > http://lists.aidaweb.si/mailman/listinfo/aida -- Janko Mivšek AIDA/Web Smalltalk Web Application Server http://www.aidaweb.si _______________________________________________ Aida mailing list [hidden email] http://lists.aidaweb.si/mailman/listinfo/aida No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.426 / Virus Database: 270.14.97/2550 - Release Date: 12/07/09 07:33:00 _______________________________________________ Aida mailing list [hidden email] http://lists.aidaweb.si/mailman/listinfo/aida |
Free forum by Nabble | Edit this page |