[Seaside] Navigate to component via anchor?
avi.bryant at gmail.com
Wed May 24 23:16:04 UTC 2006
On May 24, 2006, at 4:13 PM, Boris Popov wrote:
> Right, except that in my case #call would retain control, not merely
> navigate away to the new component. I changed it to go through the
> self anchor
> callback: [self menu selectComponent: ContactPage];
> with: [html text: 'Contact Us'].
> Ugly, but it works. I'm all ears to hear better suggestions.
That seems reasonable to me. Depending on what you find uglier, you
could store the menu in the session (effectively make it a global)
rather than on every component...
Note that the combination of #with: and #text: can always be
callback: [self menu selectComponent: ContactPage];
with: 'Contact Us'
More information about the Seaside