Re: DateInput5 in Seaside widget preinitialized value view
Johan Brichau <[email protected]> Wed, 8 Sep 2021 00:45:09 +0200
| Newsgroups | gmane.comp.lang.smalltalk.squeak.seaside |
|---|---|
| Message-ID | <[email protected]> |
--===============3073529827821619979== Content-Type: multipart/alternative; boundary="Apple-Mail=_942F98F1-8F78-4E4B-AEB8-A7E877DD63EE" --Apple-Mail=_942F98F1-8F78-4E4B-AEB8-A7E877DD63EE Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, You can check an example in WAHtml5InputTest html dateInput5 on: #startDate of: self contract =E2=80=A6should be enough because #on:of: sends #value: itself However, you should check to send a date in the correct format. See = https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date = <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date> There is no built-in conversion from a Date instance to a String. This = needs to be handled by your code. Hope this helps Johan > On 6 Sep 2021, at 19:22, Oswall Verny Arguedas C. <[email protected]> = wrote: >=20 > Regarding dateInput5 in Seaside. > How a previously initialized date can be displayed in the form's = dateInput5 widget. > I use a pre-initialized date type value that is a property of the = object to render on the form. >=20 > html label > for: 'startDate'; > with: 'Start Date: '. > html dateInput5 > on: #startDate of: self contract; > id: 'startDate'; > step: 1; > title: 'Start Date'; > value: self contrato startDate; > required. >=20 > Widget don't render date initialized. > I can't get it to show up. >=20 > Thanks, > Oswall >=20 > _______________________________________________ > seaside mailing list > [email protected] > http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside --Apple-Mail=_942F98F1-8F78-4E4B-AEB8-A7E877DD63EE Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 <html><head><meta http-equiv=3D"Content-Type" content=3D"text/html; = charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; = -webkit-nbsp-mode: space; line-break: after-white-space;" = class=3D"">Hi,<div class=3D""><br class=3D""></div><div class=3D"">You = can check an example in WAHtml5InputTest<div class=3D""><br = class=3D""></div><div class=3D"">html dateInput5<br class=3D""> = on: #startDate of: self contract</div><div class=3D""><br = class=3D""></div><div class=3D"">=E2=80=A6should be enough because = #on:of: sends #value: itself</div><div class=3D""><br = class=3D""></div><div class=3D"">However, you should check to send a = date in the correct format. See <a = href=3D"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/da= te" = class=3D"">https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input= /date</a></div><div class=3D"">There is no built-in conversion from a = Date instance to a String. This needs to be handled by your = code.</div><div class=3D""><br class=3D""></div><div class=3D"">Hope = this helps</div><div class=3D"">Johan</div><div class=3D""><br = class=3D""><div><br class=3D""><blockquote type=3D"cite" class=3D""><div = class=3D"">On 6 Sep 2021, at 19:22, Oswall Verny Arguedas C. <<a = href=3D"mailto:[email protected]" class=3D"">[email protected]</a>> = wrote:</div><br class=3D"Apple-interchange-newline"><div class=3D""><div = dir=3D"ltr" class=3D""><div class=3D""><div dir=3D"ltr" = data-smartmail=3D"gmail_signature" class=3D""><div dir=3D"ltr" = class=3D""><div class=3D""><div dir=3D"ltr" class=3D""><div = class=3D""><div dir=3D"ltr" class=3D""><div dir=3D"ltr" class=3D""><div = style=3D"font-family: Arial, Helvetica, sans-serif; font-size: = 13.63636302947998px;" class=3D"">Regarding dateInput5 in Seaside.<br = class=3D"">How a previously initialized date can be displayed in the = form's dateInput5 widget.<br class=3D"">I use a pre-initialized date = type value that is a property of the object to render on the form.<br = class=3D""><br class=3D"">html label<br class=3D""> for: = 'startDate';<br class=3D""> with: 'Start Date: '.<br = class=3D""> = html dateInput5<br class=3D""> on: #startDate of: self = contract;<br class=3D""> id: 'startDate';<br class=3D""> = step: 1;<br class=3D""> title: 'Start Date';<br class=3D""> = value: self contrato startDate;<br class=3D""> required.<br = class=3D""><br class=3D"">Widget don't render date initialized.<br = class=3D"">I can't get it to show up.</div><div style=3D"font-family: = Arial, Helvetica, sans-serif; font-size: 13.63636302947998px;" = class=3D""><br class=3D""></div><div style=3D"font-family: Arial, = Helvetica, sans-serif; font-size: 13.63636302947998px;" = class=3D"">Thanks,</div><div style=3D"font-family: Arial, Helvetica, = sans-serif; font-size: 13.63636302947998px;" class=3D"">Oswall<br = class=3D""><table style=3D"font-size:10pt;width:664.54541015625px" = cellspacing=3D"2" cellpadding=3D"2" border=3D"0" class=3D""><tbody = class=3D""></tbody></table><br = class=3D""></div></div></div></div></div></div></div></div></div></div> _______________________________________________<br class=3D"">seaside = mailing list<br class=3D""><a = href=3D"mailto:[email protected]" = class=3D"">[email protected]</a><br = class=3D"">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seas= ide<br class=3D""></div></blockquote></div><br = class=3D""></div></div></body></html>= --Apple-Mail=_942F98F1-8F78-4E4B-AEB8-A7E877DD63EE-- --===============3073529827821619979== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18Kc2Vhc2lkZSBt YWlsaW5nIGxpc3QKc2Vhc2lkZUBsaXN0cy5zcXVlYWtmb3VuZGF0aW9uLm9yZwpodHRwOi8vbGlz dHMuc3F1ZWFrZm91bmRhdGlvbi5vcmcvY2dpLWJpbi9tYWlsbWFuL2xpc3RpbmZvL3NlYXNpZGUK --===============3073529827821619979==--