Dynamic Web Development with Seaside

3.6.5Rendering the Counter

Each component is responsible for rendering itself in the web browser. This is done in Seaside by implementing a WAComponent>>renderContentOn: method. In this simple case, that means displaying the counter value.

Create a new protocol, called rendering, and add this method:

WebCounter>>renderContentOn: html 
html heading: count

Copyright © 19 March 2024 Stéphane Ducasse, Lukas Renggli, C. David Shaffer, Rick Zaccone
This book is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 license.

This book is published using Seaside, Magritte and the Pier book publishing engine.