Issue Details (XML | Word | Printable)

Key: ICE-1786
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: Philip Breau
Votes: 21
Watchers: 8
Operations

If you were logged in you would be able to see more operations.
ICEfaces

Spinner Component

Created: 26/Jun/07 11:04 AM   Updated: 24/Jun/08 12:24 PM
Component/s: Components
Affects Version/s: 1.6DR#5
Fix Version/s: None

File Attachments: 1. File customIce.war (8.14 MB)
2. File customIce.war (8.14 MB)
3. Zip Archive customIcefaces.zip (8.40 MB)
4. Zip Archive customIcefaces.zip (8.39 MB)
5. Zip Archive icedojo.zip (5.02 MB)

Environment: any

ICEsoft Forum Reference: http://www.icefaces.org/JForum/posts/list/4931.page


 Description  « Hide
Need a new spinner component

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Georges Goebel added a comment - 20/May/08 06:23 AM
Hi,

I did some work on integrating the dojo (dijit) toolbox spinner component in icefaces.

I finally got a working version of a spinner component (custom icefaces tag).
It works with the current dojo toolbox (1.1.1) but I had to make a modification in a dojo js file inorder to get it workin on firefox.

Please notice that this is only for development purpose and not for production !

Feel free to comment or make suggestions.

In the tar.gz, you find an ant build script which I used. I used it with jboss but it should also work with tomcat (but not tested)

The following command compiles and copy the war file to the deploy directory of jboss

ant clean copy.war.jboss

Then go to http://localhost:8080/customIce/index.iface and test the spinner.

In the build/jar folder of the tar.gz you also find a working war file which you can copy to jboss (or tomcat) to test

Georges

Georges Goebel added a comment - 21/May/08 10:07 AM
A new version with 2 spinners dynamically updated

Georges Goebel added a comment - 21/May/08 10:09 AM
A new version of 2 spinner components in one page dynamically updated.

(The 2 older files can be deleted)

Georges Goebel added a comment - 21/May/08 10:18 AM
Hi,

My solution has some dependencies and I don't know if it is fully compatible with Icefaces.

1) depend on the dojo toolkit.
1.1) Each spinner component will generate some JS code in the html page, where it calls 2 (or n times) the dojo.addOnLoad function.

2) The dojo, dijit JS libraries have to be included in the project. I don't know where I shoul copy them in the icefaces project. I would be glad if some icefaces guy could respond to this question. Wether to copy them to same place where icefaces-ds.js is located or not.
2.1) The included dojo librarie is slightly modified by me
(diji/form/ValidationTextBox.js line 219) to work correctly in FF

3) Not fully tested with the other icefaces or other jsf components :-(

Would be glad to get some feedback, because if the concept is ok, then all other dojo, diji components (like fisheye, ...) can be implemented as jsf tags in icefaces

Georges Goebel

Georges Goebel added a comment - 28/May/08 01:59 PM
Check the following page in the forum.

Now without copying all the dojo JS stuff to your project

http://www.icefaces.org/JForum/posts/list/8506.page

Keith Garry Boyce added a comment - 24/Jun/08 12:24 PM
Here is a set of projects that integrates a more complicated component, the Range Slider. I'm made the integration to be more of a starting point for having a complete dojo jsf library that works in SUN RI and then with an extenstion for use within icefaces..