Monday, October 20, 2014

Re: GWT RequestFactory. Could not locate setter for property id in type ...ui.server.entity.mc.BasketItem at com.google.web.bindery.requestfactory.server.ServiceLayerDecorator die(ServiceLayerDecorator.java 216)



On Monday, October 20, 2014 10:23:03 AM UTC+2, stepan kachan wrote:
Hi all, i decided to use GWT Request Factory instead of RPC because of complex type objects in my project. I face this error everytime when i try to remove entity from List. 

public class BasketItem implements Serializable{
    private Integer id;
    private PaymentState paymentState;

    public BasketItem() {
        super();
    }

    public BasketItem(PaymentState paymentState) {
        this.paymentState = paymentState;
    }
    public Integer getId() {
        return id;
    }

    void setId(Integer id) {
        this.id = id;
    }

Your setter is not 'public', that's (IIRC) the reason (if not done already, we should probably add warnings in the annotation processor / ValidationTool)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment