[Seaside] liveAction using existing method
Avi Bryant
avi.bryant at gmail.com
Thu Jun 30 00:58:31 CEST 2005
On 6/30/05, William E Harford <seaside at harford.org> wrote:
> I also simply tried using the WAHtmlRender object that is passed to
> liveAction ...
>
> html anchorWithAction: []
> liveAction:[:h |
> self showPatient: (row at: 'ionumber') .
> self renderPatientOn: fh.
> h divNamed:'patientContainer' with:fh.
> ] text: (row at: 'lastname') .
>
> When doing it that way liveAction insisted on changing a child div of
> patientContainer and I figured that usage was incorrect.
Hi Will,
What you describe (simply using the WAHtmlRender object that's passed
in) should be the right approach. But that's not what your code above
has. It should just be:
html anchorWithAction: []
liveAction: [:h |
self showPatient: (row at: 'ionumber') .
self renderPatientOn: h]
text: (row at: 'lastname')
Does that not work?
Avi
More information about the Seaside
mailing list