I am using GWT for my web app.

Here is the problem.

I have a currentRequest=new PlaceRequest(NameTokens.cust).with("ID", 
custID).with("name",name);

now I want to clear all the existing params of currentRequest, ie I want to 
remove "ID" & "name" params in currentRequest.

If I don't remove them, then if i do 
request=placeManager.getCurrentPlaceRequest().with("otherID", 
otherID); then the currentRequest will have 3 params as it still remember 
the other 2 params.

There is a solution, we can create a complete new Request

Request newRequest==new PlaceRequest(NameTokens.cust).with("otherID", otherID);

But i don't want that, I want to keep the currentRequest

There is no clearParam in Request object

How to fix it?

http://stackoverflow.com/questions/24713672/how-to-clear-all-the-current-params-of-a-current-request-not-to-create-a-new-re


-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to