[Bese-devel] passing form inputs directly to actions

Marco Baringer mb at bese.it
Sun Feb 27 11:47:45 UTC 2005


"Marco Baringer" <mb at bese.it> writes:

> using this trick we get slightly cleaner componnets (no "place holder"
> slots) at the expense of backtracking. more often the not this is a
> good trade off.

should this trick turn out to be actually usefull (instead of just one
of my oddball ideas) it'd be nice to wrap it in a macro like so:

(defmethod render-on ...
  (with-form ((username :type "text" ... other <:input args)
              (password :type "password" ... other <:input args))
      (login username password)
    (<:table
      (<:tr (<:td "Username:") (<:td username))
      (<:tr (<:td "Password:") (<:td password)))))

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen



More information about the bese-devel mailing list