[Seaside] Custom Magritte description and component
Hilaire
hilaire at drgeo.eu
Wed Feb 11 13:23:11 UTC 2015
Hello,
Hope it is the good place to ask for.
As an exercise, I am implementing a description and a component for a
model object (sort of date).
The model comes with two attributes: an integer (day) and a symbol (month).
So far I have a component with a text field (to input the integer) and a
drop down menu to select the month.
However I am struggling in the validation part, I don't understand how
to get it right; so far I have sort of validation taking place in the
component, and I think it is wrong.
I have enclosed a fileout of the three classes
The model is described with:
estimatedDateDescription
<magritteDescription>
^ CGDateDescription new
accessor: #estimatedDate;
label: 'Estimated date ';
priority: 150;
beRequired;
yourself
Thanks a lot
Hilaire
--
Dr. Geo - http://drgeo.eu
iStoa - http://istoa.drgeo.eu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Magritte-test.cs
Type: text/x-csharp
Size: 3884 bytes
Desc: not available
Url : http://lists.squeakfoundation.org/pipermail/seaside/attachments/20150211/9aea79b5/Magritte-test-0001.bin
More information about the seaside
mailing list