Hi everybody,
I’ve a little problem with my code! I try to generate html code starting
from PIER. When I launch my widget (SPG tool) the nextPutAll method
generates an error, but I don't understand why. Can you help me to
understand that?
Thanks in advance
My project name in squeaksource.com : StaticPierGen
Sample of my error:
MessageNotUnderstood: UndefinedObject>>nextPutAll:
Debug Full Stack
• UndefinedObject(Object)>>doesNotUnderstand: #nextPutAll:
nil
temps aMessage nextPutAll: 'Welcome to Pier (formerly called SmallWiki
2), the next generation of a fully extensibl...etc...
• WAHtmlStreamDocument>>nextPutAll:
a WAHtmlStreamDocument
temps aString 'Welcome to Pier (formerly called SmallWiki 2), the next
generation of a fully extensible content ma...etc...
inst vars stream nil
htmlEncoder nil
urlEncoder nil
Hello,
I have a model class called ALServiceContact that is using Magritte,
like I am with my other model classes. This class has 6 descriptions
(string, memo, 3 single options, and a date). Two of the
MASingleDescription descriptions use a list of other model objects as
their options. One points to a list of providers and one to a list of
customers.
The Magritte form builds (asValidatedForm) and displays as I expect,
but when I try to save it, Magritte is giving me validation messages
for descriptions from a different class.
The class I am getting the validation messages from is called
ALCustomer, and is only involved with ALServiceContact through:
ALServiceContact class>>descriptionClient
^ (MASingleOptionDescription new)
selectorAccessor: #client;
label: 'Client';
priority: 20;
options: ALStorage rootOrg customers;
reference: ALCustomer description;
comment: 'A Customer';
yourself
on the ALCustomer class, I have required fields for four
descriptions, and these are the messages I get:
Status: Invalid input given
Title: Input is required but no input given
Organization: Invalid input given
Email: Input is required but no input given
...when I try to save an ALServiceContact created with:
add
|contact|
contact := self call: (ALServiceContact new asComponent
addValidatedForm; yourself).
contact isNil
ifFalse: [
self contactManager addContact: contact.
self report refresh]
Of course, ALServiceContact doesn't even have those descriptions.
Very Strange stuff!
Any thoughts?
Brian
I would like to use the default MATableRenderer, but have a div
surrounding it so I can apply styles to it easily; I can subclass it
to add what I want, but is there a way to have the Magritte machinery
use my custom one?
I think I understand how to add custom descriptions for classes, but
that doesn't impact the MAContainer that renders the descriptions....
And it's likely that I don't understand how this all fits together :-)
Help!
Brian
I'm trying to create a magritte form for surveys used at our company, where many
of the field are identical.
Surveys consist of a header, for which I've created magritte descriptions in the
standard way, and questions which are answered by a rating (an integer of -1, 0
or 1 or nil) and an optional comment (a string).
For this particular survey, there are 18 questions; I'd like some advice on how
to best use magritte to describe them. I've heard of 'multiplicites' in the
context of OneToMany relations -- so this is probably not what I want -- but is
there a count attribute in magritte descriptions?
I'd like to avoid copy/pasting 18 field descriptions if possible.
Cheers
Warren Wilkinson
I'm trying to create a magritte form for surveys used at our company, where many
of the field are identical.
Surveys consist of a header, for which I've created magritte descriptions in the
standard way, and questions which are answered by a rating (an integer of -1, 0
or 1 or nil) and an optional comment (a string).
For this particular survey, there are 18 questions; I'd like some advice on how
to best use magritte to describe them. I've heard of 'multiplicites' in the
context of OneToMany relations -- so this is probably not what I want -- but is
there a count attribute in magritte descriptions?
I'd like to avoid copy/pasting 18 field descriptions if possible.
Cheers
Warren Wilkinson
When trying to add a new item inside an MAToManyRelationDescription
container, I get the error found in the attached file. It says that
the MAOneToManyComponent>>value is an undefined object.
I reproduced this error in the MADescriptionEditor example as well as
in my code.
I'm using the latest Magritte-all package.
Chad
Hi,
I have an image object which references a user. For
the user there is a descriptionContainer which adds
conditions for the user (checks equality of password).
In a component dealing with the image there appears
something strange. If I do a validate on that component
it complains abaut value cache being unknown. And this
is coming from the descriptionContainer of the user
object. Is it normal for the referenced objects to be
checked as well? Or do I misunderstand something?
thanks,
Norbert
Hello folks!
I'm finally diving into Magritte and things are going quite well in
general. I have one situation I can't quite figure out how to solve....
I have a Person class with in ivar that holds an Organization. I
would like to present a drop down list of Organizations when editing
the person. I have tried various permutations of
MASingleOptionDescription and MAOneToManyDescription, but I am not
groking how they should be used :)
For example, I have tried an OrderedCollection of Organizations as
the argument to MASingleOptionDescription>>options:, among a bunch
of other things I tried, but no joy.
Anyone have any suggestions for me?
thanks!
Brian
Hi,
what is the status of MAReport? A student uses MAReport to display a
list of models. Each row has a #remove: command associated. The
problem appears if the user click on a header to sort the table and
then click on the #remove link. The table is not refreshed. Callin
#refresh reset the MAReport and puts it on the first page :-(
Can you help me?
--
Damien Cassou
Hello again,
I want to use a Magritte Seaside component with a different set of
actions / buttons than the default ( save / cancel )
Looking through the list, I found that the required thing to do is
to program the extensions to MAContainerComponent, and then build the
component with a call like this:
(self model descriptionRequiredFields asComponentOn: self model)
addValidatedForm: #( register cancel )
What I am not sure about, is what is the proper way to do this extensions.
Should I subclass MAContainer and override #componentClass to make
it return a subclass of MAContainerComponent (of my application) that
implements the actions I need (like register in the example above) ?
Has anyone got an example of this sort of action overriding in
Magritte forms?
Thanks
r.