Hi Charles,
the wiki webapp is not meant to be the main-responder: the xml templates
are child templates. You can see that because no template in wiki/ has a
<body> or <head> tag. Also they use chloe tags like t:style, which are
child tags. So you need another level of <boilerplate> which will be the
master template.
The wiki is used in http://concatenative.org, and the code can be found in
extra/websites/concatenative.factor. You can see there it sets up the
master template in <factor-boilerplate>. It also wraps the <wiki> in a
<recaptcha> and a <login-realm>. That's probably the things that were
missing for the edit page to work. You should be able to trim down the code
in concatenative.factor to launch only the webapps you need.
I hope this helps,
Jon
Jon
On Sat, Jan 5, 2013 at 11:15 AM, CW Alston <cwalsto...@gmail.com> wrote:
> Greetings, all -
> Experiencing the wonder of webapp development, I've managed
> to bring up "Congratulations, you are now running your very own Wiki"
> on the Front Page from the code in /extra/webapps/wiki. But clicking the
> proffered
> '*Edit*' link returns a dread "Response error" at
> http://127.0.0.1:8080/edit/Front%20Page,
> and elsewhere.
> The new code that gets me this far is the following (run in the Listener):
> ---
> USE: my-wiki
> USE: my-wiki-run
> run-wiki
>
> *(the latter being:)*
>
> USING: accessors db db.sqlite db.tuples furnace.alloy
> furnace.db http.server io.files io.files.temp kernel
> my-wiki namespaces threads ;
> IN: my-wiki-run
>
> : with-wiki-db ( quot -- )
> "wiki.db" <sqlite-db> swap with-db ; inline
>
> : run-wiki ( -- )
> [ { article revision } ensure-tables ] with-wiki-db
> [ init-wiki ] with-wiki-db
> <wiki>
> "wiki.db" <sqlite-db> <alloy>
> main-responder set-global [ 8080 httpd drop ] in-thread ;
> ---
> I've gone cross-eyed with various permutations on this theme, to no avail;
> time to ask for a less blood-shot view, as I'm now seeing double.
> (N.B. -- 'my-wiki' is just /extra/webapps/wiki copied to factor/work for
> convenience).
> Suggestions? Poultices?
>
> Happy New Year!
> CW Alston
>
>
>
>
> --
> *~ Memento Amori*
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912
> _______________________________________________
> Factor-talk mailing list
> Factor-talk@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/factor-talk
>
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Factor-talk mailing list
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk