Custom Magritte description and component

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Custom Magritte description and component

HilaireFernandes
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


_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

Magritte-test.cs (3K) Download Attachment