Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Google Map Mashup in JSF

 
Amritpal Singh Moomie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys i am trying to build a JSP page where i have Form and Panel Group.
SO whatever data i Enter in Form and i can view the map of that data in Panel Group.
But nothing happens on Clicking the command button. and yeah i am using right Google API key.
You guys can run the code tooo and check it
Any help will be appreciated.

Thanks,
Amritpal

Here is the code
 
Amritpal Singh Moomie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Any suggestions
 
Amritpal Singh Moomie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am still stuck here
and yeah for help
I am trying to follow this tutorial
https://www.ibm.com/developerworks/web/library/wa-aj-gmaps4jsf/#N10072

But nothing happens for me when i click GO button
 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your page jsp page or xhtml page? Do you try to make a facelet page or a jsp page? You seem to mix both the taglib declarations and xmlns declarations. Are you sure you want to do that?

And for example in the tutorial its says that you should include the google taglib withbut instead you try to do it withWhen you try to run the code and look at the source code of the generated html page are there any "m:streetViewPanorama" or "h:form" or "hx:commandExButton" visible or have they all turned into html correctly?
 
Amritpal Singh Moomie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think thats my mistake.
I dont know, i think i was suppose to make a jsp page.

Yeah m:streetViewPanorama h:form hx:commandExButton are visible.
So what you suggest me, how to make jsp page of this tutorial

Here is the source code of the generated html

 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, it is broken

In the previous tutorial
http://www.ibm.com/developerworks/library/wa-aj-gmaps/
there is source code to download
http://www.ibm.com/developerworks/apps/download/index.jsp?contentid=422291&filename=mashups2-Eclipse-sourcecode.zip&method=http&locale=worldwide
that you probably have downloaded and now try to mix jsp tags to the existing xhtml facelet pages?

In the previous tutorial he used facelets but it seems that in this new tutorial he is using jsp. I do not know which way you should go but try to choose one and stick with it. Alas, I do not have an easy solution for you, you have to learn the basics first if you are at miss with the concepts used on those tutorials...
 
Amritpal Singh Moomie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can you explain me why i am getting invalid attribute error for
address
rendered
renderOnWindowLoad
htmlText
rendered

In my following code,
Am i missing anything?

 
Ilari Moilanen
Ranch Hand
Posts: 199
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not see any obvious problems but if you asked me I am the wrong person to ask questions about mixing JSF and JSP together like you did there. I am new to JSF (and use it with without JSP when I do) and have used JSP only in Struts and Struts 2 applications.
 
Amritpal Singh Moomie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ilari =)

Anybody else here can help why i am getting Invalid Attribute Error for them ?
 
Hazem Saleh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You forget closing the script tag with ".

Here is the working code:


Enjoy using GMaps4JSF!


Hazem Saleh
 
Amritpal Singh Moomie
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Hazem I can run the code but i dont know for some reason i cant see street view

http://lh6.ggpht.com/_Pfs6-eUnXhs/TL4BJY-i22I/AAAAAAAAAKE/44d0hTxOx0I/s720/00.JPG
 
Hazem Saleh
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Amritpal Singh Moomie wrote:Hi Hazem I can run the code but i dont know for some reason i cant see street view

http://lh6.ggpht.com/_Pfs6-eUnXhs/TL4BJY-i22I/AAAAAAAAAKE/44d0hTxOx0I/s720/00.JPG


No, it works.

You might enter an address that does not have a street, to be sure, enter the following address:
"NYC, USA".

I just tried it and it works with me.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic