[Seaside] DateInput5 in Seaside widget preinitialized value view

Johan Brichau johan at inceptive.be
Tue Sep 7 22:45:09 UTC 2021


Hi,

You can check an example in WAHtml5InputTest

html dateInput5
  on: #startDate of: self contract

…should 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. <sistecaq at gmail.com> wrote:
> 
> 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.
> 
> 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.
> 
> Widget don't render date initialized.
> I can't get it to show up.
> 
> Thanks,
> Oswall
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/seaside/attachments/20210908/fe6c5c91/attachment.html>


More information about the seaside mailing list