Upgrading to GWT 2.12, and issues with GWT Query

113 views
Skip to first unread message

Simon Callan

unread,
Feb 25, 2025, 12:19:54 PM2/25/25
to GWT Users
I'm trying to upgrade from GWT 2.5.1 to GWT 2.12, and I'm having issues with GWT Query.

The latest published version of GWT Query appears to be 1.5-beta1, which appears to be hardwired to GWT 2.8.0

Is there a version of GWT Query for GWT 2.12, or is there a suitable replacement?

We're using very simple GWT Query actions -
1. Set HTML ID
2. Scroll selected item into view
3. Hide empty rows in table.

Simon

Colin Alworth

unread,
Feb 25, 2025, 12:26:11 PM2/25/25
to GWT Users
If those are your only use cases, I would strongly consider just dropping GWTQuery (before or after updating GWT) and using plain dom manipulation to achieve your goals.

Before updating - com.google.gwt.dom.client.Element has a setId(String) and a scrollIntoView() method. Hiding rows could probably also be achieved with plain Element calls (adding styles or classes).

After updating to something that supports JsInterop and/or Elemental2, you could use those tools to avoid writing JSNI or using the Element class.
Reply all
Reply to author
Forward
0 new messages