In the widget.java before the below lines i called
aaaRequest req1 = clientFactory.getRequestFactory().aaaRequestContext();
req1.getStates().fire(new Receiver<List<StateProxy>>(){
onsucess(){
.........................
}
after that i call
}
req.search(setSearchCriteraFromDisplay()).fire(new Receiver<Void>()(While calling this fire () method i am getting the exception) {
}
in setSearchCriteraFromDisplay
aaaProxy searchproxy = req.create(aaaProxy.class);
searchproxy.
setState(StateBox.getItemText(0));
On Friday, 4 May 2012 12:53:32 UTC+5:30, lucky wrote:
I´m using GWT RequestFactory and want to transport client-side
parameters in a service.
The parameters should be created on the client, because they aren´t
part of the domain model and won´t be stored in the database.
so i have created one valueProxy with getters and setters with
paramater values
@ProxyFor(value = aaa.class)
public interface aaaProxy extends ValueProxy{
void setState(String state);
String getState();
}
public class aaa{
private String state;
public String getState() {
return state;
}
public void setState(String state) {
this.state = state;
}
}
Also specified in the RequestFactory interface in the following way:
@Service(value = aaaServiceImpl.class)
public interface aaaRequest extends RequestContext {
Request<List<StateProxy>> getStates() throws Exception;
Request<Void> search(aaaProxy result) throws Exception;
}
aaaRequest aaaRequestContext();
These two methods are implemetnted in aaaServiceImpl class