Friday, January 27, 2012

Re: How to transfer ColumnSortList info to the server side.

Ok! i created this:

@ProxyFor(SortConfig.class)
public interface SortConfigProxy extends ValueProxy {
public String getColumn();
public void setColumn(String column);
public String getOrder();
public void setOrder(String order);
}

So my problem is how to create a instance of that proxy on the client side.

PersonRequest r = requestFactory.personRequest();
SortConfigProxy p = r.create(SortConfigProxy.class);
p.setColumn("myAge");
p.setOrder("desc");


i get an error.


Caused by: java.lang.IllegalArgumentException: Attempting to edit an EntityProxy previously edited by another RequestContext
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.checkStreamsNotCrossed(AbstractRequestContext.java:987)
    at com.google.web.bindery.requestfactory.shared.impl.AbstractRequestContext.editProxy(AbstractRequestContext.java:509)

=S EntityProxy ?

Any help wuold be apreciated!


Thank you



2012/1/27 Daniel Mauricio Patino León <ceo.lion.dev@gmail.com>
Iam taying to figure out how to send the informaction of the
ColumnSortList of a CellTable to do the Order on the server side.

I know RequestFactory can't trasnport Beans, just primitive types and
list (of course EntityProxy and ValueProxy)


So how can i send the info on ColumnSortList to the server trought
RequestFactory

Thank you.

--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
ISC. Daniel Mauricio Patiño León.
Director ejecutivo
Liondev S.A. de C.V.



--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment