voyent
Tree component  XML
Forum Index -> Components
Author Message
maarten

Joined: 03/May/2006 00:00:00
Messages: 39
Offline


Hi

I have a dir structure in my database:
tbl_dir
-------
dir_id
dir_name

tbl_dirindir
------------
did_id
did_parent_dir_id
did_child_dir_id

This allows an infinite number of levels. I have a solution now that allows 'drilling down', but with every click, the page is refreshed. Is it possible to have an ajax of doing it with the icefaces treecomponent?

If so, is there an example somwhere (that uses a database as backing - xml or other)?

Tnx
steve.maryka

Joined: 26/Oct/2004 00:00:00
Messages: 93
Offline


Yes, you can dynamically build up a multi-level tree without refresh. Check out the component showcase demo at:

http://demo.icesoft.com/component-showcase/

The tree demo shows a basic tree with "delete" and "copy" command links next to each node. If you click on copy you add another level to the tree hierarchy. If you click on delete you remove the node and its subnodes. All this is done with incremental updates,so there is no excessive rerendering.

This example is not tied to a database, but that aspect only involves populating of the tree component data model from the database content. In our 1.0 release, coming soon, there is a complete source-code webmail example that illustrates integration of an ICEfaces application with a database.

One thing you should note: You cannot just drop the ICEfaces tree component into your application. You will need to port your application to ICEfaces to take advantage of the tree component. If your application uses mostly standard JSF components the port will be minor. If you use other 3rd party JSF components, you will have to port to comparable ICEfaces components, as other 3rd party components are not supported in ICEfaces.

Hope that helps.
Steve
[Email]
maarten

Joined: 03/May/2006 00:00:00
Messages: 39
Offline


Thank you for the quick response.

I've already ported my app to icefaces and i'm already using components such as the inputfields and the calendar.

When I opened the source of the tree example, I get the folowing error: NodeUserObject cannot be resolved to a type

I have all the same libraries (+ a few extra) as the example.

How can this be?

edit: found it


Message was edited by: maarten
Admin

Joined: 27/May/2004 00:00:00
Messages: 219
Offline


Hello,

Have you resolved your issue?

Ken
maarten

Joined: 03/May/2006 00:00:00
Messages: 39
Offline


Yes I have, I didn't copy all of the classes.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team