Re: binding trouble
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