0

I would like to ask whether it is possible to implement this google map example: http://www.primefaces.org/showcase/ui/gmapInfoWindow.jsf in JSP file. Example shows how to implement that in xhtml file but i need to do this in JSP file. I read JSP files don't support primefaces since x version. Maybe there is other method to implement that map without using primefaces?

Thank you

BalusC
  • 1,082,665
  • 372
  • 3,610
  • 3,555
user2374573
  • 59
  • 1
  • 3
  • 11

2 Answers2

0

Trying to use a JSF component without JSF is analogous to using a Spring bean without the spring framework it set it all up. Kind of pointless.

That said, simply googling "google map jsp" brought up some jsp tag libraries which support Google Maps.

http://www.lamatek.com/GoogleMaps/ http://www.mindfiresolutions.com/Google-Map-Web-Service-With-JSP-2221.php

So, a little leg work might get you somewhere.

EdH
  • 4,918
  • 4
  • 24
  • 34
  • I don't understand what exactly do you mean in the first sentence. I wonder if it is possible to implement in JSP file because there are a lot of opinions that JSP is no longer valid technology to display JSF components. I visited sites you gave me but when I implemented the first example it does't work for me. There are no errors but after I loaded it on server there is a blank page. I can't see the map. What is more on lematek.com all maps do not load even on example pages. – user2374573 May 12 '13 at 12:24
  • JSF is more than the components in isolation. You need to ensure you're using the JSF framework as part of the servlet which implements the JSF lifecycle, which is what make the components do what they do. Attempting to use a JSF component outside of the JSF Lifecycle is not possible with re-implementing JSF code. It should be possible to use JSP pages in JSF (it could, at the start, support both JSP and XHTML pages). Perhaps it is an issue with Primefaces. Perhaps it requires xhtml pages. That said, using xhtml and facelets is, in my opinion, a better option than straight JSP. – EdH May 12 '13 at 22:03
0

I tried to integrate PrimeFaces to jsp files in many different ways, however, I later on learnt that, PrimeFaces tags such as "p:" are only used in JSF(.xhtml) files. If it is not too hard to change the project, try to move it to JSF 2.x or above to be able to use PrimeFaces UI.

ahmetcetin
  • 2,621
  • 1
  • 22
  • 38