Hello guys I have a doubt in the primefaces infowindow
First: I use jsf2 + primefaces4 + mojarra2
When looking at the documentation and primefaces showcase the attributes of the marker are LatLgn latlgn, String title, Object data, String icon, String shadow
Where in latlgn I'll pass the coordinates for the marker, the title will be a description of the image and data will be the image.
In the current application works good and I am currently doing so:
Bean:
advancedModel.addOverlay(new Marker (new LatLng(user.getLatitude(), user.getLongitude()), user.getName() + " " + user.getAdress(), user.getPhoto()));
Xhtml:
<p:gmapInfoWindow>
<p:outputPanel >
<p:imageSwitch>
<ui:repeat value="#{searchMBean.marker.data}" var="photo">
<p:graphicImage value="/temp/#{photo.id}.jpg" />
</ui:repeat>
</p:imageSwitch>
<h:outputText value="#{searchMBean.marker.title}" />
</p:outputPanel>
</p:gmapInfoWindow>
What I want to do in String title: I want to pass more than a string so I can modify the xhtml it with css, because the way is the name and address are together
It there a possibility to pass more than one parameter to the String title? But would like some ideas how.