Hi,
I am trying to use with-html in my view, and for some reason, it is
displaying things oddly. The code is:
(defun submit-pledge (proposal)
(with-html "hello"))
(defview proposal-table-view (:type table)
(title :label "")
(target-amount :label ""
:reader #'display-formatted-money)
(pledges :label ""
:reader #'display-formatted-pledges)
(pledge-field :label ""
:reader ""
:present-as (input))
(submit-pledge :label ""
:reader #'submit-pledge))
This results in a "hello" appearing at the end of each row of my
table, as expected, but then also the text "hellohellohello" appearing
above my table. Am I not supposed to use with-html for the :reader
argument in a view? The HTML for the output is as follows, notice the
wierd "hello" between th and td tags:
<table>
<thead>
<tr>
<th class='title'></th>
<th class='target-amount'></th>
<th class='pledges'></th>
<th class='pledge-field'></th>
hello
<th class='submit-pledge'></th>
</tr>
</thead>
<tbody>
<tr>
<td class='title'>
<span class='value'>Cookie</span>
</td>
<td class='target-amount'>
<span class='value'>$400.00</span>
</td>
<td class='pledges'>
<span class='value'>$75.00</span>
</td>
<td class='pledge-field'>
<input type='text' name='pledge-field' value='' maxlength='40' />
</td>
hello
<td class='submit-pledge'>
<span class='value'>hello</span>
</td>
</tr>
<tr class='altern'>
<td class='title'>
<span class='value'>Smee</span>
</td>
<td class='target-amount'>
<span class='value'>$500.00</span>
</td>
<td class='pledges'>
<span class='value'>$0.00</span>
</td>
<td class='pledge-field'>
<input type='text' name='pledge-field' value='' maxlength='40' />
</td>
hello
<td class='submit-pledge'>
<span class='value'>hello</span>
</td></tr></tbody></table>
Thanks!
-Saikat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"weblocks" 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/weblocks?hl=en
-~----------~----~----~----~------~----~------~--~---