Lukas,
MASelectListComponent>>renderEditorOn: would seem to suggest that we need
isGrouped
^ false
on MADescription.
We needed to that, anyway :-)
--
Danie Roux *shuffle* Adore Unix - http://danieroux.com
I couldn't find a built-in option... except by clicking on comment(s)
which is not obvious to me, so I did that...
PBHtmlView>>renderPost: aPost on: html
html div
class: 'post';
with: [
html anchor name: aPost uuid.
html anchor
goto: (self context structure: aPost);
with: [ html heading
level: 1;
with: aPost title].
self render: aPost on: html.
self renderMeta: aPost on: html ]
Does it worth commiting ? (not sur this is a good practise to
encapsulate an heading in an anchor)
Cédrick
Dear list,
I am trying out Magritte on an existing app. I have this scenario
working, but I had to follow the same hack as
PRChangeCommand>>applyButton.
One of the screens have three buttons: Save, Cancel and SomeMoreStuffToAdd
If I click on "SomeMoreStuffToAdd", I want to some more stuff to
happen. For this, I override #asComponent on my model and add the
button and the selector myself:
asComponent
^ super asComponent
addValidatedForm: (Array
with: #save -> 'Save'
with: #cancel -> 'Cancel'
with: #someMore -> 'Some More Stuff')
The very hackish part, I now need to add this to MAContainerComponent
for it to work:
someMore
self call: (AnotherComponent new)
Is there a cleaner way? A bunch of Monticello extensions
on MAContainerComponent hardly seems like the best way to extend
MAContainerComponent's to have more actions!
--
Danie Roux *shuffle* Adore Unix - http://danieroux.com
Hi,
I'm using MAInternalEditorComponent for editing some complex structures
and for now is working ok, but I found a little issue. Take this
example:
I have a Person, who has an Address. I edit Person for create a new
instance, then I run validation for the component... and validation
does not validate Address, just it's existence, which obviously exist,
because I created it with a #default:, but required values for #street
and #number are not chequed.
I solved this problem by oberriding #validateSpecific: of
MAToOneRelationDescription this way:
validateSpecific: anObject
super validateSpecific: anObject.
anObject description validate: anObject.
My question is: is this solution correct? this is maybe a bug of magritte?
Thanks,
Esteban
Hi,
I'm trying to use magritte-scriptaculous package, but I'm getting a DNU
on MAAccessor>>key, who is tryint to senf an unexistent #selector
message.
Any idea where that message is hidding? :)
I'm using latest versions of Magritte-All and Magritte-Scriptaculous.
Thanks in advance,
Esteban
Hi all,
I need to "chain" two select options. I mean: when user choose some
option in combo A, it allows some options in combo B.
Somebody has already done this in magritte?
If not, any clue of where to start?
Thanks,
Esteban
Hi Eric,
> I think there's a bug in Magritte in MASelectionColumn the
> renderCellLinkContent:on: method has, html callback:[], but i
> believe it should be html anchor callback:[]
you are right of course. I fixed that in the latest version of Magritte.
> As well, it seems to render MACheckboxColumn as a square outline
> with a square in the middle when selected, rather than as a
> checkbox. I'm completely baffled by this... googling only got me to
> a suggestion about it was using the old renderer, but I tried
> overriding rendererClass to return WAHtmlCanvas, but no luck.
> Completely baffled on this. Any ideas?
By default MAReport tries to use links (and a picture) instead of real
form elements. This has the advantage that you don't need to worry
about putting the report into a form and submitting if after changes.
You can tell the MACheckboxColumn to use a checkbox instead by setting
"aColumn useLinks: false".
> Also, when you created MAReport, did you ever think of the
> possibility of needing to reorganize columns which were appended to
> the description? Or was this something which was left as an
> exercise to the end-user?
Yeah, MAReport is far from ideal. It was originally made for some
commercial projects and later-on extended several times to meet new
requirements. It is not that easily useable as other parts of Magritte.
It is possible to reorganize columns though. Have a look at the ESUG
registration application, as far as I remember it is done in the admin
interface:
http://www.squeaksource.com/Conrad.html
> I'm just trying to grok this all, as I was about to implement my own
> stuff from scratch when I found Magritte, which is really cool!
> What I was going to implement, was basically an equivalent to
> NSTableView, etc. in Cocoa, alongside, NSArrayController and
> Bindings. (mainly just because I've been developing on the Mac for
> so long now it seems my brain is wired that way) But I'm hoping
> Magritte can help me avoid that.
If you have any other improvements to the code of Magritte and believe
that this is of general interest, please just commit your changes to
the repository.
Cheers,
Lukas
--
Lukas Renggli
http://www.lukas-renggli.ch
First (alpha!) release of Pier running with Magma Persistency.
Image available from ftp.seasidehosting.st
User: preloaded Password: squeak
enjoy
Keith
------
Image Use Instructions
In pier configuration click on 'Magma Control Panel', which will inform
you that the repository does not exist. If you have placed this image on
seasidehosting then you will have to manually create the repository
directory. Given the list of options as to what repository to create,
click the 'create' button (and wait). The existing pier kernel should
appear in the list with a 'persist' button next to it, click 'persist'.
Then try it and see!
------
------
Detailed Log of Image Creation Steps (alternative title: "monticello
tutorial")
This image was prepared as follows:
Beginning with Squeak3.8-6555full
Initial start asks for updates: select "do not ask again" - this is
important should you wish to deploy. Headless servers (e.g.
seasidehosting) cannot handle user interaction and will stop at this point.
From "world menu > open.... > Monticello Browser"
Browser opens with (Monticello....)
Click the "+Repository Button", select "HTTP" as the repository type,
and enter
MCHttpRepository
location: 'http://www.squeaksource.com/Seaside'
user: ''
password: ''
as the repository info (if you have a login on Squeaksource then you can
enter your initials
as the 'user' above.)
Add the following repository for Monticello.
MCHttpRepository
location: 'http://www.squeaksource.com/Monticello'
user: ''
password: ''
Add the following repository for Magma.
MCHttpRepository
location: 'http://www.squeaksource.com/MagmaTester'
user: ''
password: ''
and the following two repositories for Magritte and Pier
MCHttpRepository
location: 'http://mc.lukas-renggli.ch/magritte'
user: ''
password: ''
MCHttpRepository
location: 'http://mc.lukas-renggli.ch/pier'
user: ''
password: ''
also:
MCHttpRepository
location: 'http://www.squeaksource.com/OmniBrowser'
user: ''
password: ''
(to edit this information:
click the menu button in the right hand pane of the Monticello Browser)
----
Loading Latest Monticello.
More recent versions of Monticello provide better feedback as to which
packages are currently loaded.
Select the http://www.squeaksource.com/Monticello repository, click
"open", select the latest package (Monticello-avi.279) from the main
"Monticello" branch, and click "load".
Select the Monticello package on the left hand pane, and the
squeaksource/Monticello repository in the right hand pane. Click 'open'.
In the repository browser, click on the latest version
(Monticello-avi.279.mcz) and click 'Load'.
----
Loading Seaside
Select "world menu > open... SqueakMap"... and a dialog will ask if you
wish to upgrade SqueakMap. Which you do. Notice that SMBase, SMLoader
packages appeaer in the Monticello browser, since the upgrade is
performed by loading Monticello packages.
In SqueakMap, select the ever so convenient "Seaside Installer" which
should load in the whole of seaside with its dependencies in one go. To
do this select the left had pane menu button, "install". (Part way
through the install you will be prompted to enter an admin username
(seaside) and password (admin))
(if SqueakMap doesnt work it is being knobbled by a more recent
package-cache, remove it and try again)
Select the seaside repositoryClick the "open" and the repository browser
will open.
Select Seaside2.6b1 which is the current latest. In the right hand pane
are the releases. Releases may be made by anyone and they may be small
branches off from the main stream. Periodically an effort will be made
to ensure that all changes are merged. Click the history button in order
to browse the history of this package to get some idea of what is going
on. Look at the ancestors of a package to see if one version is being
sequentially built on the next, or whether any branching is occurring.
Seaside is fairly mature and changes infrequent, therefore it is likely
to be safe to grab the latest version.
Loaded Seaside2.6b1-mb.79
Loaded Scriptaculous-lr.137
To start Seaside doit:
WAKom startOn: 8080.
( Or use the "beach flags" SeasideMorph
available from: http://minnow.cc.gatech.edu/squeak/5862 )
To test if everything is running, check the following url in your normal
web browser.
http://localhost:8080/seaside/config
you should be prompted for you username and password (as given earlier).
----
Loading Magma
Back to the Monticello Browser. Deselect the selected package by
clicking on it once. This should re-reveal all of the registered
repositories.
(It is worth saving this. In the right hand side pane menu button there
is a menu item: "Save Repositories", which writes a simple configuration
script to the working directory.)
Select the http://www.squeaksource.com/MagmaTester repository, and click
"open".
Select MagmaServerLoader, and click "load". (it takes a while!)
loaded MagmaServerLoader-cmm.21
loaded Ma client server-cmm.123
loaded Ma exception handling-cmm.22
loaded Ma time objects-cmm.37
----
Load Magma Seaside Integration Package
Select "Magma Seaside" (lhs) and the latest package and click "load",
loaded Magma Seaside-kph.18
----
Load Magma Seaside Sushi Store Demo fixes
loaded Seaside-Examples-Store-Magma.kph-11
----
Before using Magma may need to execute the following.
MagmaSession initialize.
MagmaRepositoryController initialize.
useful snippets
MagmaSession allInstances cleanUp.
MagmaSession disconnectAndCloseAllConnectedSessions.
----
Load Magritte
loaded Magritte-All-lr.171
Load Pier
loaded Pier-All-lr.109
Load OmniBrowser
loaded OmniBrowser-avi.258
loaded Pier-OmniBrowser-lr.19
----
Latest Pier-Magma code
loaded Pier-Model-kph.80
loaded Pier-Seaside-kph.80
loaded Pier-Magma-kph.1
----
Pre-upload actions:
Monticello Browser - "flush cached versions".
----
Release Preloaded Image as Sqk3.8f-smp.image
___________________________________________________________
The all-new Yahoo! Mail goes wherever you go - free your email address from your Internet provider. http://uk.docs.yahoo.com/nowyoucan.html
Hi all
I would like to know, is thedefault persistency mechanism of pier on
when we start the plain default seaside image?
Stef
PS: I found the PierImagePersistency but there is not even a single
comment. :(