Dynamic Web Development with Seaside

4.2.3Rendering a counter

In order to render the counter in a web browser, we must create a WAComponent>>renderContentOn: method. The following method will display the value of the variable count as an HTML heading.

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.