• 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: binding trouble
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding trouble


  • Subject: Re: binding trouble
  • From: Amedeo Mantica <email@hidden>
  • Date: Fri, 24 Jun 2005 17:24:30 +0200

thanks David, but this works fine If i have only an image in my item object, but i have more images, so i need to pass to the function the image name...

for example, following your example:

public String imgSrc(String aFileName) {
        return "myPath" + aFileName;
}

and bind the WOImage to imgSrc(listItem.theFileName())

But this won't work...
Any help?

Thanks
Amedeo


On 24/giu/05, at 17:06, David LeBer wrote:

On 24-Jun-05, at 10:57 AM, Amedeo Mantica wrote:


Hi

This is my problem...

I have a WORepetition...

the list item is an object containing a some stringa, strings are image names.

I need to display the images using WOImage, but I need to prepend a path to the image name.

I tried to make a binding line "myPath"+theFileName, but is not accepted...

can I bind the WOImage src to a function thet return the String path?

How to pass theFileName to that function?




public String imgSrc() { return "myPath" + listItem.theFileName(); }

Bind this to the WOImage src binding.

;david

--
David LeBer
Codebase Software Systems
site:   http://www.codebase.ca
blog: http://david.codebase.ca




_______________________________________________ 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: binding trouble
      • From: Arturo PĂ©rez <email@hidden>
    • Re: binding trouble
      • From: David LeBer <email@hidden>
References: 
 >binding trouble (From: Amedeo Mantica <email@hidden>)
 >Re: binding trouble (From: David LeBer <email@hidden>)

  • Prev by Date: Re: Multiple submit in one Form
  • Next by Date: File upload problem
  • Previous by thread: Re: binding trouble
  • Next by thread: Re: binding trouble
  • Index(es):
    • Date
    • Thread