Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8703859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:57:40+00:00 2026-06-13T02:57:40+00:00

I tried to update a Gmap which placed in a tabView. But i am

  • 0

I tried to update a Gmap which placed in a tabView. But i am getting the

java.lang.IllegalArgumentException: tab2  

error. I have searched this problem a little and noticed that it is available only if tab is visible. So what can I do ? The code block is below:

<h:form id="form">
        <p:tabView orientation="left" id="tabView" styleClass="tabView">

            <p:ajax event="tabChange" listener="#{sucBean.onTabChange}"
                update=":form:tabView:map" />

            <p:tab title="Bütün Suçlar" id="tab1">

                <p:gmap zoom="10" type="HYBRID" center="40.78470,29.94873" id="map"
                    model="#{sucBean.advancedModel}"
                    style="width:740px;height:500px;margin:-14px 0 0 -10px;">

                    <p:ajax event="overlaySelect" listener="#{sucBean.onMarkerSelect}" />

                    <p:gmapInfoWindow>
                        <p:outputPanel
                            style="text-align:justify;display:block;margin:auto:">
                            <p:panelGrid columns="2" cellpadding="8">

                                <h:outputText value="Suç Tipi:" style="color:red" />
                                <h:outputText value="#{sucBean.marker.data.sucTipi}" />

                                <h:outputText value="Tarih: " style="color:red" />
                                <h:outputText value="#{sucBean.marker.data.islenmeZamani}" />

                                <h:outputText value="Adres: " style="color:red" />
                                <h:outputText value="#{sucBean.marker.data.adres}" />

                                <h:outputText value="Suçu İşleyen:" style="color:red" />
                                <h:outputText value="#{sucBean.marker.data.isleyenBilgisi}" />
                            </p:panelGrid>
                        </p:outputPanel>

                    </p:gmapInfoWindow>



                </p:gmap>

            </p:tab>

            <p:tab title="Suç Ara" id="tab2">
                <p:fieldset legend="Ayrıntılı Arama" styleClass="searchField"
                    id="fieldSet">

                    <p:panelGrid columns="4" cellpadding="10">
                        <p:inputText value="#{sucBean.arananKelime}" style="width:300px" />
                        <h:outputText value=" Kriter:" />
                        <p:selectOneMenu value="#{sucBean.aramaKriteri}">
                            <f:selectItem itemLabel="Suç Tipi" itemValue="sucTipi" />
                            <f:selectItem itemLabel="Adres" itemValue="adres" />
                            <f:selectItem itemLabel="İşlenme Zamanı" itemValue="zaman" />
                            <f:selectItem itemLabel="Cinsiyet" itemValue="cinsiyet" />
                            <f:selectItem itemLabel="Yaş" itemValue="yas" />
                        </p:selectOneMenu>

                        <p:commandButton value="Ara"
                            actionListener="#{sucBean.sucKaydiAra}" update="aramaSonucu" />
                    </p:panelGrid>

                </p:fieldset>

                <p:dataTable var="suc" value="#{sucBean.sucModel}" paginator="true"
                    rows="10" id="aramaSonucu" selection="#{sucBean.selectedSuc}">

                    <p:column selectionMode="multiple" style="width:18px"></p:column>

                    <p:column headerText="Suç Tipi">
                        <h:outputText value="#{suc.sucTipi}" />
                    </p:column>

                    <p:column headerText="İşlenme Zamanı">
                        <h:outputText value="#{suc.islenmeZamani}" />
                    </p:column>

                    <p:column headerText="Adres">
                        <h:outputText value="#{suc.adres}" />
                    </p:column>

                    <p:column headerText="Suçu İşleyen">
                        <h:outputText value="#{suc.isleyenBilgisi}" />
                    </p:column>

<!--                        <f:facet name="footer"> -->

<!--                        </f:facet> -->

                </p:dataTable>

                <p:commandButton id="multiSelectButton"  actionListener="#{sucBean.secilenleriGetir}" update=":form:tabView:tab2:map2"
                            value="Secilenleri Haritada Göster" icon="ui-icon-pin-s" />

                <p:gmap zoom="12" type="HYBRID" center="40.78470,29.94873"
                    id="map2" model="#{sucBean.advancedModel2}"
                    style="width:740px;height:300px;margin:10px 0 0 -10px;">
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T02:57:41+00:00Added an answer on June 13, 2026 at 2:57 am

    When you reference a component inside container components like tabView or accordion, you don’t need to include the actual tab id in your update target.

    In your case update=":form:tabView:map2" would be the correct update target.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried to update some part of a matrix, I got the following error
I tried to update an fullcalendar event with updateEvent but only the first time
UPDATE: I tried implementing the method specified by Peter and am getting incorrect shadowing.
UPDATE I tried using the internal wordpress rewrite. What I have to do is
Update: Tried SmoothingMode = System.Drawing.Drawing2D.SmoothingMode.AntiAlias; and it's noticeable at full zoom, but it doesn't
I tried to update the php version of my VPS but it didn't work
I have tried to update my Eclipse. Currently I have till 2.2 Android SDK
UPDATE: Tried the links you suggested, but can't get it to work. Just to
I tried to update some files to old revision in many ways, but I
Can't figure out, how to update decimal field to null or emptiness. Have tried:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.