Created
April 26, 2024 20:13
-
-
Save hugithordarson/37d03336de17cfcf3ac399f6325e0ff2 to your computer and use it in GitHub Desktop.
Invoking a parent action from 'action' binding
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<wo:link action="$performAction"><wo:content /></wo:link> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package x; | |
import com.webobjects.appserver.WOActionResults; | |
import com.webobjects.appserver.WOComponent; | |
import com.webobjects.appserver.WOContext; | |
public class XLink extends WOComponent { | |
public XLink( WOContext context ) { | |
super( context ); | |
} | |
@Override | |
public boolean synchronizesVariablesWithBindings() { | |
return false; | |
} | |
public WOActionResults performAction() { | |
return (WOActionResults)valueForBinding( "action" ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment