Skip to content

Commit

Permalink
ERXImage does not implement data. It would be helpful for it to let t…
Browse files Browse the repository at this point in the history
…he user know.
  • Loading branch information
rkiddy committed Jan 25, 2013
1 parent 42c09ed commit 1cc1dec
Showing 1 changed file with 21 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@
import com.webobjects.appserver.WOContext;

/**
*
*
*/
public class ERXImage extends ERXStatelessComponent {
/**
* Do I need to update serialVersionUID?
* See section 5.6 <cite>Type Changes Affecting Serialization</cite> on page 51 of the
* <a href="http://java.sun.com/j2se/1.4/pdf/serial-spec.pdf">Java Object Serialization Spec</a>
*/
private static final long serialVersionUID = 1L;

/**
* Do I need to update serialVersionUID?
* See section 5.6 <cite>Type Changes Affecting Serialization</cite> on page 51 of the
* <a href="http://java.sun.com/j2se/1.4/pdf/serial-spec.pdf">Java Object Serialization Spec</a>
*/
private static final long serialVersionUID = 1L;

public ERXImage(WOContext context) {
super(context);
Expand All @@ -28,7 +29,7 @@ public void reset() {
super.reset();
src = null;
}

protected String src;
public String src() {
if (src == null) {
Expand All @@ -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.");
}
}

0 comments on commit 1cc1dec

Please sign in to comment.