• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Subclassing WOImage
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Subclassing WOImage (From: Greg Hulands <email@hidden>)

  • Prev by Date: Help of FileDownload
  • Next by Date: Re: Subclassing WOImage
  • Previous by thread: Subclassing WOImage
  • Next by thread: Re: Subclassing WOImage
  • Index(es):
    • Date
    • Thread