Tuesday, February 3, 2015

Navigating to a different page from a Cell of a CellList

Hi, I have a CellList component and I am trying to navigate to another 'Details' page when clicking any of the Cells on the CellList.

I tried the following code to navigate another page (as I do in the rest of my app)

final ClientFactory factory = ClientFactoryImpl.getClientFactory();
factory.getPlaceController().goTo(new DetailsPlace(new HashMap<String, Object>()));

I added this code in 2 places:
* onBrowserEvent event of the cells
* addCellPreviewHandler of the cellist

Despite the new screen looks to be loaded in both cases (logs says so), there is not transition to the new page in the app.

Any idea? 

How is expected to navigate to a Details page when clicking any of the cells in a CellList? This case does not look to be covered in the GWT Showcase.

Thanks

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

No comments:

Post a Comment