[Seaside] problems with nil hrefs
Ragnar Hojland Espinosa
seaside@lists.squeakfoundation.org
Tue, 23 Jul 2002 18:54:09 +0200
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?
html
^ '<a sea:id="viewPerson:">[personName]</a>'
viewPerson: dummy
self root jumpToPage: (ExViewPerson new personID: (company at: 'personid'))
--
Ragnar Hojland - Project Manager
Linalco "Especialistas Linux y en Software Libre"
Tel: +34-91-5970074 Fax: +34-91-5970083