Check out Richfaces for Flex project, know as Exadel Fiji. Fiji allows to use JSF and Flex components together on the same page while binding Flex components to standard JSF managed beans. Fiji also provides 7 out-of-the-box Flash-based charting components.
Suppose you need to embed a Flex chart in your JSF page, to deliver richer content. This is all you need to do:
JSF page:
Managed bean:
public class BarChartBean { public BarChartBean() { } private Integer[] data; public Integer[] getData() { return data; } @PostConstruct public void init () { data = new Integer[5]; data[0] = 5; data[1] = 2; data[2] = -3; data[3] = 10; data[4] = 9; } }
You will get this:
The most important thing is that you bind these components to standard JSF managed beans (or Seam components).
More Fiji resources
Fiji product page
Fiji demo
Fiji charting components (JSF, Flex and Elections)
Fiji article at dzone.com
hi max,
how to integrate Fiji and JSF 2 (myfaces)? because update return error :
faultCode:Server.Error.Request faultString:’HTTP request error’ faultDetail:’Error: [IOErrorEvent type=”ioError” bubbles=false cancelable=false eventPhase=2 text=”Error #2032″]. URL: /helloworld/com/exadel/fiji/9cc8306c-78ae-4a4f-89ef-54515b6020e3.jsp’
You can start with this template: http://mkblog.exadel.com/ria/richfaces-ria/quick-start-with-fiji-richfaces-project-for-flex-template/ . It uses JSF 1.2 (Mojarra).
Hi Max,
Is there any way to implement pie chart(with user given inputs) using FIJI components?
@giftsam: please post all questions on Fiji forum: http://exadel.org/forum/fiji
Ya sure!!