On Mar 12, 2007, at 11:40 AM, David Holt wrote:

I have a tabbed navigation component with several WOHyperlinks each bound to a different action method.

I have created a generic WOHyperlink that adds a class binding bound to a cssClass method that checks the link's location and returns the CSS class as a string based on whether the component is on the link's "home" tab or not.

Why not just use a regular WOHyperlink and put the class selecting logic in the tabbed navigation component? It seems like that is where this code belongs.


How do I pass the "action" binding value from the current WOHyperlink in the navigation component to my generic hyperlink?

My preference is to turn off automatic binding synch in cases like this. With that done you can implement action like this:

public WOComponent action() {
    return (WOComponent) valueForBinding("action");
}

Chuck


--

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects





_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to