From 1cc1decb587e0a215daab02e181a508e4a1dc272 Mon Sep 17 00:00:00 2001 From: Ray Kiddy Date: Fri, 25 Jan 2013 13:12:24 -0800 Subject: [PATCH] ERXImage does not implement data. It would be helpful for it to let the user know. --- .../er/extensions/components/ERXImage.java | 29 ++++++++++++++----- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXImage.java b/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXImage.java index 160eaf89df5..6416cdff1ff 100644 --- a/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXImage.java +++ b/Frameworks/Core/ERExtensions/Sources/er/extensions/components/ERXImage.java @@ -9,15 +9,16 @@ import com.webobjects.appserver.WOContext; /** - * + * */ public class ERXImage extends ERXStatelessComponent { - /** - * Do I need to update serialVersionUID? - * See section 5.6 Type Changes Affecting Serialization on page 51 of the - * Java Object Serialization Spec - */ - private static final long serialVersionUID = 1L; + + /** + * Do I need to update serialVersionUID? + * See section 5.6 Type Changes Affecting Serialization on page 51 of the + * Java Object Serialization Spec + */ + private static final long serialVersionUID = 1L; public ERXImage(WOContext context) { super(context); @@ -28,7 +29,7 @@ public void reset() { super.reset(); src = null; } - + protected String src; public String src() { if (src == null) { @@ -50,4 +51,16 @@ public String relativePath() { public String host() { return (String)valueForBinding("host"); } + + public com.webobjects.foundation.NSData data() { + throw new IllegalArgumentException( + "The data binding is not implemented in ERXImage, though perhaps it should be. Make sure you are using WOImage, or "+ + "tell WOLips that you are using WOImage."); + } + + public void setData(com.webobjects.foundation.NSData value) { + throw new IllegalArgumentException( + "The data binding is not implemented in ERXImage, though perhaps it should be. Make sure you are using WOImage, or "+ + "tell WOLips that you are using WOImage."); + } }