What is the correct way of converting a String/Long Id to
EntityProxyId ?

when dealing with GWT Places, during Tokenization,
(translating the String of History token, to a Place object),
I need to convert a String/Long id which is parsed from history token,
to an EntityProxyId.

for example:

given History Token: employee/777
after extracting the id: 777, I want to do this
new EmployeePlace( 777  )

but I dont want to use String or Long as Argument to EmployeePlace,
instead I prefer to use EntityProxyId,
however I don't know how to convert a String/Long to EntityProxyId
represeting that String/Long.

do you have any suggestions ?

Thank You

public EmployeePlace(EntityProxyId<EmployeeProxy> record) {

}

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

Reply via email to