how to create Map in JSF - jsf-2

I want to use map in my JSF 2.0 website showing directions how to reach there (like this).
Any idea/ suggestion how to make map in jsf 2.0 would be greatful.

You can take a look at the gmaps4jsf library here, it has a component for directions here, but it is also noted that this component doesn't exists since version 3.0.0 so you will have to use older version.

You can start by studying the API documentation and its examples here:
https://developers.google.com/maps/documentation/javascript/

Related

How to integrate Highmap chart with angular 5 Application?

I want to integrate highmap chart with an Angular 5 application. I have tried angular-highchart module but it's not working as expected.
angular-highchat
Let me know if you have any solution or any other way to integrate highmap.
Try to use highcharts-angular package instead of mentioned above. There shouldn't be any problem with Highmaps implementation. Here the reference link to package and also the documentation, where everything is described very precisely and clear: https://github.com/highcharts/highcharts-angular

Highcharts in cakephp

i am very newby in cakephp, can anyone tell me step by step working with highcharts in cakephp. and also how to show my data from my database.
Here is my database columns(total 11)
CALL TIME,BILL DURATION,FIRST_CELL_ID,LAST_CELL_ID,CALL DIRECTION,ESN_or_IMEI_NO,MIN_or_IMSI_NO
TYPE OF CONNECTION,SMS CENTRE,ROAMING DETAILS,BTS_ADDRESS
please help me....thanks in advanced
You can take a look at this here CakePHP Highcharts plugin. Do note however that this is specifically for CakePHP 2.* version and will not work with previous versions.
It includes example code for its usage and has been tested with CakePHP 2.5.7.

My Twitter api is not working suddenly

I have a web application which uses twitter api. It was working fine.But suddenly it stopped work. I started googling & came to know about that twitter upgraded their api. So I need to use the library which supports v1.1
Have anybody worked with v1.1 library please help me
Thanks in advance.
Take a look at this project on GitHub. Don't be confused by the title - it has been updated since Twitter's API update to 1.1.
The jQuery plugin on the page has been re-purposed to be a Rendering engine, i.e. it helps with rendering your feeds.
The important part, however is in the "Server-Side Examples and Setup" directory. Go there, read and follow the directions in the SETUP_INSTRUCTIONS document. When you are done, if you are using PHP, use the file in the "Plug_And_Play" directory as a start point. If you are using C#, you can use this library. It is still under development, but it is updated regularly and mimics the Twitter API's specifications as closely as possible.
P.S. I am the author of both of those projects, so if you need any help, let me know. Good luck! :)

How do I use CODI Conversation? Specifically, how to end it?

Based on advice posted here and here, I looked into and installed MyFaces CODI with my application. My biggest concern was overcoming the shortcomings of Weld's implementation of #ConversationScoped feature. After some hiccups I got it running on my GlassFish 3.1 development platform, and I converted all my beans to use
import org.apache.myfaces.extensions.cdi.core.api.scope.conversation.ConversationScoped;
In the end it seems like I am now not much further along than I was before. I do not have to call the conversation.begin() method anymore, which is good, but the beans hang around after the browser has left the page and come back.
What I was hoping for was the functionality of JSF 2.0 #ViewScoped that works with CDI. Once the user leaves the page, the backing bean should be discarded and re-created again if the user comes back. Is there a way to do this with CODI?
Incidentally, the documentation says it will pick up the #ViewScoped annotations and process them properly. I tried this and got and Weld wouldn't deploy it.
P.S. I am using myfaces-extcdi-dist-jsf20 version 0.9.5. I tried installing the core and JSF 2 optional module akibe but it would not deploy on my GlassFish/Weld platform. Any advice here much appreciated.
UPDATE 1: I ended up trying the ViewAccessScope annotation supported by CODI, and that seems to do what I wanted.
Follow-up question. The latest bundle that the maven repository that Apache maintains is 0.9.5 -- Can someone post the pom.xml segment that fetches the latest version?
Call conversation.close() before returning - ensure that you imported the correct annotation org.apache... and not javax... - see Wiki or use the ViewAccessScope instead. We are using: bundle in Glassfish 3.1.1 without problems. myfaces-extcdi-bundle-jsf20-1.0.1.jar is the only jar you need. Please also note that there is no "it". With CODI you have fine-grained groupable conversations instead of the monolithic and inflexible stuff you get with standard CDI conversations.
The set-up for the latest version with a Maven build is also in the Wiki.

Help with PrimeFaces

I am working slowly through the PrimeFaces showcase, I am using NetBeans 7.0, JDK1.6, PrimeFaces 2.2.1, GlassFish 3.1, JSF 2.0, Win XP Prof
Some of the examples work fine, others don't work and then I get errors that a component doesnt exist in the library or the component doesn't have a specific attribute. I have not done any configuration and the purchased very lacking PrimeFaces Manual seemed to suggest I didn't need to
I keep reading about snapshots and am wondering, should I be using a snapshot:
1) Do I need to use this snapshot to get everything to work, if so HOW do I use it?
2) Is there any more documentation / tuts / examples/ books ... of using PrimeFaces components with the above requirements that I have, that have been tested and work.
I have tried other forums but get no response, I would like to eventually develop some apps using PrimeFaces, but can't get the answers or help I need.
On the Primefaces web page there is a "Showcase 2.2.1" and a "Labs Showcase 3.0". Maybe you tried some features of the Labs Showcase with your 2.2.1 installation?
If not, please give an example of a not working component.

Resources