• 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
WOHyperlinks following recursive relationships in a component
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

WOHyperlinks following recursive relationships in a component


  • Subject: WOHyperlinks following recursive relationships in a component
  • From: David Holt <email@hidden>
  • Date: Fri, 21 Jan 2005 09:43:44 -0800

Hello,

I have a component that displays images called DisplayImage. It has WOhyperlinks to previous image, next image, parent image, and child images.

I created an instance of my image object called anImage and bound the WOString for the text of each hyperlink to follow the corresponding relationship (i.e. previous image is anImage.prevImage.image_name). Here is my code for the action binding on the hyperlinks:

public DisplayImage toDisplayImage()
{
DisplayImage nextPage = (DisplayImage)pageWithName("DisplayImage");


// Initialize your component here
nextPage.setAnImage(anImage);


return nextPage;
}

For the links that follow relationships, the link displays just the same image again instead of the related image. Is there a way to set up my WOHyperlinks so that they can pass the value of the related images? i.e. How do I pass the object that anImage.prevImage.Image_name points to to the DisplayImage page? Also, I wanted to call the same action from all of the WOHyperlinks because they all pass different Image objects to the same component. Is this possible, or do I have to call a separate action with each link?

Thanks,
David

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: WOHyperlinks following recursive relationships in a component
      • From: LD <email@hidden>
    • Re: WOHyperlinks following recursive relationships in a component
      • From: Colin Clark <email@hidden>
    • [SOLVED] Re: WOHyperlinks following recursive relationships in a component
      • From: David Holt <email@hidden>
  • Prev by Date: Re: EOModeler Qualifier for to Many relationship
  • Next by Date: [SOLVED] Re: WOHyperlinks following recursive relationships in a component
  • Previous by thread: Re: WOXMLCoder
  • Next by thread: [SOLVED] Re: WOHyperlinks following recursive relationships in a component
  • Index(es):
    • Date
    • Thread