Changing Bindings via Hyperlink
Changing Bindings via Hyperlink
- Subject: Changing Bindings via Hyperlink
- From: Hunter Hillegas <email@hidden>
- Date: Mon, 30 Aug 2004 13:22:15 -0700
I am not sure how to accomplish something and thus I'm asking for help.
I don't have a totally clear picture of what I need to do to get this
to work, which probably means I don't totally understand how this hangs
together.
I have three components:
1. TopTen
2. TopTenHotel extends TopTen
3. TopTenCasino extends TopTen
TopTen includes the other two components as 'Custom WebObjects' from
WOB.
TopTen has a method that fetches items based on parameters set via
bindings on the included components. As the sub-components extend
TopTen, they inherit this method and they fetch properly. Works great.
The bindings are strings defined in the 'TopTen' component. They
include items like:
qualifierKey
qualifierValue
sortDirection
They have different values for each sub-component they are bound to.
What I would like to do is modify one of the bindings based on a user
selection via hyperlink. Basically, by clicking a hyperlink, they
should be able to filter the results by sending a different value via
the binding to the sub-component, which uses it as a qualifier.
I'm not totally sure how to have the hyperlink make that change. If I
have it fire an action, it seems like it would set, for instance,
qualifierValue to be a static value and that would then be applied to
BOTH sub-components, when in fact they need to have unique values... My
goal was to have the design be a bit more extensible and not have to
have bindings like hotelQualifierKey and casinoQualifierKey, instead
use the more generic version.
If anyone can help, I would appreciate it. I probably just need a shove
in the right direction... I may be overlooking something very simple
(wouldn't be the first time).
Thanks,
Hunter
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.