Click listener on infowindow

34 views
Skip to first unread message

Jaime Fernandez de Gamboa Garcia

unread,
Nov 18, 2013, 6:25:37 PM11/18/13
to gmaps4...@googlegroups.com
Hi, I'm new using jsf and gmaps4jsf and I'm trying to associate an action when I click on an open infoview but it doesnt work.

This is my code:

<m:htmlInformationWindow htmlText="#{spot.type}">
<m:eventListener eventName="click" action="login" submitOnClick="true"/>
</m:htmlInformationWindow>

When I click the infoview nothing happens, what am i doing wrong?

Thanks.

Hazem Saleh

unread,
Nov 19, 2013, 5:53:48 AM11/19/13
to gmaps4jsf-dev
m:eventListener is used for registering client side events on the components not server side event which means that action or valueChangeListener or actionListener attribute are not defined attributes for this tag.


--
You received this message because you are subscribed to the Google Groups "gmaps4jsf-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gmaps4jsf-de...@googlegroups.com.
To post to this group, send email to gmaps4...@googlegroups.com.
Visit this group at http://groups.google.com/group/gmaps4jsf-dev.
For more options, visit https://groups.google.com/groups/opt_out.



--
Hazem Saleh

Author of JavaScript Unit Testing book:
http://www.amazon.com/dp/1782160620/

Co-author of (The Definitive Guide to Apache MyFaces and Facelets) book:
http://www.amazon.com/-/e/B002M052KY

DeveloperWorks Contributing Author
https://www.ibm.com/developerworks/mydeveloperworks/blogs/hazem/entry/ibm_developerworks_contributing_author?lang=en_us

An Apache committer, IBMer, and a technical speaker

Twitter: http://www.twitter.com/hazems
Message has been deleted

Jaime Fernandez de Gamboa Garcia

unread,
Nov 19, 2013, 6:30:03 AM11/19/13
to gmaps4...@googlegroups.com, haz...@apache.org
Can I put a href in the htmltext of the infowidow?

Hazem Saleh

unread,
Nov 19, 2013, 6:33:00 AM11/19/13
to Jaime Fernandez de Gamboa Garcia, gmaps4jsf-dev
Yes.

But you have to use &lt; instead of < and &gt; instead of >,
Reply all
Reply to author
Forward
0 new messages