I ran into this issue as well - knowledge of the domain in the view.  I 
ended up getting around it by creating a delegate for the suggest oracle.

public class SuggestOracleDelegator extends SuggestOracle {

    private SuggestOracle delegate = null;
    
    public SuggestOracleDelegator() {    }
    
    
    public void requestSuggestions(Request request, Callback callback) {
        if(this.delegate != null){
            this.delegate.requestSuggestions(request, callback);
        }
    }

    public void setDelegate(SuggestOracle delegate) {
        this.delegate = delegate;
    }
}

Then I wrap this in a HasSuggestions interface that lets you set the 
delegate oracle from outside, and attach listeners and so forth.  Seems to 
work quite well.

-Ben

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to