[Seaside] problems with nil hrefs
Avi Bryant
seaside@lists.squeakfoundation.org
Tue, 23 Jul 2002 10:38:22 -0700 (PDT)
On Tue, 23 Jul 2002, Ragnar Hojland Espinosa wrote:
> I have a little problem with links. Imagine a component that shows a line
> like "company-name contact-name" and you can click on either field to show
> its details. Now, if a company does not have a contact assigned to it, the
> contact is going to appear as nil, so I end up with: <a href="badbadbad">nil</a>
>
> How to I fix this? Or rather, whats the right way so you dont have to fix
> it?
How about something like this:
<if sea:id="personName.notNil">
<a sea:id="viewPerson:">[personName]</a>
</if>