dev@javaserverfaces.java.net

Re: JSF Component Question

From: Ed Burns <ed.burns_at_sun.com>
Date: Wed, 13 Dec 2006 14:32:40 -0800

>>>>> On Wed, 13 Dec 2006 16:21:19 -0600, Jason Lee <lee_at_iecokc.com> said:

JL> I'm trying to write a JSF component wrapper for the YUI tree component.
JL> My first thought on how to represent the tree's data to the component,
JL> based on discussions I've overheard around the office is TreeNode, with
JL> which I have no experience. I quickly discovered that that interface's
JL> package is javax.swing.tree. My gut reaction is that it seems a little
JL> odd to have a JSF component using a Swing interface for its data model,
JL> but I see no better, existing interface/class with which to model my
JL> tree's data. Another option is to design a custom class for just this
JL> purpose. Anyone have any thoughts? For now, I'll probably keep
JL> plodding along with TreeNode and see what happens in the interim. :)
 
I think there is no problem using the Swing TreeModel. Go for it.

Ed


-- 
| ed.burns_at_sun.com  | office: 408 884 9519 OR x31640
| homepage:         | http://purl.oclc.org/NET/edburns/
| aim: edburns0sunw | iim: ed.burns_at_sun.com