Re: Subclassing WOImage
Re: Subclassing WOImage
- Subject: Re: Subclassing WOImage
- From: Geoff Hopson <email@hidden>
- Date: Sat, 15 Nov 2003 14:07:30 +0000
Can't you just contain it, fiddle with the URL and set the src binding
of the contained WOImage?
HTML:
<webobject name=myImage></webobject>
WOD:
myImage: WOIMage {
src = myFiddledPath;
other bindings...
}
Java:
public String myFiddlePath() {
String myOwnSrcBinding = (String)valueForBinding("src");
// fiddle with src path here...
StringBuffer fiddledString = ... // do what you gotta do...
return fiddledString.toString()
}
HTH,
Geoff
On Saturday, November 15, 2003, at 11:15 am, Greg Hulands wrote:
Hi,
I am wanting to subclass WOImage so that I can intercept the URL being
generated and return something different based on the parameters
supplied. I cannot for the life of me find where WOImage is declared
so that I can do this.
Can anyone provide me with any help?
Any help is greatly appreciated.
Regards,
Greg
_______________________________________________
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.
--
Geoff Hopson
Objectology Ltd.
http://www.objectology.co.uk/
_______________________________________________
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.