Hi,
I am using PrimeFaces + JSF2, I am trying to add Fiji to display some flex chart. But when I use the linechart example. It says Tag Library supports namespace: http://exadel.com/fiji, but no tag was defined for name: lineChart.
I am using 4 jars from fiji 2.0 (charts-2.0.0-SNAPSHOT.jar, commonChart-2.0.0-SNAPSHOT, fiji-2.0.0-SNAPSHOT.jar and fiji-2.0.0-SNAPSHOT-sources.jar). and JSF2 jars.
I tried BarChart also, it has same kind of error. So my question is does Fiji works with PrimeFaces? Do I have to use RichFaces? What are the jar files FiJi 2.0 depends on?
Thanks
Max

Fiji 1.2 only works with
Fiji 1.2 only works with RichFaces 3.3.x. Fiji 2.0 only requires JSF 2 and not dependent on any rich library. But, we never tested Fiji with PrimeFaces.
Thanks Max for quick
Thanks Max for quick response. Do you know where I can find FiJi 2.0 examples? The reason I am asking because the README.txt file inside FiJi2.0 download has a simple setup description. I wonder that maybe for 1.x release. For 2.0, what I did is put these 4 jars into WEB-INFO/lib directory, and include the fiji tag in the xhtml file. that is. Did I missing something?
Best,
Max
The setup is very simple for
The setup is very simple for Fiji 2.0, you just drop the Jar files - that's it.
Hi, Max, I can't make Fiji
Hi, Max,
I can't make Fiji 2.0 works, It always thrown exception says: the tag of lineChart not found from Fiji.(I am using Tomcat7, Eclipes Indigo. Jre6)
I created a very simple JSF2.0 project, one button, one text field. When user clicks the button, the text changes. It works fine if I don't have Fiji.
Then I add 4 Fiji jars to /lib and classpath (I have only 2 more JSF2.0 jars totally). changed the xhtml page to add fiji tag and chart. I got that exception.
Now I fall back to try Fiji1.2. I got problem too. I followed your example on http://java.dzone.com/articles/using-jsf-and-flex-components.
It thrown exception for ajax4jsf filter on web.xml, I removed the filter, it starts to work. But when I start to add Fiji tag, it failed because seems to depend on ajax4jsf.
Thanks
Max
Fiji 2.0 is not compatible
Fiji 2.0 is not compatible with JSF 1.2.
Yes, you need RichFaces 3.3 (already includes ajax4jsf) for Fiji 1.2.
>>the tag of lineChart not found from Fiji.
Have you tried another component?
Yes, Max, I tried BarChart
Yes, Max, I tried BarChart also. It same error.
Thanks
Hi, Max, here is my detail
Hi, Max, here is my detail environment:
1. lib: 4 Fiji jar files and 2 Mojarra 2.1.2 jars (jsf-api.jar, jsf-impl.jar)
2. faces-config.xml almost empty: no managedbean configured.
3. web.xml:
javax.faces.PROJECT_STAGE
Development
javax.faces.INTERPRET_EMPTY_STRING_SUBMITTED_VALUES_AS_NULL
true
javax.faces.DATETIMECONVERTER_DEFAULT_TIMEZONE_IS_SYSTEM_TIMEZONE
true
Faces Servlet
javax.faces.webapp.FacesServlet
1
Faces Servlet
*.xhtml
4. ManagedBean:
@ManagedBean
@SessionScoped
public class ChartController implements Serializable{
private static final long serialVersionUID = 1L;
private String text;
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;
}
.................
}
Which 4 Fiji Jar files do you
Which 4 Fiji Jar files do you have?
Hi, Max, Sorry for response
Hi, Max,
Sorry for response late, the 4 jars are : charts-2.0.0-SNAPSHOT, commonChart-2.0.0-SNAPSHOT, fiji-2.0.0-SNAPSHOT and fiji-2.0.0-SNAPSHOT-sources.
They are from fiji 2.0.0 download.
The swf universal wrapper in ampie example works fine with fiji 2.0, but when I use my own flex chart swf file, it doesn't work.
Thanks
Max
When you say "my own Flex
When you say "my own Flex chart swf" - what do you mean by that? Do you have your own Flash chart?
Yes, I created a line chart
Yes, I created a line chart using Flex builder and generated a swf file. I use the universal wrapper to try to load the chart. but it failed.
The reason I am using my own
The reason I am using my own flex chart is because I am not sure the charts provided from fiji out of box are enough, we may have reports that needs more complicated notations or interactions. So I need to use flex builder to generate out our chart and interact with back end data.
If it's a custom Flash, I'm
If it's a custom Flash, I'm not sure why it's not working. I'd look at the generated source and check if everything is correct there.