# How to populate Query tab in Java

**URL:** <https://community.temporal.io/t/how-to-populate-query-tab-in-java/1629>\
**Category:** Community Support\
**Tags:** web-ui\
**Created:** [March 3, 2021, 10:44am UTC](https://community.temporal.io/t/how-to-populate-query-tab-in-java/1629 "2021-03-03T10:44:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Benny\_Bottema](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/benny_bottema/32/787_2.png) [@Benny\_Bottema](https://community.temporal.io/u/Benny_Bottema)\
**Post date:** [March 3, 2021, 10:44am UTC](https://community.temporal.io/t/how-to-populate-query-tab-in-java/1629/1 "2021-03-03T10:44:54Z")

</div>

I’m struggling to understand how to get Queries in the server dashboard under the Query tab. I’m a total beginner.

I read [Query Tab in the UI](https://community.temporal.io/t/query-tab-in-the-ui/842), but I couldn’t glance from the GO code how to do it in Java, and the documentation for Java is a bit… lean (for example to doesn’t indicate how to make a query strong, other than on the cli). I have configured my workflow interface with _@QueryMethod_, but they don’t show up under the tab. Is that how it is supposed to work though?

Note that I do have a worker running.

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [March 3, 2021, 5:37pm UTC](https://community.temporal.io/t/how-to-populate-query-tab-in-java/1629/2 "2021-03-03T17:37:36Z")

</div>

I believe in the latest version of Temporal and UI the query tab is populated automatically based on queries a workflow implements.

---

<div class="post-metadata">

**Author:** ![Benny\_Bottema](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/benny_bottema/32/787_2.png) [@Benny\_Bottema](https://community.temporal.io/u/Benny_Bottema)\
**Post date:** [March 3, 2021, 6:04pm UTC](https://community.temporal.io/t/how-to-populate-query-tab-in-java/1629/3 "2021-03-03T18:04:06Z")

</div>

With _@QueryMethod_? Because that doesn’t seem to do the trick…

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [March 3, 2021, 6:43pm UTC](https://community.temporal.io/t/how-to-populate-query-tab-in-java/1629/4 "2021-03-03T18:43:39Z")

</div>

I think [the fix](https://github.com/temporalio/sdk-java/pull/360) for this wasn’t released yet. You can try using the snapshot build.

To use a snapshot build:

- Add snapshot repository to your Gradle/Maven build file:

```auto
repositories {
    maven {
        url "https://plugins.gradle.org/m2/"
    }
    maven {
        url "https://oss.sonatype.org/content/repositories/snapshots/"
    }
    mavenCentral()
}

```

- Use the snapshot dependency:

```auto
implementation group: 'io.temporal', name: 'temporal-sdk', version: '1.0.6-SNAPSHOT'

```

---

<div class="post-metadata">

**Author:** ![Benny\_Bottema](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/benny_bottema/32/787_2.png) [@Benny\_Bottema](https://community.temporal.io/u/Benny_Bottema)\
**Post date:** [March 4, 2021, 9:13am UTC](https://community.temporal.io/t/how-to-populate-query-tab-in-java/1629/5 "2021-03-04T09:13:23Z")

</div>

Actually, I just noticed this bug was solved in the [1.0.6 release](https://github.com/temporalio/sdk-java/releases/tag/v1.0.6) from 5 days ago. Thanks for pointing me in the right direction.
