Hi all,
I've been having trouble with the Pier Adaptive Forms example in the thesis titled "Magritte — Meta-Described Web Application Development". In particular, I've typed all the necessary code in my browser, prefixing "PR" and "MA" where I think should be appropriate. I can add the Form, but the "Edit Form" command that I created will not work. I get the following output when clicking on the "Edit Form" link: (In HTML format)
Also, there seems to be a missing closing parenthesis on page 41 in the Form>>description method definition. The Pier setup is obtained by installing the Pier Unix Security 1.0.3-alpha from SqueakMap Package Loader. In this version of Pier, clicking on the "Environment" command link will also crash Pier, is this expected? Note: I am new to Smalltalk and Squeak. Thanks, -Bill _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Bill Sun wrote:
> Hi all, Hello Bill, > I've been having trouble with the Pier Adaptive Forms example in the > thesis titled "Magritte — Meta-Described Web Application Development". > > In particular, I've typed all the necessary code in my browser, > prefixing "PR" and "MA" where I think should be appropriate. I can add > the Form, but the "Edit Form" command that I created will not work. I > get the following output when clicking on the "Edit Form" link: > > (snipped) > Can you send us a file out of your code please ? > Also, there seems to be a missing closing parenthesis on page 41 in the > Form>>description method definition. I agree: Form>>description ^ (Container withAll: super description) , (self metamodel do: [ :each | each beEditable ]) > The Pier setup is obtained by installing the Pier Unix Security > 1.0.3-alpha from SqueakMap Package Loader. In this version of Pier, > clicking on the "Environment" command link will also crash Pier, is this > expected? You may want to try using the last version of Magritte and Pier from Monticello. Do you know how to do this ? > Note: I am new to Smalltalk and Squeak. Welcome ! Bye -- Damien _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Hi Damien, Thanks for your response! Here's the file-out. I'll try out the latest version of Magritte and Pier from Monticello later today. -Bill ----- Original Message ---- From: Damien Cassou <[hidden email]> To: Bill Sun <[hidden email]>; "SmallWiki, Magritte, Pier and Related Tools ..." <[hidden email]> Sent: Friday, July 21, 2006 11:46:13 PM Subject: Re: Trouble Following Pier Example in Master Thesis Bill Sun wrote: > Hi all, Hello Bill, > I've been having trouble with the Pier Adaptive Forms example in the > thesis titled "Magritte — Meta-Described Web Application Development". > > In particular, I've typed all the necessary code in my browser, > prefixing "PR" and "MA" where I think should be appropriate. I can add > the Form, but the "Edit Form" command that I created will not work. I > get the following output when clicking on the "Edit Form" link: > > (snipped) > Can you send us a file out of your code please ? > Also, there seems to be a missing closing parenthesis on page 41 in the > Form>>description method definition. I agree: Form>>description ^ (Container withAll: super description) , (self metamodel do: [ :each | each beEditable ]) > The Pier setup is obtained by installing the Pier Unix Security > 1.0.3-alpha from SqueakMap Package Loader. In this version of Pier, > clicking on the "Environment" command link will also crash Pier, is this > expected? You may want to try using the last version of Magritte and Pier from Monticello. Do you know how to do this ? > Note: I am new to Smalltalk and Squeak. Welcome ! Bye -- Damien _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki Pier-Forms.st (4K) Download Attachment |
In reply to this post by Bill Sun
Damien, Ah, I see, the example from the thesis was integrated into the latest Pier. That's probably why you already have it. The main difference that I see from the newest Pier and the code that I entered manually is that the PREditFormCommand class has both readUsing: and write:using: methods in the latest Pier while the code that I entered from the master thesis did not. -Bill ----- Original Message ---- From: Damien Cassou <[hidden email]> To: Bill Sun <[hidden email]> Sent: Tuesday, July 25, 2006 12:28:25 AM Subject: Re: Trouble Following Pier Example in Master Thesis Bill Sun
wrote: > Hi Damien, Hi Bill, > Thanks for your response! Here's the file-out. > > I'll try out the latest version of Magritte and Pier from > Monticello later today. Your class is already present in my image so you may find your answer into the last Magritte and Pier versions on monticello (repository: http://mc.lukas-renggli.ch/magritte or /pier) If this is still not clear, ask here. _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
In reply to this post by Bill Sun
Yes the PRForms work perfectly in the newest Pier. The main cause was indeed the missing readUsing: and write:using: methods. Here's my attempt at understanding what went wrong: In my case, the missing readUsing: method caused the readUsing: method in Object to respond instead, which read the description of a PREditFormCommand instance rather than the description from the metamodel of the PRForm instance, which was missing a bunch of descriptions. I'm not quite sure how does Pier knows what descriptions it needs to look for when I fed it the wrong descriptions. Can anyone shed some light? Thanks, -Bill ----- Original
Message ---- From: Damien Cassou <[hidden email]> To: Bill Sun <[hidden email]> Sent: Tuesday, July 25, 2006 11:02:46 AM Subject: Re: Trouble Following Pier Example in Master Thesis Bill Sun wrote: > Damien, > > Ah, I see, the example from the thesis was integrated into the latest > Pier. That's probably why you already have it. > > The main difference that I see from the newest Pier and the code that I > entered manually is that the PREditFormCommand class has both readUsing: > and write:using: methods in the latest Pier while the code that I > entered from the master thesis did not. Does it work on the new version ? Do you understand why it doesn't on the old one ? More questions ? Bye _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
> Yes the PRForms work perfectly in the newest Pier. The main cause
> was indeed the missing readUsing: and write:using: methods. You can find my code in the official Pier repository http://mc.lukas- renggli.ch/pier/. It is the package called Pier-Forms. Lukas -- Lukas Renggli http://www.lukas-renggli.ch _______________________________________________ SmallWiki, Magritte, Pier and Related Tools ... https://www.iam.unibe.ch/mailman/listinfo/smallwiki _______________________________________________ Smallwiki mailing list [hidden email] http://impara.de/mailman/listinfo/smallwiki |
Free forum by Nabble | Edit this page |