r.test(p).fire();
sorts.add(p);
test() method in my RequestContext
Request<SortConfigProxy> test(SortConfigProxy sortConfigProxy);
call my DAO!
public SortConfig test(SortConfig config){
return new SortConfig(config.getColumn(), config.getOrder());
}
Then i can use the proxy to send it again to the server.
Can i only create a ValueProxy from the Server Side?
From the Getting Started
A proxy type will be available on the client if it is:
- Referenced from a RequestContext as a Request parameter or return type.
2012/1/27 Daniel Mauricio Patino León <ceo.lion.dev@gmail.com>
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 RequestContextat 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 ejecutivoLiondev S.A. de C.V.
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