If you are talking about an ajax update of repeated parts in a table-
plus you could do something like this:

Copy the definition of the table tag from rapid.dryml to
application.dryml

Change the first line adding a row-part-prefix attribute to:

<def tag="table" attrs="fields, field-tag, empty, row-part-prefix">

Change the data row line <tr .... to:

          <tr param if="&can_view?" id="#{row_part_prefix}-#{this.id}"

Then for example

        <table-plus row-part-prefix="foo" with="&@users" fields="this,
created_at">
                <controls:>
                  <%= link_to_remote( "doit",
                :update => "foo-#{this.id}",
                :url => { :action => :doit, :id => this.id } )
              %>
                </controls:>
        </table-plus>

Which requires in your controller:
  def doit
    @row_obj = blah blah, you have to build something here
    render :partial => "foo", :object => @row_obj
  end

Which needs a dryml template _foo.dryml

<%
  @col0 = foo[0]
  @col1 = foo[1]
  @col2 = foo[2]
%>

<tr><td>@col0</td><td>@col1</td><td>@col2</td></tr>

This is over simplified but you should be able to make it work.

Brett


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to