[aida] TimeStamp control
Bruno Buzzi Brassesco
smalltalk at adinet.com.uy
Tue Dec 8 01:33:47 CET 2009
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: aida-bounces at aidaweb.si [mailto:aida-bounces at aidaweb.si] On Behalf Of
Janko Mivšek
Sent: Monday, December 07, 2009 6:47 PM
To: aida at aidaweb.si
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
> Aida at aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida
--
Janko Mivšek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si
_______________________________________________
Aida mailing list
Aida at aidaweb.si
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
More information about the Aida
mailing list