I can't seem to find anything in the mailing list archives about this,
so here goes...
Is there a way to present forms as a sequence of input requests with a
'Next' submit button rather than the default 'Save' and 'Cancel'?
Thanks,
Chad
--
Chad Nantais
http://myspace.com/chadnantais
I discovered that the referential integrity of PRContext <-> PRCommand
gets broken when you assign a user to the context because #user: does a
copy, but the instance of PRCommand's context is still the pre-copy one.
This is fixed by
--
PRContext-postCopy
self setCommand: command copy.
--
cheers
Keith
I am looking for some tips/info on how to customize the look of
magritte/pier components.
My first excursion found this quite difficult. Since it appears that
textInput's always have class='text'. I solved this by wrapping them in
a div class='agent-code' in a custom component and using the following
to effect the styling.
.contents form .agent-code input.text {
width : auto;
}
What would be the correct way to change the pier login buttons to
'Login' 'Cancel' rather than 'Save' 'Cancel'. Do I subclass PULogin, and
change its asComponent to take the std component and search for its
FormDecoration for the button label in order to change it?
many thanks in advance
Keith
Hello,
I have 13000+ users validation records in a database, so I thought I
would be clever. I define a pier user, role-dbuser, and use this as a
template for creating a "User whose validation is certified by the
database" on the fly.
Since it is created on the fly and is not known by PRKernel-users, nor
is the User-Groups relation maintained, so the groups are only aware of
the template user 'role-dbuser'.
This works fine until the check on groups permissions in
PUSecurity-validateCommand: which reads;
(self group notNil
and: [ (self group includes: aCommand context user)
So I turned it around to read the following, and implemented PUUser
includesGroup:
(self group notNil
and: [ (aCommand context user includesGroup: self group)
I thought that you might consider this tweak useful.
best regards
Keith
I just committed this to http://mc.lukas-renggli.ch/pieraddons
Magritte-ComponentDecorations-kph.1.mcz (note it has a pier extension in
it too)
This package allows a magritte description to specify decorationClasses:
These are added at component creation time and they pick up their
parameters from the description's properties (unless I can think of a
better way).
example:
WSLogin-descriptionUsername
^ (super descriptionUsername)
decorationClasses: (Array with: MAAnnotationDecoration ) ;
propertyAt: #postAnnotation put: '(6-12 letters)';
yourself
pier wiki text annotation
WSLogin-descriptionUsername
^ (super descriptionUsername)
decorationClasses: (Array with: PRAnnotationDecoration ) ;
propertyAt: #postAnnotation put: 'or
*Register>/Environment/RegistrationComponent*';
yourself
best regards
Keith
I have a seaside call like this:
result := self call: (SurveyResponse new asComponent addValidatedForm;
yourself).
I can't figure out how to get the css to be applied to this component.
(Having SurveryReponse implement #style doesn't do it, nor does having it
defined in the class making the call do it).
thanks guys
the folowing worked. i realised i had to use addAll not add
MyObject>>description ^ super description copy addAll: self customDescription; yourself> Date: Thu, 9 Aug 2007 20:53:55 +0200> From: damien.cassou(a)gmail.com> To: smallwiki(a)iam.unibe.ch> Subject: Re: help with Magritte tutorial> > 2007/8/9, isaiah <cappadonza(a)hotmail.com>:> >> > cool thanks lukas> > exercise 18 also ays "Override #description on the instance-side, call super> > and> > compose it with the CustomDescription." what does this mean how do i compose> > it> > I guess it means something like:> > MyObject>>description> ^ super description copy> add: self customDescription;> yourself> > I'm not sure, but I think #copy is important after the call to super.> > -- > Damien Cassou> > _______________________________________________> SmallWiki, Magritte, Pier and Related Tools ...> https://www.iam.unibe.ch/mailman/listinfo/smallwiki
_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE
hey i working through the magritte tutorial excercises. need ome help with
exercise 18. it says "Add a class-instance variable to the MAPersonModel
called CustomDescription. initialize it with an emptyinstance of
maContainer".
i did the following to add a class-instance variable
MAPersonModel class
instanceVariableNames: 'CustomDescription'
how do i initialize this variable
if i override the initialize method on the class
i get the follwoing warning from system browser "initialize is used in the
existing class system, overriding can cause serious problem is this really
what you want to do ?"
am i doing something wrong, can some one help me ?
im not sure what the difference between class variable and class-instance
variable
--
View this message in context: http://www.nabble.com/help-with-Magritte-tutorial-tf4242237.html#a12071267
Sent from the SmallWiki mailing list archive at Nabble.com.
Hi,
isn't validate supposed to be called on componentClasses?
I have a component generated from asComponent. I added
a componentClass to one of the descriptions. If I call component
validate I would have expected that the validate of my
componentClass is also called.
Do I misunderstand something or is it likely I did something
wrong?
thanks,
Norbert