TheCoder4eu / BootsFaces

BootsFaces : the next gen JSF Framework
MIT License
71 stars 17 forks source link

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

Open Kristover opened 8 years ago

Kristover commented 8 years ago

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 commented 8 years ago

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

image

stephanrauh commented 8 years ago

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

Kristover commented 8 years ago

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">