Hi Cédrick,
I'm still doing tests on how to model my exprience
attributes with
Magritte... I don't avance as I'd like but I get a better
understanding on how Magritte and Seaside works... I think I
mainly have to use existing descriptions while creating specific
views as you suggested to me whereas at start, I was trying to do
specific descriptions...
ExpAttribute are a kind of proxy on a real value (traditional
attribute) to which I add a simple attribute (range) that reflects
an analyses (traduces the relevance of the attribute in the
occurence of the event).
I hope on monday I'll be able to show you something better...
I've made some hacks in Magritte like the possibility to put
descriptions in a collection in the class side ( not sure useful
though :) but in that way I can see and change all of them in one
place). Also I added a revert (or cancel) buttons to
MAOneToOneComponent so as to cancel the memento and choose another
classe...
the descriptions are already within a collection accessible from the
class-side, even-tough you define them within separate methods. Send
the message #description to your class and you get your collection.
Well actually it is a bit more, you get an instance of
MAPriorityContainer supporting the whole collection protocol.
I ve tried to adapt what Michel Bany did (http://
cdrick.seasidehosting.st/seaside/LiveTests the scrollbar) to the
new renderer to have a MARangeComponent compatible with all browser
but without success... Does it seems possible to you as it uses
some functions of seaside Async ? anyway, I'll see that point
later...
No, MARangeComponent only works in KHTML based browsers, such as
Safari or Konqueror. It is based on the draft of the next XHTML
standard and it gently degenerates to a plain input box if not
supported.
I don't use SeasideAsync, there are a few experimental controls using
script.aculo.us. This library works nicely together with seasides
canvas framework and would also provide a cross-browser compatible
slider, that could be integrated if I (or somebody else) had the time.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch