now I understood what you said that you isn't possible cast a String type to
a Key type.
you get String from url anyway, maybe you should try to change the type of
banco.key as String type or create a String field for
banco.key and setters getters
From:
For example you get the String *RootPlace:banco/123* I got the string
and extract 123, but when I'll use it in the line *
Datastore.query(banco).filter(banco.key.equal(key)).asSingle(); *
the key have to be a object of *KEY* type and isn't possible cast a
*String*type to a
*Key* type.
Sugar_xj,
I'm getting the value. My problem is that the application get a string value
and isn't possible cast this to a key value.
Let me try to explain what I'm trying to do. I have a UI with a celltable
where the user will click in one line and my application will send the key
value to
selectionModel
.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
public void onSelectionChange(SelectionChangeEvent event) {
Banco selected = selectionModel.getSelectedObject();
if (selected !=
I'm using a celltable and trying to send the register key when the user
click in one item. My first doubt is about the correct way to send and get
this value.
This the code to send the value
*selectionModel*
*.addSelectionChangeHandler(new SelectionChangeEvent.Handler() {
*
*
*
*
try String token=History.getToken(); //RootPlace:banco/123
String key = token.split(/)[1]
From: Sandney Farias sandneyfar...@gmail.com
To: google-web-toolkit@googlegroups.com
Sent: Thursday, August 25, 2011 4:31 AM
Subject: Sending a value from a celltable