aspose file tools*
The moose likes JSF and the fly likes Google Map Mashup in JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Google Map Mashup in JSF" Watch "Google Map Mashup in JSF" New topic
Author

Google Map Mashup in JSF

Amritpal Singh Moomie
Ranch Hand

Joined: Sep 24, 2010
Posts: 32
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

Joined: Sep 24, 2010
Posts: 32
Any suggestions
Amritpal Singh Moomie
Ranch Hand

Joined: Sep 24, 2010
Posts: 32
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

Joined: Apr 15, 2008
Posts: 198
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

Joined: Sep 24, 2010
Posts: 32
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

Joined: Apr 15, 2008
Posts: 198
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

Joined: Sep 24, 2010
Posts: 32
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

Joined: Apr 15, 2008
Posts: 198
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

Joined: Sep 24, 2010
Posts: 32
Thanks Ilari =)

Anybody else here can help why i am getting Invalid Attribute Error for them ?
Hazem Saleh
Greenhorn

Joined: Oct 19, 2010
Posts: 2
You forget closing the script tag with ".

Here is the working code:


Enjoy using GMaps4JSF!


Hazem Saleh
Amritpal Singh Moomie
Ranch Hand

Joined: Sep 24, 2010
Posts: 32
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

Joined: Oct 19, 2010
Posts: 2
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Google Map Mashup in JSF