Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no refresh for b:tab against p:tab with p:gmap #41

Open
Kristover opened this issue Nov 27, 2015 · 3 comments
Open

no refresh for b:tab against p:tab with p:gmap #41

Kristover opened this issue Nov 27, 2015 · 3 comments

Comments

@Kristover
Copy link

Hi,
i encounter a problem with a distinctive comportment between p:tab and b:tab when it is the second tab (not active one) and where you put a gmap.
Let's try the following code : If you click on 2nd p:tab, gmap is displaying. If you click on 2nd b:tab, the gmap is not displaying ?

<h:form>
        <b:row><b:column offset="2" col-lg="8">
           <b:tabView>
               <b:tab title="Test"></b:tab>
               <b:tab title="Test with b">
               <b:panel style="height: 400px">
                   <p:gmap center="49.005268,2.113863" type="ROADMAP" zoom="14" style="width:300px;height:300px"/>
               </b:panel>
               </b:tab>
            </b:tabView>
        </b:column></b:row>

        <b:row><b:column offset="2" col-lg="8">
           <p:tabView activeIndex="0" style="height:500px; width:100%;">
               <p:tab title="Test" ></p:tab>
               <p:tab title="Test with p" >
                    <p:gmap center="49.005268,2.113863" type="ROADMAP" zoom="14" style="width:300px;height:300px"/>
               </p:tab>
            </p:tabView>
        </b:column></b:row>
  </h:form>

Thanks in advance for any advice.
Regards

@stephanrauh
Copy link

Currently, neither shows. Instead, there's a funny error message. Did I forget a JavaScript import?

image

@stephanrauh
Copy link

Oh, and please report your error in the open-source-project (BootsFaces-OSP).

@Kristover
Copy link
Author

ok thx 4 advice. I will do it on -OSP side
(need to add following for gmap of course...)
< script src="http://maps.google.com/maps/api/js?sensor=true" type="text/javascript"></script >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants