My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
htmlInformationWindowComponent  
Updated Feb 4, 2010 by Hazem.sa...@gmail.com

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 qumsi...@gmail.com, 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 project member Hazem.sa...@gmail.com, Nov 12, 2008

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

Comment by jaydr...@gmail.com, Feb 8, 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 jaydr...@gmail.com, Feb 8, 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 sanjeevd...@gmail.com, 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 sanjeevd...@gmail.com, 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 sanjeevd...@gmail.com, Mar 26, 2009

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

Comment by tomek...@gmail.com, Sep 8, 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 project member Hazem.sa...@gmail.com, Sep 8, 2009

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

Comment by bananenk...@gmail.com, Oct 19, 2009

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

Comment by project member Hazem.sa...@gmail.com, Mar 17, 2010

Yes you can place any html in the htmlInformationWindow component. Sorry for the late response. This is because Iam not notified about the wiki comments' changes.

So please guys send your questions to the development group list.

Thanks all!

Comment by sgeb...@gmail.com, Apr 24, 2010

Can you give an example of how to embed an href link in the htmlinformationwindow? I am trying to go to another page based on the marker chosen but I wish to use an htmlinformationwindow.

Comment by project member robert2...@gmail.com, Aug 14, 2010

Please add 'id', 'binding' and 'rendered' basic HTML tag attributes to be consistend with MyFaces? Tomahawk documentation: http://myfaces.apache.org/tomahawk-project/tomahawk12/tagdoc.html

Comment by project member robert2...@gmail.com, Aug 14, 2010

jsVariable is not listed as supported (NetBeans? code completion)... I'm using gmaps4jsf 1.1.3 u3.


Sign in to add a comment
Powered by Google Project Hosting