Hi,
I am trying to show a Magritte Component in a SULightbox.
I replaced #call: with #lightbox: and I'm getting the form in a
Lightbox, but it looks like some sort of container is missing...
I see many small lightboxes - one for each text-entry / button etc.
Labels are rendered on the darkened background.
Scriptaculous-lr.238
Magritte-Seaside-lr.251
Thank you, Christoph
Using the latest version of Pier I did the followings:
- added a file that I named "css" without any content
- make the stylesheet of the root page to point to the css file
- edit design
- added "ul{font-size: 20pt}" to the stylesheet
- on Safari and Opera it works Ok
- on Firefox there is no effect
I believe there should be a problem in how the css is linked with the
page, but I have no idea what it actually is. Any hints?
Cheers,
Doru
--
www.tudorgirba.comwww.tudorgirba.com/blog
"In a world where everything is moving ever faster,
one might have better chances to win by moving slower."
result := myModel asComponent. "returns an MAContainerComponent"
result description attributes addClass: 'gcbpagemodel'.
Apparently, MADescription no longer understands #attributes.
what do I call #addClass: on now?
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn(a)stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
Hello,
trying to browse the Magritte examples in examplebrowser I found the following
issues:
One is with
WAComponent class >>
headerForExampleBrowser
^self name = self description
ifTrue: [ self name ]
ifFalse: [ self description , ' (' , self name , ')' ]
The 'Comma' op is defined in MADescription and #, tries to send #asContainer to
the following ByteStrings. An DNU Error is thrown.
Another is:
MAExampleEditor instancevariable 'description' is supposed to hold a Collection
- at least it is used that way e.g.:
MADescriptionEditor>>
buildReport
^ (MAReport rows: self description
description: MAElementDescription description)
however it is initialized with:
defaultDescription
^MAContainer new.
I changed
MAExampleEditor>>
description
^ description ifNil: [
description := Array with: self defaultDescription ]
(adding the Array constructor) and that works. I don't know if it breaks other
things though...
Thanks for any suggestions and hints.
Cheers, Christoph
Dear all,
The magritte-scriptaculous and magritte-realmemento packages allow
generated form components to dynamically change as the values or
selections made by the user change.
For example, the list of options in a SelectListComponent can be
supplied through an accessor, and the visibility of a field can be
determined by the value obtained via an accessor.
descriptionMyChoice
^ MASingleOptionDescription new
accessor: (#choice asAccessor) options: #choiceOptions;
The accessor framework has been extended to provide a clean and easy to
use means for specifying "alternate accessors for other purposes".
Other purposes supported include:
#visible:
#readonly:
#cssClass:
#tooltip:
#options:
#update:
The model class must specify a MARealMemento for this to work. The real
memento uses a real copy of the model object as a memento, so that the
memento model retains behaviour, particularly the interactions between
attributes. This allows an #isMyFieldVisible to depend upon the value of
a another field which may change. The form is re-rendered using
scriptaculous updates, if the components request it.
I have to say that what started out as a bit of an experiment has been
surprisingly successful, and I think it represents a significant step up
in the abilities of magritte.
I am about to go live in the next couple of days on my first commercial
project which uses this stuff.
best regards
Keith
I have just added a ShoreComponents DatePicker to the
Magritte-Scriptaculous library.
This library already includes a scriptaculousified tree, and list
composition components.
Keith
I have been looking for the easiest way to get a date to display with
the desired format.
By adding
BlockContext-write: anObject description: aDescription
^ self value: anObject
The following becomes possible:
^ MADateDescription new
selectorAccessor: #orderDate;
beWithinYears: 2;
stringWriter: [ :i | i mmddyyyy ];
label: 'Order Date';
beReadonly;
beSearchable;
yourself
Is there a better way?
Is this worth adding to the mainstream?
Keith