[Bese-devel] Hello app in ucw_dev...

Alberto Santini albertosantini at tiscali.it
Sat Nov 12 09:33:45 UTC 2005


I resolved the problem with hello app. The render-on method is  
substituted by render method.
So the (correct) last version of hello app, running with ucw_dev, is:

(in-package :it.bese.ucw-user)

(defvar *hello-world*
   (make-instance 'cookie-session-application :url-prefix "/hello/"))

;; (register-application *default-server* *hello-world*)

(defentry-point "index.ucw" (:application *hello-world*) ()
   (loop
      (let ((name (call 'hello-world-home-page)))
        (call 'personalized-greeting :name name))))

(defcomponent hello-world-home-page (simple-window-component)
   ()
   (:default-initargs :title "Hello, World!"))

(defmethod render ((hello hello-world-home-page))
   (<:p "Hello, World!")
   (let ((name ""))
     (<ucw:form
      :action (ok hello name)
      (<ucw:input :type "text" :accessor name)
      (<:submit))))

(defcomponent personalized-greeting (simple-window-component)
   ((name :accessor name :initarg :name))
   (:default-initargs :title "Greetings!"))

(defmethod render ((greeting personalized-greeting))
   (<:p "Hi, " (<:as-html (name greeting)) ", how are you?")
   (<ucw:a :action (ok greeting) "Done."))

I noted for every request an additional request for 'favicon.ico':

127.0.0.1 - - [Sat, 12 Nov 2005 09:28:38 GMT] "GET /favicon.ico HTTP/ 
1.1" 404 -1

No solution for example app yet! :(

Regards,
Alberto Santini

On Nov 11, 2005, at 22:39 PM, Waldo Rubinstein wrote:

> Alberto,
>
> I just did a fresh install of everything from darcs using all the  
> *_dev and specified requirements and once I properly configured my  
> asdf, I had no problems. I simply connected to http://localhost: 
> 8080/ and it worked and the admin was in http://localhost:8080/admin.
>
> - Waldo
>
> On Nov 11, 2005, at 4:34 PM, Alberto Santini wrote:
>
>> Hello.
>>
>> I downloaded ucw_dev release of UCW with darcs.
>> usually I use the release 0.3.9.

[cut]



More information about the bese-devel mailing list