-
mneumann committed
Apr 4, 2005 -
* examples/ajax/ajax.rb, examples/ajax/ajax.js,
mneumann committedApr 4, 2005 lib/wee/core/presenter.rb, lib/wee/renderer/html/brushes.rb: Added minimal Ajax update support.
-
mneumann committed
Apr 4, 2005 -
* lib/wee/abstractsession.rb, lib/wee/session.rb,
mneumann committedApr 4, 2005 lib/wee/pageless/session.rb, examples/live-update.rb: refactored Session classes. * lib/wee/core/presenter.rb: added send_response method, to send a premature response.
-
* lib/wee/pageless/session.rb, lib/wee/pageless/application.rb: Remove
mneumann committedApr 4, 2005 dependency of WEBrick::Cookie, use CGI::Cookie instead. * lib/wee/adaptors/fastcgi.rb: Added preliminary FastCGI adaptor (does not work yet with Pageless applications). * lib/wee/adaptors/webrick.rb: reordered line
-
* lib/wee/adaptors/webrick.rb: doc fix
mneumann committedApr 3, 2005 -
* lib/wee/core/presenter.rb, lib/wee/core/component.rb,
mneumann committedApr 3, 2005 lib/wee/core/decoration.rb, lib/wee/session.rb, lib/wee/pageless/session.rb, examples/window.rb, README: Fixed a bug in processing the callbacks. It was not guaranteed that all input callbacks are invoked before the final action callback. This is now guaranteed! I've introduced two separate tree traversals of process_callbacks to make this work. As a side effect, this also has removed the dependency of Presenter/Component/Decoration classes from the CallbackStream class. Instead of a CallbackStream, a code block is now passed through the process_callbacks/process_callbacks_chain traversal. The Session class specifies how to invoke the callbacks.
-
* wee/session.rb, wee/pageless/session.rb: new methods
mneumann committedMar 3, 2005 pre_respond_hook, post_callbacks_hook, especially to make pretty-URLs as suggested by Joao Pedrosa working.
-
* wee/response.rb (Wee::Response): Use the passed mime_type as
mneumann committedMar 3, 2005 content-type (bug fix). * wee/request.rb: Made 'info' attribute writeable. * wee/core/callback.rb: Added reader method for 'obj' * wee/core/component.rb: Added #parent method, to retrieve the parent component from a child if existent. The parent attribute will be set during #add_child.
-
* wee/application.rb, wee/pageless/application.rb
mneumann committedMar 3, 2005 (request_handler_expired): Forward to an URL that includes the info part but neither the request_handler_id nor the page_id.
-
* wee/request.rb, test/test_request.rb, wee/pageless/request.rb,
mneumann committedFeb 26, 2005 wee/session.rb, wee/pageless/session.rb, wee/renderer/html/canvas.rb, wee/renderer/html/brushes.rb: - request delimeter changed to /___/ (looks nicer) - refactored Request#build_url, which now takes a hash and remembers already specified values - A Request knows now itself whether it's a action or a render request. - added Request#info attribute. This is a part of the URL that you can use for your own purposes. It is remembered across requests unless you overwrite its value.
-
mneumann committed
Feb 26, 2005 -
* wee/core/presenter.rb, wee/session.rb, wee/application.rb: renamed @…
mneumann committedFeb 26, 2005 …properties to @__properties * wee/core/component.rb: rename @children to @__children * wee/core/component.rb, wee/core/valueholder.rb: rename @decoration to @__decoration
-
mneumann committed
Feb 16, 2005
-
mneumann committed
Feb 1, 2005 -
mneumann committed
Feb 1, 2005 -
* SelectListTag (r.select_list): NON-backwards-compatible change!!!
mneumann committedFeb 1, 2005 If it's NOT a multiple select list, then the callback is called with the choosen value (instead of an array of one element). Method #selected requires a single value in the same way. No changes if it's a multiple-select list! * minor refactoring of OgScaffolder (added support for Date type).
-
mneumann committed
Jan 31, 2005 -
mneumann committed
Jan 31, 2005
-
mneumann committed
Jan 30, 2005
-
mneumann committed
Jan 29, 2005 -
mneumann committed
Jan 29, 2005 -
include lib/skeleton/*/README files but omit .svn directories
mneumann committedJan 29, 2005 -
* fixed bug in OgScaffolder due to the former additional_args modific…
mneumann committedJan 29, 2005 …ation * moved skeletons out of bin/wee into directory lib/wee/skeleton * template :render_blah_blah will use "component.tpl-blah-blah"
-
* Added ERB-templating. Example:
mneumann committedJan 29, 2005 # file: ~/components/main.rb class Test < Wee::Component # use template '~/components/main.tpl' template :render # use template '~/components/main.tpl-buttons' template :render_buttons end This allows you to use ERB-templates instead of the render_XXX methods. You can also call render_XXX methods from ERB, back and forth. The template file is relative to the file from which the 'template :symbol' call is executed. The template method optionally takes the two hash-parameters :file and :property. * Added "Pageless" mode. In pageless mode, the URL displayed in your browser always looks like "/app". The session id is stored as cookie and there is no page_id, hence "pageless" mode. No backtracking is performed! Example: require 'wee/pageless' app = Wee::Utils.app_for(YourMainComponent, :session => Wee::PagelessSession, :application => Wee::PagelessApplication) Wee::WEBrickAdaptor. request_class(Wee::PagelessRequest). register('/app' => app). start * Wee::Session: use #set_response, so that subclass of Wee::Session can more easily modify a response (e.g. add cookies or HTTP headers).
-
fixed bug. __inputXXX and __actionXXX methods were private and were a…
mneumann committedJan 29, 2005 …liases to methods that must be public.
-
* Wee::LiteralMethodCallback and Component#call: Additional arguments
mneumann committedJan 29, 2005 are now prepended instead of appended. Example: call MessageBox.new('msg'), :confirm, 1 def confirm(one, msgbox_result) end * Added named callbacks. Example: r.anchor.named_callback('test') { ... } will use 'test' as callback_id instead of a generic one. * Methods ImageTag#src_for and GenericTagBrush#css_class_for no more prepend 'img.' or 'css.' in front of the property name. * Refactored wee/renderer/html/brushes.rb. Removed InputCallbackMixin, ActionCallbackMixin and ActionURLCallbackMixin modules. Instead the GenericTagBrush has methods __input_callback, __action_callback etc. which are aliased in the corresponding Brush classes. Also made the SelectList callback marshallable.
-
there no more a Session#current_page method, use #current_callbacks i…
mneumann committedJan 28, 2005 …nstead
-
fixed test case (as I changed the delimiter in Wee::Request)
mneumann committedJan 28, 2005 -
* Method Wee::WEBrickAdaptor.request_class added. This allows you to
mneumann committedJan 28, 2005 use a custom request class for your application or even a different one for each registered application. Also added cookie support. * Added method Wee::Utils.autoreload_glob which is faster than #autoreload as it does not traverse the whole LOAD_PATH. * Wee::Response: added cookies
-
* Removed method Wee::Session#current_page and replaced it by
mneumann committedJan 28, 2005 #current_callbacks. * Wee::Session no longer applies a snapshot if the snapshot equals the current state of the components tree * removed duplicate code from continuation/session.rb
-
* added register_named_for method.
mneumann committedJan 28, 2005 -
* added autoreload_glob to the run.rb template
mneumann committedJan 28, 2005 -
* added 'wee' binary which generates a sample application and
mneumann committedJan 28, 2005 recommended directory structure for you (similar to the 'rails' command).
-
* Method Wee::Utils.app_for: Removed the id_seed option. Use id_gen
mneumann committedJan 27, 2005 instead, which expects a IdGenerator object (default is now the much more secure Md5IdGenerator). * Wee::Request: Refactored a lot. Use =/ instead of @ as delimeter for the request_handler_id/page_id part ('@' looks ugly in Konqueror, as it is displayed as '%40') * Wee::Application: Don't send a RedirectResponse when no request_handler_id was given. This wasn't neccessary and would break when introducing cookies.