Re: Sending a value from a celltable to a view

2011-08-28 Thread Abduxkur Ablimit
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:

Re: Sending a value from a celltable to a view

2011-08-26 Thread Sandney Farias
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.

Re: Sending a value from a celltable to a view

2011-08-25 Thread Sandney Farias
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

Re: Sending a value from a celltable to a view

2011-08-25 Thread Abduxkur Ablimit
selectionModel             .addSelectionChangeHandler(new SelectionChangeEvent.Handler() {                 public void onSelectionChange(SelectionChangeEvent event) {                     Banco selected = selectionModel.getSelectedObject();                                          if (selected !=

Sending a value from a celltable to a view

2011-08-24 Thread Sandney Farias
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() { * * * *

Re: Sending a value from a celltable to a view

2011-08-24 Thread Abduxkur Ablimit
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