My favorites | Sign in
Logo
                
Search
for
Updated Jan 06, 2009 by Hazem.saleh
htmlInformationWindowComponent  

It can be a child of the (map or marker) components.

Attributes

Beside the JSF UIComponent standard attributes.

Component Attribute Required Description Default value
longitude false The longitude of the HTML information window. If not set then the parent map longitude will be taken. NA
latitude false The latitude of the HTML information window If not set then the parent map latitude will be taken. NA
htmlText true The Information Window HTML Text. NA
jsVariable (Added in 1.1.1) false This flag determines the Javascript variable you want to use for referring to the htmlInformationWindow. Use this attribute if you want to use write additional Javascript code for the htmlInformationWindow to customize it. NA


Comment by qumsiehk, Nov 12, 2008

The information window does not show up if I declare it as a child of the marker component?!

<m:marker draggable="true" jsVariable="marker">

<m:htmlInformationWindow htmlText="#{backingBean.googleMapAddress}"/>
</m:marker>

however, the information shows when declared as a child of the Map component. Am I doing something wrong? Please advice.

Comment by Hazem.saleh, Nov 12, 2008

This scenario is a defect, please file a bug here http://code.google.com/p/gmaps4jsf/issues/list

Comment by jaydrury, Feb 08, 2009

I can't seem to add any tags to the htmlText attribute when using facelets. For example, if one enters a <br/> or <img> I get this error message.. The value of attribute "htmlText" associated with an element type "m:htmlInformationWindow" must not contain the '<' character. I'm using facelets. I believe your examples use JSP. Is this a facelets issue? Do you know of a work around or does this require a change within gmaps4jsf. Great component by the way. It makes dealing with gmaps so much easier.

Comment by jaydrury, Feb 08, 2009

I discovered a funny workaround. Facelets doesn't have any problem by adding the tags when you insert them via EL like so htmlText="blah blah #{item.breaktag} blah blah". So you can construct the tags in your beans and insert them into the attribute via EL. I believe this is just facelets being strict. Correct me if I'm wrong. Maybe there is a more elegant way to solve this issue.

Comment by sanjeevdonthi, Mar 26, 2009

Hi i am using Spring WebFlows? and JSF and Facelets and Gmaps4JSF and i want to creat a HTML form in m:htmlInformationWindow in the htmlText attribute but its displayed as "Code" instead of the HTML Form..........plz.........let me know how to creat a HTML FORM for each Marker i creat...........i have put the form code in htmlText as EL ......... One more thing is how to create Markers by clicking on the GMAPs instead of hard coded tags for Markers..........can i take the jsVariable of m:map and create markers on click with some method i.e any functions.............

Comment by sanjeevdonthi, Mar 26, 2009

I have another problem...........my htmlInformationWindow if made as a child element of the marker its not appearing on Click........only if its placed outside the marker tag it appears by default...........

Comment by sanjeevdonthi, Mar 26, 2009

What all can be done using the jsVariable every tag..........

Comment by tomek.rs, Sep 08, 2009

Hi ! I've got a problem with displaying htmlInformationWindow to more than one marker. This example shows, how do i generate a multiply markers on the map, but the problem is, that the htmlInformationWindow doesn't show up..

Thanks for help !

<a4j:repeat id="rep" var="rowMap" value="#{Adresses.allMarkers}">
<m:marker address="#{rowMap.nazwa}" draggable="true"/> <m:htmlInformationWindow htmlText="#{rowMap.nazwa}"/>
</a4j:repeat>
Comment by Hazem.saleh, Sep 08, 2009

Google map APIs does not show more than one htmlInformationWindow in the same time.

Comment by 2...@gmx.org, Oct 19, 2009

Is there a way to place a commandLink or something like that into this information field?


Sign in to add a comment
Hosted by Google Code