This is an example from the standard WebObjects distribution. It has been coverted to WOPerl.
The TimeOff application lets a user submit a vacation request. This request consists of a vacation start date, an end date, and the user's login and password.
TimeOff includes a reusable component, Calendar. The first page of the application displays two calendars: a Start Date calendar and an End Date calendar. Users select days in each calendar by clicking on them, and these selections are then submitted for processing.
The Calendar child component messages the parent component (Main) using a WOAction object. For another, much simpler example of an application that uses a child component, see Component.
TimeOff includes a reusable component, Calendar.
TimeOff provides an example of messaging a parent from a child component. This requires coordination between the parent's script and declarations file and the child's script. For a more detailed explanation of how it works in TimeOff, see the comments in the files Main.wos and Calendar.wos.