Skip to content

Instantly share code, notes, and snippets.

@virtix
Created May 31, 2009 04:02
Show Gist options
  • Save virtix/120747 to your computer and use it in GitHub Desktop.
Save virtix/120747 to your computer and use it in GitHub Desktop.
function freakinIdioticInvocationUsingPageContextAndRequestScope(){
var localFunc = 'localFunc';
var page = getPageContext().getRequest().setAttribute( localFunc , plainOldComponent.echo );
assertEquals('Hey, let''s hang out at BestBuy and give the computer staff shit.', request.localFunc('Hey, let''s hang out at BestBuy and give the computer staff shit.') );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment