WOImage
WOImage
- Subject: WOImage
- From: "Jonathan Fleming" <email@hidden>
- Date: Fri, 14 Feb 2003 00:53:11 +0000
Can someone please inform me as to why I have to link to an image through an
aggregate key when using a path through your EOModel entities to get my
image to show in a WOImage? If I take out the aggregate binding I get these
errors, though @max & @min do actually load my image: (you see these on a
toMany relationsip path: @avg, @count, @max, @min, @sum)
When bound through @avg i get:
Error: java.lang.IllegalStateException exception
Reason:
java.lang.IllegalStateException: An Exception occurred while generating the
Exception page 'WOExceptionPage'. This is most likely due to an error in
WOExceptionPage itself. Below are the logs of first the Exception in
WOExceptionPage, second the Exception in Application that triggered
everything.
java.lang.IllegalStateException: URL may only contain 8-Bit characters!
Original Exception:
java.lang.IllegalStateException: Can't convert <class
com.webobjects.foundation.NSData (offset=0, length=37606, data=[-1]'?',
[-40]'?', [-1]'?', [-32]'?', [0]'', [16]'', [74]'J', [70]'F', [73]'I',
[70]'F', [0]'', [1]'', [1]'', [1]'', [0]'', [72]'H', [0]'', [72]'H',
[0]'', [0]'', [-1]'?', [-37]'?', [0]'', [67]'C', [0]'', [6]'', [4]'',
[5]'', [6]'', [5]''...)> (class com.webobjects.foundation.NSData) into
number
When bound through @count, I get:
java.lang.ClassCastException
When bound through @max, I get the loaded picture
When bound through @min, I get the loaded picture
When bound through @sum, I get error as in @avg
Now I am happy that the image does actually load under @max & @min, but I
don't actually know what is happening in the underlying code... I don't know
what @max & @min actually do.
I ask this because when I have linked through a path such as
tbClient.tbClientDatas.thumbnail when using raw rows my image loads, I
always eliminate these aggregae key, however in this case I am not using row
rows, I'm using EO's and seemingly have to go with this:
email@hiddennail
Can someone explain please what they are and what they do... I've looked in
the WebObjects Dynamic Elements Reference but I think I've looked in the
wrong place for this info.
Jonathan
_________________________________________________________________
Express yourself with cool emoticons http://messenger.msn.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.