Whenever a model asComponent is rendered every
individual MAElementComponent is rendered with an
automatically assigned name attribute. Is it hard
to resolve the description by this name value?
That's Seaside that assigns the name attributes automatically, this
has nothing to do with Magritte. The name attribute is used to
generate the keys of a HTTP POST, it should not be used for anything
else.
This way it would be possible to set values in a
form input fields. This is quite tedious at the
moment. The fields that use <label forId=""> it
is not too hard but not all of the input fields
have labels and not always are they the previous
sibling and so on... I know albatross has some
clever stuff to detect this but I like to do the
tests with seaside testing for the time being.
Give the description a CSS class, that's a reliable way to find things
in the DOM:
aDescription cssClass: 'nameInputField'
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch