lib/st_html/ruing/abstract_renderer.rb
# this method fully replaces the ui element originating from x
this method fully replaces the ui element originating from x
this method fully replaces the ui element originating from x
def update page, x, *render_options
         renderoptions must always be reset
        @ro = extract_va_options render_options
        if !x.nil? \
              && x.respond_to?(:items) \
              && x.respond_to?(:renderer) \
              && !x.renderer.nil? \
              && x.renderer.is_a?(AbstractRenderer)
            if x.respond_to? :items
                page.replace x.get_input_id, x.renderer.render(x, @ro) 
                   Groups use input instead of item the real operation is done 
                   by render so here we have only to allow it to receive 
                   renderoptions
            else
                page.replace x.get_item_id, x.renderer.render(x, @ro) 
                   the real operation is done by render so here we have only 
                   to allow it to receive renderoptions
            end
        elsif defined? RAILS_DEFAULT_LOGGER then 
            RAILS_DEFAULT_LOGGER.info "St::Html::Ruing::Render::AbstractRenderer:  failed update"
            RAILS_DEFAULT_LOGGER.info "    page={page}"
            RAILS_DEFAULT_LOGGER.info "    x={x}"
            RAILS_DEFAULT_LOGGER.info "    renderoptions={renderoptions}"
        else
            raise 
        end
    end
def update page , x , * render_options @ro = extract_va_options render_options if ! x . nil? && x . respond_to? ( :items ) && x . respond_to? ( :renderer ) && ! x . renderer . nil? && x . renderer . is_a? ( AbstractRenderer ) if x . respond_to? :items page . replace x . get_input_id , x . renderer . render ( x , @ro ) else page . replace x . get_item_id , x . renderer . render ( x , @ro ) end elsif defined? RAILS_DEFAULT_LOGGER then RAILS_DEFAULT_LOGGER . info "St::Html::Ruing::Render::AbstractRenderer:  failed update" RAILS_DEFAULT_LOGGER . info "    page=#{page}" RAILS_DEFAULT_LOGGER . info "    x=#{x}" RAILS_DEFAULT_LOGGER . info "    renderoptions=#{renderoptions}" else raise end end
this method fully replaces the ui element originating from x
this method fully replaces the ui element originating from x
# # renderoptions must always be reset # # Groups use input instead of item the real operation is done  # by render so here we have only to allow it to receive  # renderoptions # the real operation is done by render so here we have only  # to allow it to receive renderoptions
page
<not_specific>
x
<not_specific>
render_options
<not_specific>