1. About Fiji
Exadel Fiji is a library of ready-to-use Flex UI components and a framework designed
for easy and smooth integration with JSF and other development environments.
The Fiji components use the same server side models, support standard JSF
management mechanisms, allow interactions between each other as well as with
standard JSF component, and provide look and feel generalization.
interfaces.
2. Distribution content:
fiji.zip:
/bin - contains executable files to put necessary artefacts into the maven repository
/lib - contains necessary libraries to start with fiji product. See "3.REQUIRED LIBRARIES".
/docs - The documentation available as of the date of this release is included in
HTML\PDF format in the directory.
The most up-to-date documentation can be found at http://www.exadel.com/fiji/guide/
/helloWorld
/project - contains a draft version of jsf project. See "4.KICK START PROJECT WITH EXADEL FIJI"
/helloWorld.war contains complete and executable code of helloWorld application(without libraries)
/fiji-demo
/src - contains source code or the Fiji demo site
/fiji-demo.war - contains war file with a complete project to deploy (without libraries)
/LICENCE.TXT
/README.TXT
3.REQUIRED LIBRARIES
In order to run a Fiji project with Tomcat 5.5 you need to add have the following libraries in the "WEB-INF/lib" folder of your project.
flamingo-service-jsf-1.6.1-SNAPSHOT.jar
amf-serializer-1.6.1-SNAPSHOT.jar
common-annotations.jar
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
el-api-1.0.jar
el-impl-1.0.jar
fiji-api-1.0.0.jar
fiji-ui-1.0.0.jar
jsf-api-1.2_09.jar
jsf-facelets-1.1.14.jar
jsf-impl-1.2_09.jar
jstl-1.2.jar
laguna.jar
richfaces-api-3.2.2.CR3.jar
richfaces-impl-3.2.2.CR3.jar
richfaces-ui-3.2.2.CR3.jar
standard.jar
Note: The library set listed above is required if you use Apache Tomcat 5.5.
If you have Apache Tomcat 6.0 ang higher you need not to use el-api-1.0.jar and el-impl-1.0.jar library.
If you use a JavaEE5 server, such as Sun Java System Application Server 9 or JBoss 4.2, not to use both el-api-1.0.jar and el-impl-1.0.jar libraries.
4. KICK START PROJECT WITH EXADEL FIJI
This is a brief tutorial on how to run an application with Exadel Fiji.
You have to make a few step to run and deploy the "helloWorld" project.
1. Run fijiInstall.bat(or fijiInstall in Linux) script to put all artefacts from lib folder into the maven repository
2. Find a "helloWorld" in the archive with the "readme.txt" file. It contains a ready skeleton of maven project to make your own Fiji project.
3. Make 'mvn clean package' on helloWorld project with pom.xml
Note, that if you have Apache Tomcat 6.0 or JBoss/JavaEE5 Server installed.
You can use command 'mvn clean package -Ptomcat5.5' for Tomcat 5.5 to use "el-api-1.0.jar" and "el-impl-1.0.jar" libraries since they are not installed.
4. Run 'mvn eclipse:eclipse' command on the pom.xml of the helloWorld project in case you need to import as a project into the Eclipse IDE.
Now, you can get down to using the Fiji components.
The "helloWorld" project contains a blank "fiji.xhtml" file that will suit you perfectly to use as a template. First, add this code to the file.
As you can see the "value" attribute of has binding to a Java bean (OneSeriesBar ) which passes the data to the component, therefore you have to find the OneSeriesBar.java
file and add the following code into it.
package fiji;
public class OneSeriesBar {
private Integer[] data = new Integer[3];
public Integer[] getData() {
data[0] = 5;
data[1] = 2;
data[2] = -3;
System.out.println ( data );
return data;
}
}
Now you can run your application on the server. The page with the component can be addressed with this URL - http://localhost:8080/helloWorld/fiji.jsf
Anyway, if you fail to create the kickstart project using these instruction you can import the helloWorld.war to get a basic idea about the usage of Fiji component helloWorld.war can be found in the "helloWorld"
folder.
"Exadel Fiji Component Platform Software. (c) Exadel, Inc."