On Mon, Oct 1, 2012 at 4:50 PM, Jacek Podkanski
<[email protected]>wrote:

>
> When I edit the text nothing changes unless I restart emacs and slime. Is
> there any better way to do it?
>

INIT-USER-SESSION is called only when the session is created.  When
Weblocks first receives a request from a particular browser, it creates a
session and calls INIT-USER-SESSION to create the initial widget tree.

Do (reset-sessions) in the REPL to discard all current sessions, so that
the next browser request will get a new session.

BTW, using a function directly as a widget, as the example version of
INIT-USER-SESSION does, is a bad idea.  The function should be passed to
MAKE-WIDGET, whose result should then be made a child of the root widget.
We should fix the example.


> Second Problem:
> What code goes where?
> In rails you are told edit file X, edit file Y, but here I have no clue if
> I need to edit some file or use REPL
>

Weblocks pays no attention to file names; you can organize your code into
files however you like.


> Third:
> I like the idea of Weblocks, but I wonder if the project has been
> abandoned. No new development or documentation in last two years.
> I am trying Weblocks because I had no success with similar Rails
> equivalents, which also were abandoned. In Weblocks I can at least get to
> demo page. Doing this kind of Ajax stuff by hand is a pain and I was
> wondering if if there's a better way. I wonder if Weblocks is my last hope
> or there are other similar projects.


I am using Weblocks for a substantial web app.  I agree, the lack of
documentation is a significant barrier.  But the code actually works pretty
well, once you learn how to use it.

For a new project, you might want to take a look at my Weblocks fork, which
has a fair number of bug fixes and new features.  (No new documentation,
though.)  You can find it at

  http://github.com/slburson/weblocks

-- Scott

-- 
You received this message because you are subscribed to the Google Groups 
"weblocks" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/weblocks?hl=en.

Reply via email to