Hello,
when i disable javascript in my browser, delete operation fails in gridedit
widget
if the widget is part of a navigation widget.
Here is a simple example :
(in-package :test-no-ajax)
;; Define callback function to initialize new sessions
(defun init-user-session (root)
(setf (widget-children root)
(list (make-widget #'(lambda (&rest args)
(with-html
(:strong "Happy Hacking!"))))
(make-page))))
(defclass foobar ()
((id :accessor foobar-id)
(name :accessor foobar-name
:initform nil
:initargs :name)))
(defview foobar-view (:type table :inherit-from '(:scaffold foobar))
(id :hidep t))
(defview foobar-form-view (:type form :inherit-from '(:scaffold foobar))
(id :hidep t))
(defun make-page ()
(make-navigation 'Menu
(list "Start" (make-widget #'(lambda (&rest args)
(with-html
(:strong "Root URL!")))))
(list "Foo" (make-instance 'gridedit
:name 'test-no-ajax
:data-class 'foobar
:view 'foobar-view
:item-form-view 'foobar-form-view))))
When javascript is disabled, in the "Foo" page, i can add items, but if i
try to delete some item(s),
the brower send me a blank error page with the following message :
Resource /foobar not found
URL is :
http://localhost:8080/foo?item-0=f&item-4=f&delete=Delete<http://localhost:8080/cotcot?item-0=f&item-4=f&delete=Delete>
When javascript is enabled, delete action succeed.
Maybe it's not important,
but i do not experience weblocks in order to say it.
Any suggestion ?
Thanks
Regards.
--
You received this message because you are subscribed to the Google Groups
"weblocks" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/weblocks/-/MkiefMyHLjAJ.
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.