You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Chapters/04-Anchors/anchors.pillar
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -107,6 +107,7 @@ Another problem that new Seasiders might run into is that they try to change the
107
107
108
108
109
109
!!! Contact Information Model
110
+
@ref:contact-information
110
111
111
112
In the next few chapters we will develop a simple application, named iAddress, which
112
113
manages an email address book. We will begin by creating a new package ==iAddress==, and creating in this package a class whose instances will represent the contacts in our address book.
@@ -293,7 +294,7 @@ The method ==confirm:== returns ==true== if the user answers ``Yes\'' and ==fals
293
294
# The confirmation component handles this request, ``answering\'' ==true== if the user clicked ``Yes\'' and ==false== otherwise.
294
295
# When the confirmation component answers, the ==ContactListView>>removeContact:== method ""resumes"" execution and processes the answer from ==confirm:==, deleting the contact item if the answer was ==true==.
295
296
296
-
So, in Seaside, it is easy for a method to display another component, wait for the user to interact with it, and then resume execution when that component has completed its job. This is akin to ''modal dialogs'' in Graphical User Interface (GUI) applications, see Chapter *cha:components*.
297
+
So, in Seaside, it is easy for a method to display another component, wait for the user to interact with it, and then resume execution when that component has completed its job. This is akin to ''modal dialogs'' in Graphical User Interface (GUI) applications, see Chapter *@cha:components*.
297
298
298
299
!!! Creating a mailto: Anchor
299
300
@@ -316,7 +317,6 @@ ContactListView >> renderContact: aContact on: html
316
317
317
318
Test this new component in your browser to see that your mailto: links are working correctly, see Figure *@ref:contacts-listing-with-removeandMail*.
Note that rather than manipulating strings in this way, experienced Pharoers might want to actually define an ``email address\'' class to handle the different representations of email addresses. In fact, Seaside 3.0 already defines a class ==WAEmailAddress== which may be used for this very purpose.
0 commit comments